A Payment run contains a list of supplier payments. A Payment run can be
CREATOR
role CONTROLLER
roleCONTROLLER
roleNote that the Controller user must have their mobile device enrolled to SCA.
Before a payment run can be executed, it must be funded. Users with the CONTROLLER
role must link their company's bank account(s) that are represented as Linked Accounts, which than can be used as the funding source for a payment run.
Depending on the bank's constraints it may not be possible to deposit the total amount of funds required for a payment run, in which case the payment run will be automatically split into funding groups. All funding groups must be funded and executed for the payment run to be marked as completed.
Note that even if the payment is created successfully, you still need to check its status in order to determine if it is completed
orfailed
.
Create a new payment run containing a list of outstanding supplier payments.
Note that all the supplier payments in a payment run is limited to one currency. The currency of the payment run are enabled upon the Buyer’s registration.
Required user role: CREATOR
OK
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Conflict
Content Too Large
Unprocessable Entity
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "paymentRunRef": "94fddfb2-297d-423d-9157-4200b7beb834",
- "tag": "string",
- "description": "September payment run 01",
- "payments": [
- {
- "externalRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentAmount": {
- "currency": "GBP",
- "amount": 1
}, - "reference": "string",
- "supplier": {
- "name": "string",
- "address": "string",
- "bankName": "string",
- "bankAddress": "string",
- "bankCountry": "st",
- "type": "PERSONAL",
- "bankAccountDetails": {
- "accountNumber": "stringst",
- "sortCode": "string",
- "secondaryReference": "string"
}
}
}
]
}
{- "id": "string",
- "paymentRunRef": "94fddfb2-297d-423d-9157-4200b7beb834",
- "tag": "string",
- "description": "September payment run 01",
- "createdBy": "110747174434373672",
- "status": "PENDING_CONFIRMATION",
- "statusReason": "string",
- "payments": [
- {
- "id": "string",
- "status": "QUEUED",
- "externalRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentAmount": {
- "currency": "GBP",
- "amount": 1
}, - "reference": "string",
- "supplier": {
- "name": "string",
- "address": "string",
- "bankName": "string",
- "bankAddress": "string",
- "bankCountry": "st",
- "type": "PERSONAL",
- "bankAccountDetails": {
- "accountNumber": "stringst",
- "sortCode": "string",
- "secondaryReference": "string"
}
}, - "validationOutcomes": [
- {
- "category": "UK_CONFIRMATION_OF_PAYEE",
- "categoryResult": {
- "match": "EXACT_MATCH",
- "reasonCode": "ANNM",
- "accountName": "string"
}
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
Retrieve the list of payment runs belonging to the buyer that the logged-in user belongs to.
Required user roles: CONTROLLER
OR CREATOR
OK
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "count": 10,
- "responseCount": 100,
- "paymentRuns": [
- {
- "id": "string",
- "paymentRunRef": "94fddfb2-297d-423d-9157-4200b7beb834",
- "tag": "string",
- "description": "September payment run 01",
- "createdBy": "110747174434373672",
- "status": "PENDING_CONFIRMATION",
- "statusReason": "string",
- "payments": [
- {
- "id": "string",
- "status": "QUEUED",
- "externalRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentAmount": {
- "currency": "GBP",
- "amount": 1
}, - "reference": "string",
- "supplier": {
- "name": "string",
- "address": "string",
- "bankName": "string",
- "bankAddress": "string",
- "bankCountry": "st",
- "type": "PERSONAL",
- "bankAccountDetails": {
- "accountNumber": "stringst",
- "sortCode": "string",
- "secondaryReference": "string"
}
}, - "validationOutcomes": [
- {
- "category": "UK_CONFIRMATION_OF_PAYEE",
- "categoryResult": {
- "match": null,
- "reasonCode": null,
- "accountName": null
}
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
]
}
Retrieve a payment run belonging to the buyer that the logged-in user belongs to.
Required user roles: CONTROLLER
OR CREATOR
OK
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Not found - The requested resource couldn't be found.
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "id": "string",
- "paymentRunRef": "94fddfb2-297d-423d-9157-4200b7beb834",
- "tag": "string",
- "description": "September payment run 01",
- "createdBy": "110747174434373672",
- "status": "PENDING_CONFIRMATION",
- "statusReason": "string",
- "payments": [
- {
- "id": "string",
- "status": "QUEUED",
- "externalRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentAmount": {
- "currency": "GBP",
- "amount": 1
}, - "reference": "string",
- "supplier": {
- "name": "string",
- "address": "string",
- "bankName": "string",
- "bankAddress": "string",
- "bankCountry": "st",
- "type": "PERSONAL",
- "bankAccountDetails": {
- "accountNumber": "stringst",
- "sortCode": "string",
- "secondaryReference": "string"
}
}, - "validationOutcomes": [
- {
- "category": "UK_CONFIRMATION_OF_PAYEE",
- "categoryResult": {
- "match": "EXACT_MATCH",
- "reasonCode": "ANNM",
- "accountName": "string"
}
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
Update the details of a payment identified by the paymentId that is in the PENDING_CONFIRMATION
state.
Required user role: CREATOR
No Content
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Not found - The requested resource couldn't be found.
Conflict
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "payments": [
- {
- "paymentId": "string",
- "supplier": {
- "name": "string",
- "address": "string",
- "bankName": "string",
- "bankAddress": "string",
- "bankCountry": "st",
- "type": "PERSONAL",
- "bankAccountDetails": {
- "accountNumber": "stringst",
- "sortCode": "string",
- "secondaryReference": "string"
}
}
}
]
}
{- "message": "string",
- "syntaxErrors": {
- "invalidFields": [
- {
- "params": [
- "string"
], - "fieldName": "string",
- "error": "REQUIRED"
}
]
}
}
Confirm that a payment run can be executed.
Required user role: CONTROLLER
OK
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Not found - The requested resource couldn't be found.
Conflict
Content Too Large
Unprocessable Entity
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "id": "string",
- "paymentRunRef": "94fddfb2-297d-423d-9157-4200b7beb834",
- "tag": "string",
- "description": "September payment run 01",
- "createdBy": "110747174434373672",
- "status": "PENDING_CONFIRMATION",
- "statusReason": "string",
- "payments": [
- {
- "id": "string",
- "status": "QUEUED",
- "externalRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentAmount": {
- "currency": "GBP",
- "amount": 1
}, - "reference": "string",
- "supplier": {
- "name": "string",
- "address": "string",
- "bankName": "string",
- "bankAddress": "string",
- "bankCountry": "st",
- "type": "PERSONAL",
- "bankAccountDetails": {
- "accountNumber": "stringst",
- "sortCode": "string",
- "secondaryReference": "string"
}
}, - "validationOutcomes": [
- {
- "category": "UK_CONFIRMATION_OF_PAYEE",
- "categoryResult": {
- "match": "EXACT_MATCH",
- "reasonCode": "ANNM",
- "accountName": "string"
}
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
Start the the funding process of a payment run.
Specify the funding source of the payment run by providing an id to an already linked account.
Depending on the maximum payment amount constraints imposed by the bank that is providing the account, the payment run may be split in 2 or more groups. Note that you'll need to complete a funding process for each instruction returned.
Required user role: CONTROLLER
OK
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Not found - The requested resource couldn't be found.
Conflict
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "count": 10,
- "responseCount": 100,
- "fundingInstructions": [
- {
- "reference": "string",
- "totalAmount": {
- "currency": "GBP",
- "amount": 454321
}, - "status": "PENDING_FUNDING",
- "fundingDate": "2019-08-24T14:15:22Z",
- "payments": [
- {
- "id": "string",
- "status": "QUEUED",
- "externalRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentRef": "c99cd66c-82fc-4a01-977b-61a2f5a247a1",
- "paymentAmount": {
- "currency": "GBP",
- "amount": 1
}, - "reference": "string",
- "supplier": {
- "name": "string",
- "address": "string",
- "bankName": "string",
- "bankAddress": "string",
- "bankCountry": "st",
- "type": "PERSONAL",
- "bankAccountDetails": {
- "accountNumber": "stringst",
- "sortCode": "string",
- "secondaryReference": "string"
}
}, - "validationOutcomes": [
- {
- "category": "UK_CONFIRMATION_OF_PAYEE",
- "categoryResult": {
- "match": null,
- "reasonCode": null,
- "accountName": null
}
}
]
}
]
}
]
}
Cancel a payment run.
Note that a payment run can be cancelled when it is in the states QUEUED
, PENDING_CONFIRMATION
, PENDING_CHALLENGE
, OR PENDING_FUNDING
Required user roles: CONTROLLER
OR CREATOR
Success - No Content.
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Not found - The requested resource couldn't be found.
Conflict
Content Too Large
Unprocessable Entity
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "message": "string",
- "syntaxErrors": {
- "invalidFields": [
- {
- "params": [
- "string"
], - "fieldName": "string",
- "error": "REQUIRED"
}
]
}
}
Cancel a payment within a payment run.
Note that a payment can be cancelled when it is in the state PENDING_CONFIRMATION
.
Required user roles: CONTROLLER
OR CREATOR
Success - No Content.
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Not found - The requested resource couldn't be found.
Conflict
Content Too Large
Unprocessable Entity
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "paymentIds": [
- "string"
]
}
{- "message": "string",
- "syntaxErrors": {
- "invalidFields": [
- {
- "params": [
- "string"
], - "fieldName": "string",
- "error": "REQUIRED"
}
]
}
}
Restart a payment run after it has entered status SCA_FAILED
.
Required user role: CONTROLLER
Success - No Content.
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Not found - The requested resource couldn't be found.
Conflict
Content Too Large
Unprocessable Entity
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "message": "string",
- "syntaxErrors": {
- "invalidFields": [
- {
- "params": [
- "string"
], - "fieldName": "string",
- "error": "REQUIRED"
}
]
}
}