Retrieve Subscription Requests

GET {{base_url}}/banking/v2/pay/subscription/subscription-requests?pageId=&products=

This endpoint can be used to retrieve subscription requests for a company.

Query Parameters

FieldTypeDescription
productsstringcomma separated product list
pageIdstringPage offset of results

Attributes

FieldTypeDescription
subscriptionRequestIdstringUnique identifier for subscription request
productsstringComma separated list of products that can be subscribed
frequencystringPayment frequency MONTHLY/QUARTERLY/SEMIANNUAL/ANNUAL/DAILY
amountintegerSubscription amount
numberOfPaymentsintegerthe total number of payments to be made.
trialDurationintegertrail duration in days
currencystringcurrency
requestorBankAccountstringPayee Bank Account details

Error Messages

ConditionResponse StatusResponse Body
Invalid partnerId403 Forbidden
Invalid companyId403 Forbidden
Invalid pageId400 Bad Request{ error: "Missing/Invalid pageId” }

Request Params

KeyDatatypeRequiredDescription
pageIdnull
productsnull

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Content-Typestring
X-Api-Keystring
X-Partner-Idstring
Authorizationstring
X-Company-Idstring

RESPONSES

status: OK

{"results":[{"subscriptionRequestId":"65e3c92c-4d99-58e8-9d1b-0e4da9843021","requestorCompanyId":"01dfc92c-01cc-4442-93fd-878f516f46c7","products":"SMART_INVOICE","frequency":"MONTHLY","numberOfPayments":50,"trialDuration":45,"requestorBankAccount":{"accountId":"accountId1234","bankId":7,"name":"Debit Account","schemeName":"UK.OBIE.SortCodeAccountNumber","identification":"5000004001234","accountType":"BUSINESS"},"amount":"9.99","currency":"GBP","status":"","creationDate":"2022-01-20T20:29:03.199Z","updatedDate":"","resourceBaseurl":""}],"links":{}}