Retrieve Subscription Consent By Id

GET {{base_url}}/banking/v2/pay/subscription/subscriptionConsents/:SubscriptionConsentId

This endpoint can be used to retrieve a particular subscription consent.

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

Path variables

FieldTypeDescription
subscriptionConsentIdstringUnique identifier for the subscription consent.

Attributes

FieldTypeDescription
subscriptionConsentIdstringUnique consent id
payerCompanyIdstringUnique id for the company
bankIdintegerUnique id for the bank
creationDatedatetimeDate when the consent was created
subscriptionRequestIdstringUnique id for the subscription Request
statusstringStatus of consent {Authorised, AwaitingAuthorisation, Rejected}
currencystringAccount currency
amountintegerPayment amount
idempotencyKeystringunique identifier for consent from the bank
authorisedDatestringDate when the consent was authorised
externalIdstringexternal identifier for consent
paymentStartDatestringpayment start date for the standing order
creationDatestringConsent Creation Date
typestringPayment type {DOMESTIC}
updatedDatestringConsent updated Date

Error Messages

ConditionResponse StatusResponse Body
Invalid subscriptionConsentId404 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

{"subscriptionConsentId":"72aee07c-df69-41f5-a457-9d5b35285b7f","payerCompanyId":"687400cc-bae5-4e20-a052-7e73f8fb7018","partnerId":"6ae1c843-e97d-437c-81d8-6106e91c985f","subscriptionRequestId":"76e3c92c-3d99-48e8-8d1b-0e4da9843022","amount":"9.99","currency":"GBP","bankId":31,"reference":"tps-g","idempotencyKey":"unique_key","authorisedDate":"2022-01-19T19:22:11.002Z","externalId":"external_id","tokenId":"0aa13835-df4c-45c3-bdad-aea8b3ccf15f","paymentStartDate":"2022-01-20T19:20:12.187Z","clientCallbackUrl":"","status":"AUTHORISED","creationDate":"2022-01-19T19:20:13.725Z","updatedDate":""}