v1
latestOpenAPI 3.0.12026-07-2428103163.2 KBOrganisations
Pay Runs
Estimate pay run costs
Estimates costs for a pay run without creating it. Accepts minimal beneficiary details (country code only). Returns detailed fee breakdown, batch assignments, and routing information.
post/organisations/{organisationId}/pay-runs/estimate
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-Estimate-ID",
"scheduledExecutionDate": "2023-07-17",
"paymentSourceId": "C86FC455-3D2C-484C-9B8A-1996B2C6DB5E",
"payables": [
{
"partnerEntityId": "Your-Unique-ID",
"recipientAmount": {
"currencyCode": "GBP",
"amountInMinorUnits": 1275
},
"beneficiary": {
"country": "GB",
"bankAccount": {
"country": "FR",
"accountCurrency": "EUR"
}
},
"fees": {
"providerVariableFee": {
"discountMultiplier": 0.9
}
}
}
],
"groups": [
{
"partnerEntityId": "Your-Unique-ID",
"partnerPayableIds": [
{
"partnerEntityId": "Your-Unique-ID"
}
],
"reference": "My-Ref-1234"
}
]
}Response
OK
Example response
{
"scheduledExecutionDate": "2023-07-17",
"paymentSourceId": "C86FC455-3D2C-484C-9B8A-1996B2C6DB5E",
"payables": [
{
"fundingAmount": {
"currencyCode": "GBP",
"amountInMinorUnits": 1275
}
}
],
"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"
}
]
}
],
"summary": {
"totalFeesAmount": {
"currencyCode": "GBP",
"amountInMinorUnits": 1275
}
}
}