Create Payment Authorisation
Used to initiate the authorisation process and direct users to the login screen of their financial Institution in order to give their consent for a payment. This endpoint is used to initiate all the different payment listed below. Based on the type of payment you wish to make, you may be required to provide specific properties in PaymentRequest. First make sure that the payment feature you wish to execute is supported by the bank by checking the features array in GET Institution.
Features:
- INITIATE_DOMESTIC_PERIODIC_PAYMENT
- INITIATE_DOMESTIC_SCHEDULED_PAYMENT
- INITIATE_DOMESTIC_SINGLE_INSTANT_PAYMENT
- INITIATE_DOMESTIC_SINGLE_PAYMENT
- INITIATE_INTERNATIONAL_PERIODIC_PAYMENT
- INITIATE_INTERNATIONAL_SCHEDULED_PAYMENT
- INITIATE_INTERNATIONAL_SINGLE_PAYMENT
Request
- Base URLhttps://api.yapily.com
- AuthHTTP basic
Headers
Conditional. Represents the user's login ID for the Institution to a personal account.
See PSU identifiers to see if this header is required.
Conditional. Represents the user's login ID for the Institution to a business account.
See PSU identifiers to see if this header is required.
Conditional. The IP address of the PSU.
See PSU identifiers to see if this header is required.
The sub-application ID to which event type is being subscribed to
Request body
Example request
{
"applicationUserId": "user-234562290",
"institutionId": "yapily-mock",
"callback": "https://display-parameters.com",
"paymentRequest": {
"paymentIdempotencyId": "04ab4536gaerfc0e1f93c4f4",
"payer": {
"name": "John Doe",
"accountIdentifications": [
{
"type": "SORT_CODE",
"identification": "401016"
}
],
"address": {
"country": "GB"
}
},
"reference": "Bill payment",
"payee": {
"name": "Jane Doe",
"accountIdentifications": [
{
"identification": "401016",
"type": "SORT_CODE"
},
{
"identification": "71518920",
"type": "ACCOUNT_NUMBER"
}
],
"address": {
"country": "GB"
},
"merchantId": "24589303",
"merchantCategoryCode": "0742"
},
"periodicPayment": {
"frequency": {
"intervalWeek": 1,
"intervalMonth": 1,
"executionDay": 1
},
"numberOfPayments": 5,
"nextPaymentDateTime": "2018-01-10T00:00:00Z",
"nextPaymentAmount": {
"amount": 10,
"currency": "GBP"
},
"finalPaymentDateTime": "2030-01-10T00:00:00Z",
"finalPaymentAmount": {
"amount": 10,
"currency": "GBP"
}
},
"amount": {
"amount": 10,
"currency": "GBP"
},
"paymentDateTime": "2021-07-21T17:32:28Z"
}
}Response
Created
Example response
{
"data": {
"charges": [
{
"chargeAmount": {
"amount": 10,
"currency": "GBP"
}
}
]
}
}Changes
No recorded changes to this operation across all 4 revisions of this API.