Skip to content

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_methodDescriptionArrival currency
BANKTRANSFERBank account or IBAN, any country served by a channelper country
PAYPALPayPal e-mailUSD / EUR / GBP …
PIXBrazil instant paymentsBRL
UPTIONTurkey Papara-style walletTRY
SBPRussia Faster Payments SystemRUB

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 equalsMeaningThe other side
source_currencyFixed debit — you say how much leaves the balancedestination_amount = amount × fx_rate, rounded down to the arrival currency's minor units
destination_currencyFixed arrival — you say how much the beneficiary receivessource_amount = amount ÷ fx_rate, rounded up to the debit currency's minor units
  • source_currency must be a balance you hold and one of USD, EUR, GBP or 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 have fx_rate = "1".
  • source_amount must be within 1–100,000 (in the debit currency); otherwise AMOUNT_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 + fee is 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:

StatusMeaningBalance
PENDINGAccepted, queued for a channel; cancellabletotal_debit debited
PROCESSINGHanded to the channel; not cancellabledebited
SUCCESSChannel confirmed the payoutdebited (final)
FAILEDChannel rejected ittotal_debit refunded
RETURNEDPaid, then bounced back by the beneficiary banksource_amount refunded; fee kept
CANCELLEDCancelled by you or by reviewtotal_debit refunded
PENDING ──► PROCESSING ──► SUCCESS ──► RETURNED
   │             └───────► FAILED
   └──► CANCELLED

Insufficient 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 → 200 with 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_no is EasyPay's order number (PO + date + sequence); query and cancel accept it. reference_id is yours.
  • account and document_id are masked (last 4 kept; e-mails keep the first character and the domain).
  • remark is the system's note on the current status; failure (present for FAILED / RETURNED / CANCELLED) carries a stable code (CANCELLED, NAME_MISMATCH, ACCOUNT_CLOSED, CHANNEL_ERROR, …) and a message.
  • finished_at appears once the order is final.
  • attach is echoed back unchanged; use it for your own identifiers (a JSON string is fine).

Examples ​

json
{
  "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}"
}
json
{
  "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"
}
json
{
  "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):

json
{
  "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.

EasyPay merchant API · v1