Retrieve Payment Consents

GET {{base_url}}/banking/v2/pay/domestic/consents

Payment consents can be retrieved by providing a bankId.

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

Query parameters

FieldTypeDescription
pageIdstringPage offset of results

Attributes

FieldTypeDescription
idstringUnique consent id returned by the bank
companyIdstringUnique id for the company
bankIdintegerUnique id for the bank
creationDatedatetimeDate when the consent was created
statusstringStatus of consent {Authorised, AwaitingAuthorisation, Rejected}
currencystringAccount currency
amountintegerPayment amount
typestringPayment type {DOMESTIC}

Error Messages

ConditionResponse StatusResponse Body
Invalid bankIdEmpty response body
Invalid pageId400 Bad Request

Request Params

KeyDatatypeRequiredDescription
pageIdnullPage offset of results

HEADERS

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

RESPONSES

status: OK

{"results":[{"id":"consentId1234","companyId":"companyId1234","amount":"20.00","currency":"GBP","type":"DOMESTIC","bankId":6,"creationDate":"2020-07-30T15:10:38.002Z","status":"AWAITINGAUTHORISATION"},{"id":"consentId1345","companyId":"companyId1234","amount":"10000.00","currency":"GBP","type":"DOMESTIC","bankId":6,"creationDate":"2020-10-20T09:11:14.164Z","status":"AUTHORISED"},{"id":"consentId345","companyId":"companyId1234","amount":"100.00","currency":"GBP","type":"DOMESTIC","bankId":6,"creationDate":"2020-07-28T22:05:15.102Z","status":"REJECTED"}],"links":{}}