Retrieve Subscription By Id

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

This endpoint can be used to retrieve a particular subscription.

Path variables

FieldTypeDescription
subscriptionIdstringUnique identifier for the subscription.

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 subscriptionId404 Not Found
Invalid partnerId403 Forbidden
Invalid companyId403 Forbidden

Request Params

KeyDatatypeRequiredDescription
externalIdnull

HEADERS

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

RESPONSES

status: OK

{"subscriptionId":"0000AFbjpoZ4pUXXlaHPOr","subscriptionConsentId":"72aee07c-df69-41f5-a457-9d5b35285b7f","payerCompanyId":"687400cc-bae5-4e20-a052-7e73f8fb7018","partnerId":"6ae1c843-e97d-437c-81d8-6106e91c985f","subscriptionRequestId":"76e3c92c-3d99-48e8-8d1b-0e4da9843022","bankId":31,"externalId":"","creationDate":"2022-01-19T19:22:12.142Z","updatedDate":"","amount":"9.99","currency":"GBP","reference":"tps-g","subscriptionStatus":"ACTIVE","cancellationReason":"","isoStatus":""}