v1
latestOpenAPI 3.0.12026-07-2428103163.2 KBOrganisations
Pay Runs
Create pay run
Creates a single pay run containing one or more payables scheduled for a given date. All payables within a a pay run are paid from a single payer account. Each payable can be for a different recipient.
post/organisations/{organisationId}/pay-runs
Path parameters
organisationIdstring uuid required
The unique Crezco ID for an organisation
Headers
Crezco-Versionstring
The requested API version
Request body
Example request
{
"partnerEntityId": "Your-Unique-ID",
"scheduledExecutionDate": "2023-07-17",
"paymentSourceId": "C86FC455-3D2C-484C-9B8A-1996B2C6DB5E",
"payables": [
{
"fundingAmount": {
"currencyCode": "GBP",
"amountInMinorUnits": 1275
},
"reference": "My-Ref-1234",
"reversedAmount": {
"currencyCode": "GBP",
"amountInMinorUnits": 1275
},
"paymentSourceId": "C86FC455-3D2C-484C-9B8A-1996B2C6DB5E"
}
],
"groups": [
{
"partnerEntityId": "Your-Unique-ID",
"partnerPayableIds": [
{
"partnerEntityId": "Your-Unique-ID"
}
],
"reference": "My-Ref-1234"
}
],
"batches": [
{
"groups": [
{
"partnerEntityId": "Your-Unique-ID"
}
],
"payables": [
{
"partnerEntityId": "Your-Unique-ID"
}
]
}
]
}Response
Created
Example response
{
"partnerEntityId": "Your-Unique-ID",
"scheduledExecutionDate": "2023-07-17",
"paymentSourceId": "C86FC455-3D2C-484C-9B8A-1996B2C6DB5E",
"payables": [
{
"fundingAmount": {
"currencyCode": "GBP",
"amountInMinorUnits": 1275
},
"reference": "My-Ref-1234",
"reversedAmount": {
"currencyCode": "GBP",
"amountInMinorUnits": 1275
},
"paymentSourceId": "C86FC455-3D2C-484C-9B8A-1996B2C6DB5E"
}
],
"groups": [
{
"partnerEntityId": "Your-Unique-ID",
"partnerPayableIds": [
{
"partnerEntityId": "Your-Unique-ID"
}
],
"reference": "My-Ref-1234"
}
],
"batches": [
{
"groups": [
{
"partnerEntityId": "Your-Unique-ID"
}
],
"payables": [
{
"partnerEntityId": "Your-Unique-ID"
}
]
}
]
}