Retrieve Subscription Consents

GET {{base_url}}/banking/v2/pay/subscription/subscriptionConsents?subscriptionRequestId={{subscriptionRequestId}}&status

Subscription consents can be retrieved by providing the payer company.

The consent response will include subscription consent 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 consent(AUTHORISED/AWAITINGAUTHORISATION/CONSUMED/REJECTED)
pageIdstringPage offset of results

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 CompanyId403 Forbidden
Invalid pageId400 Bad Request
Invalid SubscrionRequestId403 Forbidden

Request Params

KeyDatatypeRequiredDescription
bankIdnumber
pageIdstring
subscriptionRequestIdstring
statusnull

HEADERS

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

RESPONSES

status: OK

{"results":[{"subscriptionConsentId":"cd5069f1-74a8-43d0-859d-e0b05eb43dbb","payerCompanyId":"687400cc-bae5-4e20-a052-7e73f8fb7018","partnerId":"6ae1c843-e97d-437c-81d8-6106e91c985f","subscriptionRequestId":"65e3c92c-4d99-58e8-9d1b-0e4da9843021","amount":"9.99","currency":"GBP","bankId":31,"reference":"tps-m","idempotencyKey":"unique_key","authorisedDate":"","externalId":"external_id","tokenId":"","paymentStartDate":"2022-01-22T20:52:53.288Z","clientCallbackUrl":"","status":"AWAITINGAUTHORISATION","creationDate":"2022-01-20T20:52:54.664Z","updatedDate":""},{"subscriptionConsentId":"38b42296-a17f-4de2-a8eb-76e44a25d25d","payerCompanyId":"687400cc-bae5-4e20-a052-7e73f8fb7018","partnerId":"6ae1c843-e97d-437c-81d8-6106e91c985f","subscriptionRequestId":"65e3c92c-4d99-58e8-9d1b-0e4da9843021","amount":"9.99","currency":"GBP","bankId":31,"reference":"tps-3f","idempotencyKey":"38b42296a17f4de2a","authorisedDate":"","externalId":"external_id2","tokenId":"","paymentStartDate":"2022-01-26T10:17:38.405Z","clientCallbackUrl":"","status":"AWAITINGAUTHORISATION","creationDate":"2022-01-24T10:17:39.567Z","updatedDate":""}],"links":{}}