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.

200380

Save 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

ScenariostatusTypeCodeerrorReasonRetryable
PO_FINISHEDFINISHED——
PO_ERROR_INVALIDERRORINVALID_ACCOUNTAfter correction
PO_ERROR_BLOCKEDERRORACCOUNT_BLOCKEDNo
PO_ERROR_CLOSEDERRORACCOUNT_CLOSEDNo
PO_ERROR_LIMITERRORLIMIT_EXCEEDEDYes, later
PO_ERROR_TAXERRORTAX_ISSUENo

All six answer 200 with the payout id, then send the payout object by webhook at +5s.

Successful payout

PO_FINISHED

Email[email protected]
Beneficiary last nameTestPayoutFinished
Response200 with the payout id
WebhookstatusTypeCode: FINISHED, +5s
Markets where this reflects productionAll 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[email protected]
Beneficiary last nameTestPayoutInvalid
Response200 with the payout id
WebhookstatusTypeCode: ERROR, +5s
errorReasonINVALID_ACCOUNT
Markets where this reflects productionAll 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[email protected]
Beneficiary last nameTestPayoutBlocked
Response200 with the payout id
WebhookstatusTypeCode: ERROR, +5s
errorReasonACCOUNT_BLOCKED
Markets where this reflects productionAll 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[email protected]
Beneficiary last nameTestPayoutClosed
Response200 with the payout id
WebhookstatusTypeCode: ERROR, +5s
errorReasonACCOUNT_CLOSED
Markets where this reflects productionAll 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[email protected]
Beneficiary last nameTestPayoutLimit
Response200 with the payout id
WebhookstatusTypeCode: ERROR, +5s
errorReasonLIMIT_EXCEEDED
Markets where this reflects productionAll 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[email protected]
Beneficiary last nameTestPayoutTax
Response200 with the payout id
WebhookstatusTypeCode: ERROR, +5s
errorReasonTAX_ISSUE
Markets where this reflects productionBR

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:

errorReasonWhat it meansRetry?
INVALID_ACCOUNTPayout fails because the destination account is invalid.After correction
ACCOUNT_BLOCKEDPayout fails because the destination account is blocked.No
ACCOUNT_CLOSEDPayout fails because the destination account is closed.No
LIMIT_EXCEEDEDPayout fails because the merchant or beneficiary limit is exceeded.Yes, later
TAX_ISSUEPayout 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/payout

Beyond 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


Did this page help you?