Retrieve Payment Consent (by id)
GET {{base_url}}/banking/v2/pay/domestic/consents/:consentId
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.
Path parameters
Field | Type | Description |
---|
consentId | string | Unique identifier for the consent |
Attributes
Field | Type | Description |
---|
id | string | Unique consent id returned by the bank |
companyId | string | Unique id for the company |
bankId | integer | Unique id for the bank |
creationDate | datetime | Date when the consent was created |
status | string | Status of consent {Authorised, AwaitingAuthorisation, Rejected} |
currency | string | Account currency |
amount | integer | Payment amount |
type | string | Payment type {DOMESTIC} |
Error Messages
Condition | Response Status | Response Body |
---|
Invalid consentId | 404 Not Found | |
Request Params
Key | Datatype | Required | Description |
---|
pageId | null | | Page offset of results |
Key | Datatype | Required | Description |
---|
Content-Type | string | | |
X-Api-Key | string | | |
X-Partner-Id | string | | |
Authorization | string | | |
X-Company-Id | string | | |
RESPONSES
status: OK
{"id":"consentId1234","companyId":"companyId1234","amount":"20.00","currency":"GBP","type":"DOMESTIC","bankId":6,"creationDate":"2020-07-30T15:10:38.002Z","status":"AWAITINGAUTHORISATION"}