Retrieve Payment Request by id

GET {{base_url}}/banking/v2/pay/payment-request/:paymentrequestid

The 'Retrieve payment request by id' endpoint can be used to look a specific payment request.

Attributes

FieldTypeDescription
creditorJSON objectCreditor information
creditor -> accountIdstringUnique identifier for the bank account (this is provided by Retrieve Bank Accounts endpoint)
creditor -> bankIdstring
creditor -> namestringName on the bank account
creditor -> schemeNamestringIBAN or Account and sort code
creditor -> identificationstringUnique id per bank account
creditor -> accountTypestringType of bank account e.g. BUSINESS, PERSONAL
currencystringAccount currency
amountintegerPayment amount
referencestringTransaction reference
paymentTypestringPayment type {DOMESTIC}
usagestring{SINGLE/MULTI}
Configure the request to take either single or multiple payments
isProtectedbooleanIf set to true, retrieve endpoints will mask bank account details.
purposestring{INVOICE, INSTANT_PAYMENTS, ECOMM, OTHERS}
Purpose for which the payment is being taken
statusstring{ACTIVE, IN_ACTIVE}
creationDatestringDate and Time when the request was created

HEADERS

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

RESPONSES

status: OK

{"id":"4b5b0eef-f17f-4760-afc9-1371f5b951c6","partnerId":"6ae1c843-e97d-437c-81d8-6106e91c985f","companyId":"2667fd3b-49e9-4a84-b77a-b013deada508","paymentType":"DOMESTIC","creditor":{"accountId":"6f440597-5af7-45f9-bf0d-0abbea113abd","bankId":50,"name":"Julia Research Ltd","schemeName":"UK.OBIE.SortCodeAccountNumber","identification":"60837109152388","accountType":"BUSINESS"},"amount":"0.01","currency":"GBP","reference":"test reference","creationDate":"2022-01-20T15:49:28.789Z","updatedDate":"","dynamicAmountUrl":"dynamicAmountUrl","usage":"SINGLE","status":"ACTIVE","isProtected":false,"purpose":"OTHERS","paymentLink":"https://pay.tomatopay.co.uk/request?l=eyJsaW5rSWQiOiJmMjJlZDMzYS1iNWUzLTRiZTUtYTgyYS1iNDMwYWY2OTliYzUiLCJwYXJ0bmVySWQiOiI2YWUxYzg0My1lOTdkLTQzN2MtODFkOC02MTA2ZTkxYzk4NWYifQ=="}