Retrieve Subscriptions

GET {{base_url}}/banking/v2/pay/subscriptions

Subscriptions can be retrieved by providing the payer company.

The subscription response will include subscription details (amount, currency, payment type), consent Id, payment start Date and status.

Query parameters

FieldTypeDescription
subscription RequestIdstringUnique id for the subscription Request
statusstringstatus of the subscription (PENDING,ACTIVE,CANCELLED,OVERDUE,REJECTED,CANCELLATION_PENDING)
pageIdstringPage offset of results

Attributes

FieldTypeDescription
subscriptionIdUnique identifier for the subscription
subscriptionConsentIdstringUnique consent id
payerCompanyIdstringUnique id for the company
bankIdintegerUnique id for the bank
creationDatedatetimeDate when the subscription was authorised
subscriptionRequestIdstringUnique id for the subscription Request
subscriptionStatusstringStatus of the subscription {PENDING,ACTIVE,CANCELLED,OVERDUE,REJECTED,CANCELLATION_PENDING}
currencystringAccount currency
amountintegerPayment amount
externalIdstringexternal identifier for subscription payment
paymentStartDatestringpayment start date for the standing order
productsstringcomma-separated
updatedDatestringConsent updated Date

Error Messages

ConditionResponse StatusResponse Body
Invalid CompanyId403 Forbidden
Invalid pageId400 Bad Request
Invalid SubscrionRequestId403 Forbidden

Request Params

KeyDatatypeRequiredDescription
subscriptionRequestIdstring
bankIdnumber
pageIdstring
statusstring

HEADERS

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

RESPONSES

status: OK

{"results":[{"subscriptionId":"3b6dc2ea-77da-456d-8bb5-92bfd477e5c8","subscriptionConsentId":"b64a7854-0ac7-4afe-8c1d-d999adcb4869","payerCompanyId":"687400cc-bae5-4e20-a052-7e73f8fb7018","partnerId":"6ae1c843-e97d-437c-81d8-6106e91c985f","subscriptionRequestId":"65e3c92c-4d99-58e8-9d1b-0e4da9843021","bankId":20,"externalId":"","creationDate":"2022-01-24T18:13:52.946Z","updatedDate":"","amount":"9.99","currency":"GBP","reference":"tps-6y","subscriptionStatus":"ACTIVE","cancellationReason":"","isoStatus":""}],"links":{}}