Payouts
Field-level definitions of the four endpoints are in the API reference. This page covers the business semantics: how amounts are computed, when money moves, how states flow, and which operations are safe to repeat.
Payment methods
payment_method | Description | Arrival currency |
|---|---|---|
BANKTRANSFER | Bank account or IBAN, any country served by a channel | per country |
PAYPAL | PayPal e-mail | USD / EUR / GBP … |
PIX | Brazil instant payments | BRL |
UPTION | Turkey Papara-style wallet | TRY |
SBP | Russia Faster Payments System | RUB |
payment_method, country and destination_currency must all be served by one enabled channel: if channel A serves PIX / BR / BRL and channel B serves PIX / PT / EUR, then PIX / BR / EUR is rejected (UNSUPPORTED_CURRENCY). When country is omitted it is defaulted only if the method's channels serve exactly one country; otherwise you must pass it.
Amounts: fixed debit vs fixed arrival
currency must equal either source_currency or destination_currency; that choice says which side you fix:
currency equals | Meaning | The other side |
|---|---|---|
source_currency | Fixed debit — you say how much leaves the balance | destination_amount = amount × fx_rate, rounded down to the arrival currency's minor units |
destination_currency | Fixed arrival — you say how much the beneficiary receives | source_amount = amount ÷ fx_rate, rounded up to the debit currency's minor units |
source_currencymust be a balance you hold and one ofUSD,EUR,GBPor the payout's local (arrival) currency.fx_rate(1 source = fx_rate dest) is locked at creation and stored on the order; same-currency payouts havefx_rate = "1".source_amountmust be within 1–100,000 (in the debit currency); otherwiseAMOUNT_OUT_OF_RANGE.
Fees
- The fee is in the debit currency, from the schedule configured per App × payment method × country (percentage + fixed, possibly capped / floored).
total_debit = source_amount + feeis what actually leaves the balance.fee_bear:merchant(default) — you pay the fee and the beneficiary receives the full amount;beneficiary— the fee is deducted from what the beneficiary receives, on channels that support it.- A method without an enabled schedule is
UNSUPPORTED_PAYMENT_METHOD. Schedules are visible in the App's detail page of the merchant portal.
Funds: debited at creation
When /payout/create returns success, total_debit has already been deducted from the available balance (it is not a hold). Every later state has a defined money movement:
| Status | Meaning | Balance |
|---|---|---|
PENDING | Accepted, queued for a channel; cancellable | total_debit debited |
PROCESSING | Handed to the channel; not cancellable | debited |
SUCCESS | Channel confirmed the payout | debited (final) |
FAILED | Channel rejected it | total_debit refunded |
RETURNED | Paid, then bounced back by the beneficiary bank | source_amount refunded; fee kept |
CANCELLED | Cancelled by you or by review | total_debit refunded |
PENDING ──► PROCESSING ──► SUCCESS ──► RETURNED
│ └───────► FAILED
└──► CANCELLEDInsufficient balance is 422 INSUFFICIENT_BALANCE; no order is created and the reference_id stays free.
Idempotency
Repeating /payout/create with the same reference_id:
- byte-identical body →
200with the original order, no second debit; - different body →
409 DUPLICATE_REFERENCE_ID.
So after a network timeout, retry with the same reference_id and the same body — that is the recommended behaviour. Do not retry with a new reference_id; that creates a second payout.
Cancellation
/payout/cancel works only on PENDING. Orders move to PROCESSING before they are handed to a channel, so a successful cancellation guarantees no money goes out; PROCESSING and later answer 409 NOT_CANCELLABLE. Cancelling an already cancelled order returns 200 (idempotent). total_debit is refunded immediately.
The order object
Create, query and cancel return the same structure, and it is the webhook's data:
trade_nois EasyPay's order number (PO+ date + sequence); query and cancel accept it.reference_idis yours.accountanddocument_idare masked (last 4 kept; e-mails keep the first character and the domain).remarkis the system's note on the current status;failure(present forFAILED/RETURNED/CANCELLED) carries a stablecode(CANCELLED,NAME_MISMATCH,ACCOUNT_CLOSED,CHANNEL_ERROR, …) and a message.finished_atappears once the order is final.attachis echoed back unchanged; use it for your own identifiers (a JSON string is fine).
Examples
{
"reference_id": "ORD-2026-10-14-0001",
"amount": "50.00",
"currency": "BRL",
"source_currency": "USD",
"destination_currency": "BRL",
"payment_method": "PIX",
"name": "João Silva",
"country": "BR",
"document_type": "CPF",
"document_id": "529.982.247-25",
"account_type": "CPF",
"account": "52998224725",
"notify_url": "https://merchant.example.com/webhooks/easypay",
"additional_remark": "Invoice #8812",
"attach": "{\"orderId\":8812}"
}{
"reference_id": "PP-1",
"amount": "100.00",
"currency": "USD",
"source_currency": "USD",
"destination_currency": "USD",
"payment_method": "PAYPAL",
"account_type": "EMAIL",
"account": "payee@example.com"
}{
"reference_id": "BT-1",
"amount": "500.00",
"currency": "USD",
"source_currency": "USD",
"destination_currency": "MXN",
"payment_method": "BANKTRANSFER",
"name": "María López",
"country": "MX",
"document_type": "RFC",
"document_id": "LOPM800101ABC",
"account_type": "CHECKING",
"account": "012345678901234567",
"bank_code": "012",
"bank_name": "BBVA México"
}Response for the PIX example (rate 4.938185, fee 1% + 1 USD):
{
"trade_no": "PO2026101408050047391520BRPX",
"reference_id": "ORD-2026-10-14-0001",
"status": "PENDING",
"payment_method": "PIX",
"amount": "50.00",
"currency": "BRL",
"source_currency": "USD",
"source_amount": "10.13",
"destination_currency": "BRL",
"destination_amount": "50.00",
"fx_rate": "4.938185",
"fee_currency": "USD",
"fee": "1.10",
"fee_bear": "merchant",
"total_debit": "11.23",
"name": "João Silva",
"country": "BR",
"document_type": "CPF",
"document_id": "**********7-25",
"account_type": "CPF",
"account": "*******4725",
"additional_remark": "Invoice #8812",
"attach": "{\"orderId\":8812}",
"created_at": "2026-10-14T08:00:00Z"
}50 ÷ 4.938185 = 10.1252 → rounded up to 10.13; fee 10.13 × 1% + 1 = 1.1013 → 1.10; total_debit 11.23.