Skip to content

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:

ItemDescription
Merchant portal accountCreated by EasyPay; the username and initial password are shown once and delivered to you. Signs you into the merchant portal
app_noThe value of the X-App-Id header, app_…, created together with your App
app_secretShown 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 ​

ItemConvention
Base pathhttps://<host>/api/v1; see the servers in the API reference
MethodEverything is POST with a JSON body; no query strings, no path parameters
EncodingContent-Type: application/json; charset=utf-8; do not gzip the body
NamingFields are snake_case; unknown fields are rejected with 400 so typos never pass silently
AmountsDecimal strings ("50.00") with at most the currency's ISO 4217 minor units (BRL 2, JPY 0)
TimeRFC 3339, UTC
Currency / countryISO 4217 three letters / ISO 3166-1 alpha-2, both upper case
TracingEvery response carries X-Request-ID; error bodies repeat it as request_id. Quote it to support
Body limit64 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:

json
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/query with trade_no or reference_id.
  • Push: when the order reaches SUCCESS / FAILED / RETURNED, a signed webhook is sent to notify_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_id and 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; event is only the trigger
  • [ ] Production notify_url is a public https:// URL; the IP whitelist lists your production egress IPs
  • [ ] /balance/query feeds a low-balance alert so you never hit INSUFFICIENT_BALANCE

EasyPay merchant API · v1