Payout scenarios
Six outcomes: one success and five failure reasons. Set email and beneficiaryLastName to the pair listed for the scenario you want.
Note the fields differ from payin. Payouts have a beneficiary, not a customer, so the pair lives in email and beneficiaryLastName at the root of the request body — not inside a customer object.
Every payout is asynchronous
There is no synchronous payout outcome. The create response is a bare integer: the payout id. No object, no status field.
200380Save it — it is your only handle on the payout, and how you correlate the webhook that follows about five seconds later.
This mirrors production, where a disbursement is submitted and then confirmed or rejected by the receiving institution. You cannot know the outcome of a payout from the response to your request — there is nothing in it to read. If your integration marks a disbursement as settled on the 200, it is wrong, and every one of these six scenarios will prove it.
If you have not set up a webhook receiver yet, do that first: Receiving webhooks.
All payout scenarios
| Scenario | statusTypeCode | errorReason | Retryable |
|---|---|---|---|
PO_FINISHED | FINISHED | — | — |
PO_ERROR_INVALID | ERROR | INVALID_ACCOUNT | After correction |
PO_ERROR_BLOCKED | ERROR | ACCOUNT_BLOCKED | No |
PO_ERROR_CLOSED | ERROR | ACCOUNT_CLOSED | No |
PO_ERROR_LIMIT | ERROR | LIMIT_EXCEEDED | Yes, later |
PO_ERROR_TAX | ERROR | TAX_ISSUE | No |
All six answer 200 with the payout id, then send the payout object by webhook at +5s.
Successful payout
PO_FINISHED
[email protected] | |
| Beneficiary last name | TestPayoutFinished |
| Response | 200 with the payout id |
| Webhook | statusTypeCode: FINISHED, +5s |
| Markets where this reflects production | All payout markets |
What your code should do. Funds reached the beneficiary. Mark the disbursement settled on the webhook, not on the synchronous PENDING.
Failure reasons
Five ways a payout can fail. All five reach the same terminal status, ERROR — what distinguishes them is errorReason. Your code has to branch on errorReason, not on the status, because the right response differs sharply: some are worth retrying and some never are.
PO_ERROR_INVALID
[email protected] | |
| Beneficiary last name | TestPayoutInvalid |
| Response | 200 with the payout id |
| Webhook | statusTypeCode: ERROR, +5s |
errorReason | INVALID_ACCOUNT |
| Markets where this reflects production | All payout markets |
What your code should do. Destination account details are wrong. Retryable once the beneficiary corrects them; do not retry the same payload.
PO_ERROR_BLOCKED
[email protected] | |
| Beneficiary last name | TestPayoutBlocked |
| Response | 200 with the payout id |
| Webhook | statusTypeCode: ERROR, +5s |
errorReason | ACCOUNT_BLOCKED |
| Markets where this reflects production | All payout markets |
What your code should do. Destination account is blocked at the bank. Not retryable: the beneficiary must resolve it. Surface it rather than scheduling automatic retries.
PO_ERROR_CLOSED
[email protected] | |
| Beneficiary last name | TestPayoutClosed |
| Response | 200 with the payout id |
| Webhook | statusTypeCode: ERROR, +5s |
errorReason | ACCOUNT_CLOSED |
| Markets where this reflects production | All payout markets |
What your code should do. Destination account no longer exists. Not retryable. Request new account details and invalidate the ones on file.
PO_ERROR_LIMIT
[email protected] | |
| Beneficiary last name | TestPayoutLimit |
| Response | 200 with the payout id |
| Webhook | statusTypeCode: ERROR, +5s |
errorReason | LIMIT_EXCEEDED |
| Markets where this reflects production | All payout markets |
What your code should do. A merchant or beneficiary limit was exceeded. The only failure in this family worth retrying later, since limits reset. Back off and retry.
PO_ERROR_TAX
[email protected] | |
| Beneficiary last name | TestPayoutTax |
| Response | 200 with the payout id |
| Webhook | statusTypeCode: ERROR, +5s |
errorReason | TAX_ISSUE |
| Markets where this reflects production | BR |
What your code should do. A tax condition blocked the payout. Not retryable by code; needs the beneficiary's tax situation resolved or intervention on our side. Route to operations.
Reading the outcome
The webhook carries the terminal status and, on failure, the reason:
{
"payoutId": 200380,
"statusTypeCode": "ERROR",
"errorReason": "INVALID_ACCOUNT",
"beneficiaryFirstName": "Pedro",
"beneficiaryLastName": "TestPayoutInvalid",
"email": "[email protected]",
"currencyCode": "BRL",
"country": "BR",
"amount": 100000.0,
"externalReference": "SBX-1788962138355"
}The webhook is the payout object itself, not an event envelope. Note the field names differ from payins: the identifier is payoutId and the status lives in statusTypeCode. A generic webhook handler that looks for status will silently miss every payout.
errorReason is also available on the payout when you retrieve it, so a webhook you missed is recoverable.
A retry policy that works for all five reasons:
errorReason | What it means | Retry? |
|---|---|---|
INVALID_ACCOUNT | Payout fails because the destination account is invalid. | After correction |
ACCOUNT_BLOCKED | Payout fails because the destination account is blocked. | No |
ACCOUNT_CLOSED | Payout fails because the destination account is closed. | No |
LIMIT_EXCEEDED | Payout fails because the merchant or beneficiary limit is exceeded. | Yes, later |
TAX_ISSUE | Payout fails due to a tax-related issue. | No |
Retrying a ACCOUNT_BLOCKED or ACCOUNT_CLOSED payout on a schedule will fail every time and delay the beneficiary being told there is a problem. LIMIT_EXCEEDED is the opposite: it resolves on its own, so a backoff-and-retry is the right handling.
Building the request
POST https://sandbox.payretailers.com/payments/v2/payoutBeyond the scenario pair, a payout needs country, payoutChannel and the destination fields for that channel. The channels available per market are listed in Payment methods and channels; the destination fields per channel are documented in the developer portal alongside the payout API reference.
{
"amount": 100000,
"currencyCode": "BRL",
"country": "BR",
"payoutChannel": "PIX",
"payoutBeneficiaryTypeCode": "person",
"beneficiaryFirstName": "Pedro",
"beneficiaryLastName": "TestPayoutFinished",
"email": "[email protected]",
"documentType": "1",
"documentNumber": "00000000000",
"recipientPixKey": "[email protected]",
"notificationUrl": "https://your-endpoint.example/hooks"
}amount is in minor units — 100000 is 1,000.00 BRL. As with payins, the sandbox does not validate document formats, so documentNumber accepts any well-formed value.
The destination fields — recipientPixKey here, bank and account fields for a transfer channel — are not part of scenario selection. The sandbox does not validate them against a real institution, so you can use placeholder values. Production does validate them, which makes this another gap the sandbox will not catch for you.
Before you build handling for these
Five of the six scenarios reflect production in every payout market. PO_ERROR_TAX is Brazil-only: the tax condition it represents does not exist elsewhere.
The sandbox does not enforce that. Send PO_ERROR_TAX with a Kenyan payout and you will get TAX_ISSUE back, an outcome production cannot produce there. Build handling for the markets listed on each scenario.
Full breakdown in Production realism by country.
Next
Updated about 8 hours ago