Payments and Recurring Payments Public APIs (1.1)
Download OpenAPI specification:Download
Payments and Recurring Payments Public APIs
Create a draft payment, which you can later proces
Create a draft payment, which you can later process by its id
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Request Body schema: application/json
invoiceRefNumber required | string Reference number for your payment. Due to restrictions on reference length in most banks this field is limited to 12 characters and can only contain letters, numbers and dashes |
amount required | string |
customerName | string |
dueDate | object JavaScript Date Object |
attachmentUrl | string |
customerEmail | string |
customerEmailCC | string |
customRedirectUrl | string A custom redirect URL only for the current payment |
type | string (PaymentTypes) Enum: "link" "qr" "mobile" |
Responses
Request samples
- Payload
{- "invoiceRefNumber": "ref123",
- "amount": "string",
- "customerName": "string",
- "dueDate": { },
- "attachmentUrl": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "customRedirectUrl": "string",
- "type": "link"
}
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "customRedirectUrl": "string"
}
}
Create and process payment
Create and process payment
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Request Body schema: application/json
invoiceRefNumber required | string Reference number for your payment. Due to restrictions on reference length in most banks this field is limited to 12 characters and can only contain letters, numbers and dashes |
amount required | string |
customerName | string |
dueDate | object JavaScript Date Object |
attachmentUrl | string |
customerEmail | string |
customerEmailCC | string |
customRedirectUrl | string A custom redirect URL only for the current payment |
type | string (PaymentTypes) Enum: "link" "qr" "mobile" |
Responses
Request samples
- Payload
{- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "dueDate": { },
- "attachmentUrl": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "customRedirectUrl": "string",
- "type": "link"
}
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "customRedirectUrl": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
}
Get payment data
Get payment data
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "customRedirectUrl": "string"
}
}
Get list of all payments
Get list of all payments
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
[- {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "customRedirectUrl": "string"
}
]
Edit payment data
Edit payment data
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Request Body schema: application/json
_id required | string Mongoose Object ID |
invoiceRefNumber | string |
amount | string |
customerName | string |
dueDate | object JavaScript Date Object |
attachmentUrl | string |
customerEmail | string |
customerEmailCC | string |
customRedirectUrl | string A custom redirect URL only for the current payment |
Responses
Request samples
- Payload
{- "_id": "string",
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "dueDate": { },
- "attachmentUrl": "string",
- "customerEmail": "string",
- "customerEmailCC": "string",
- "customRedirectUrl": "string"
}
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "customRedirectUrl": "string"
}
}
Process payment
Process payment
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "customRedirectUrl": "string"
}
}
Delete payment
Delete payment
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "deleted": true
}
Refund payment
Refund payment
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Request Body schema: application/json
amount | string Override refund amount |
object |
Responses
Request samples
- Payload
{- "amount": "string",
- "payeeAccountInfo": {
- "name": "string",
- "externalAccountId": "string",
- "identification": "string",
- "email": "string"
}
}
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "id": "string",
- "status": "paid",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "refundLink": "string",
- "refundQrCodeData": "string",
- "completedAt": "string",
- "customRedirectUrl": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": {
- "id": "string",
- "status": "draft",
- "dataApiCheckStatus": "pending_payment",
- "lastDataApiCheckAt": { },
- "invoiceRefNumber": "string",
- "amount": "string",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": { },
- "createdAt": "string",
- "currency": "string",
- "link": "string",
- "qrCodeData": "string",
- "customRedirectUrl": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
}
]
}
}
Create draft recurring payment
Create draft recurring payment
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Request Body schema: application/json
reference required | string <= 12 characters ^[a-z0-9-]+$ |
recurringAmount required | string^[0-9]*.[0-9]{2}$ The amount of money that will come to your bank account from the client during the active period of regular payments |
recurringPaymentDate required | string Javascript date. First payment date of recurring payment. Note: Due to banks requirements , the first payment date must be 3 working days in the future. |
numberOfPayments required | integer Expected number of payments. Set 0 for indefinite |
frequency required | string Enum: "one_week" "one_month" "three_months" "one_year" Time interval between payments. |
initialPaymentAmount | string^[0-9]*.[0-9]{2}$ Set if you want to request single immediate payment |
customerName | string |
customerEmail | string |
customerEmailCC | Array of strings |
Responses
Request samples
- Payload
{- "reference": "12345abc",
- "recurringAmount": "0.50",
- "recurringPaymentDate": "2022-12-24T00:00:00Z",
- "numberOfPayments": 0,
- "frequency": "one_week",
- "initialPaymentAmount": "0.50",
- "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
]
}
Response samples
- 201
- 401
- 403
- 500
{- "created": true,
- "result": {
- "id": "3858f642-e92f-431c-9d38-46d15efb7fba",
- "invoiceRefNumber": "ref-123456",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "sent",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
], - "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string",
- "qrCodeData": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
}
Create and send recurring payment
Create and send recurring payment
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Request Body schema: application/json
reference required | string <= 12 characters ^[a-z0-9-]+$ |
recurringAmount required | string^[0-9]*.[0-9]{2}$ The amount of money that will come to your bank account from the client during the active period of regular payments |
recurringPaymentDate required | string Javascript date. First payment date of recurring payment. Note: Due to banks requirements , the first payment date must be 3 working days in the future. |
numberOfPayments required | integer Expected number of payments. Set 0 for indefinite |
frequency required | string Enum: "one_week" "one_month" "three_months" "one_year" Time interval between payments. |
initialPaymentAmount | string^[0-9]*.[0-9]{2}$ Set if you want to request single immediate payment |
customerName | string |
customerEmail | string |
customerEmailCC | Array of strings |
Responses
Request samples
- Payload
{- "reference": "12345abc",
- "recurringAmount": "0.50",
- "recurringPaymentDate": "2022-12-24T00:00:00Z",
- "numberOfPayments": 0,
- "frequency": "one_week",
- "initialPaymentAmount": "0.50",
- "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
]
}
Response samples
- 201
- 401
- 403
- 500
{- "success": true,
- "result": {
- "id": "3858f642-e92f-431c-9d38-46d15efb7fba",
- "invoiceRefNumber": "ref-123456",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "sent",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
], - "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string",
- "qrCodeData": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
}
Get recurring payments data
Get recurring payments data
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "id": "3858f642-e92f-431c-9d38-46d15efb7fba",
- "invoiceRefNumber": "ref-123456",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "sent",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
], - "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string",
- "qrCodeData": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
Get list of all recurring payments
Get list of all recurring payments
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
[- {
- "id": "3858f642-e92f-431c-9d38-46d15efb7fba",
- "invoiceRefNumber": "ref-123456",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "sent",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
], - "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string",
- "qrCodeData": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
]
Edit recurring payments
Edit recurring payments
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Request Body schema: application/json
reference required | string <= 12 characters ^[a-z0-9-]+$ |
recurringAmount required | string^[0-9]*.[0-9]{2}$ The amount of money that will come to your bank account from the client during the active period of regular payments |
recurringPaymentDate required | string Javascript date. First payment date of recurring payment. Note: Due to banks requirements , the first payment date must be 3 working days in the future. |
numberOfPayments required | integer Expected number of payments. Set 0 for indefinite |
frequency required | string Enum: "one_week" "one_month" "three_months" "one_year" Time interval between payments. |
initialPaymentAmount | string^[0-9]*.[0-9]{2}$ Set if you want to request single immediate payment |
customerName | string |
customerEmail | string |
customerEmailCC | Array of strings |
Responses
Request samples
- Payload
{- "reference": "12345abc",
- "recurringAmount": "0.50",
- "recurringPaymentDate": "2022-12-24T00:00:00Z",
- "numberOfPayments": 0,
- "frequency": "one_week",
- "initialPaymentAmount": "0.50",
- "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
]
}
Response samples
- 200
- 401
- 403
- 500
{- "saved": true,
- "result": {
- "id": "3858f642-e92f-431c-9d38-46d15efb7fba",
- "invoiceRefNumber": "ref-123456",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "sent",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
], - "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string",
- "qrCodeData": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
}
Send recurring payment
Send recurring payment
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "success": true,
- "result": {
- "id": "3858f642-e92f-431c-9d38-46d15efb7fba",
- "invoiceRefNumber": "ref-123456",
- "recurringAmount": "0.50",
- "firstPaymentDate": "2022-12-24T00:00:00Z",
- "finalPaymentDate": "2022-12-24T00:00:00Z",
- "expectedNumberOfPayments": 0,
- "frequency": "one_week",
- "status": "sent",
- "initialPayment": {
- "id": "string",
- "status": "draft",
- "invoiceRefNumber": "string",
- "amount": "0.50",
- "customerName": "string",
- "customerEmail": "string",
- "customerEmailCC": [ ],
- "dueDate": "2022-12-24T00:00:00Z",
- "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string"
}, - "customerName": "John Doe",
- "customerEmail": "email@example.com",
- "customerEmailCC": [
- "email@example.com"
], - "createdAt": "2022-12-24T00:00:00Z",
- "currency": "string",
- "qrCodeData": "string",
- "actionsHistory": [
- {
- "timestamp": { },
- "newEntityState": { }
}
]
}
}
Delete recurring payments
Delete recurring payments
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "deleted": true
}
Get list of payments of recurring payment
Get list of payments of recurring payment
path Parameters
id required | string Example: 62b48c5b6ba2cd6a040b20a8 Mongoose Object ID of the payment |
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
[- {
- "id": "630819bccb5a9dbad3780a73",
- "amount": "0.50",
- "status": "pending",
- "expectedPaymentDate": "2022-12-24T00:00:00Z",
- "completedAt": "2022-12-24T00:00:00Z"
}
]
Initiate payment
Initiate payment
Request Body schema: application/json
type | string 'payment' or 'recurring payment' |
id | string Hashed ID from the payment link (the one after or p?= or rp?=) |
externalId | any (ProviderExternalIDs) Enum: "ob-bos-business" "ob-barclays-personal" "ob-bos-personal" "ob-barclays-business" "ob-halifax-personal" "ob-hsbc-personal" "ob-hsbc-business" "ob-first-direct" "ob-natwest" "ob-nationwide" "ob-monzo" "ob-lloyds-personal" "ob-lloyds-business" "ob-revolut" "ob-ulster" "ob-rbs" "ob-santander" "ob-tsb" "ob-starling" "other" "ob-virgin-money" "ob-tide" "ob-mettle" "ob-chase" External ID of the provider |
Responses
Request samples
- Payload
{- "type": "string",
- "id": "string",
- "externalId": "ob-natwest"
}
Response samples
- 401
- 403
- 500
"ApiToken is expired"
Get bank account connection type.
Returns the connection type of the bank account associated with the current integration.
header Parameters
secret-key required | string <uuid> Example: 3858f642-e92f-431c-9d38-46d15efb7fba |
integration-id required | string Example: 62b48adf6ba2cd6a040b1eec |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "data": {
- "connectionType": "manually_created | data_api"
}
}