Quickstart
Follow these steps in order; a first PIX payout with a received webhook usually takes half a day in the sandbox.
1. Get credentials
EasyPay provisions your credentials in the admin console and hands them to you:
| Item | Description |
|---|---|
| Merchant portal account | Created by EasyPay; the username and initial password are shown once and delivered to you. Signs you into the merchant portal |
app_no | The value of the X-App-Id header, app_…, created together with your App |
app_secret | Shown once, at creation. Signs your requests and verifies webhooks. Keep it in your server-side secret store, never in a repository |
During onboarding EasyPay enables a fee schedule for every payment method you will use (a method without one answers UNSUPPORTED_PAYMENT_METHOD) and, on request, configures the source IP whitelist (once set, only those IPs may call; unset means no restriction). To add methods or change the whitelist later, contact EasyPay — the merchant portal has no self-service writes for these.
On the merchant portal you can: view balances and orders, view Apps and fee schedules, and reveal or reset your app_secret.
Sandbox and production are separate deployments with separate credentials. Finish the whole integration in the sandbox first.
2. Conventions
| Item | Convention |
|---|---|
| Base path | https://<host>/api/v1; see the servers in the API reference |
| Method | Everything is POST with a JSON body; no query strings, no path parameters |
| Encoding | Content-Type: application/json; charset=utf-8; do not gzip the body |
| Naming | Fields are snake_case; unknown fields are rejected with 400 so typos never pass silently |
| Amounts | Decimal strings ("50.00") with at most the currency's ISO 4217 minor units (BRL 2, JPY 0) |
| Time | RFC 3339, UTC |
| Currency / country | ISO 4217 three letters / ISO 3166-1 alpha-2, both upper case |
| Tracing | Every response carries X-Request-ID; error bodies repeat it as request_id. Quote it to support |
| Body limit | 64 KB |
3. Get the signature right first
Run your implementation against the test vector in Request signing; body_hash and signature must match the documented values exactly. A bad signature is answered with a bare 401 INVALID_SIGNATURE — the server does not say which step is wrong — so do this offline before going on the wire.
4. Create a sandbox PIX payout
Fixed arrival of 50 BRL, funded from the USD balance:
POST /api/v1/payout/create
{
"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"
}Success is 200 with the order; status is PENDING and total_debit (principal + fee) has already left the available balance. Field details: API reference → createPayout.
5. Query and final state
- Poll:
POST /payout/querywithtrade_noorreference_id. - Push: when the order reaches
SUCCESS/FAILED/RETURNED, a signed webhook is sent tonotify_url; see Webhooks. In production rely on webhooks and keep polling as a fallback.
In the sandbox you can force success, failure and returns with the mock channel triggers described in Sandbox.
6. Go-live checklist
- [ ] Signing passes the test vector; after a timeout you retry with the same
reference_idand the same body - [ ] Every error code is handled, distinguishing "fix the request" from "retry later"
- [ ] Webhook endpoint: verify before parsing; deduplicate on
event_id; answer 2xx within 5 s and process asynchronously - [ ] Local orders are updated from
data.status;eventis only the trigger - [ ] Production
notify_urlis a publichttps://URL; the IP whitelist lists your production egress IPs - [ ]
/balance/queryfeeds a low-balance alert so you never hitINSUFFICIENT_BALANCE