Skip to content

Sandbox ​

The sandbox is a deployment fully separate from production: its own host, merchants, App credentials and balances, with channels in test mode — no real money moves.

Environments ​

ItemSandboxProduction
APIhttps://openapi-sandbox.easypay.website/api/v1https://api.easypay.example/api/v1
Merchant portalsandbox portalproduction portal
Credentialssandbox App app_no / app_secretproduction App, created separately
Balancetest funds credited by EasyPayreal funds

Hostnames above are placeholders; use the ones EasyPay gives you.

Integration steps ​

  1. Verify your signing against the test vector.
  2. POST /balance/query to confirm your sandbox funds arrived — also the simplest call to validate the whole authentication path (signature, IP whitelist).
  3. Create a PIX payout and check 200 with PENDING; replay the identical body and check you get the same trade_no.
  4. Poll /payout/query to the final state; once your webhook endpoint is deployed, confirm the notification arrives and verifies.
  5. Force each failure path (triggers below) and confirm your system handles FAILED / RETURNED and the refunded balance.

Forcing outcomes ​

Sandbox channels decide the outcome from payee fields so you can exercise every branch:

Desired outcomeHow
Success (SUCCESS)Any valid payee
Synchronous channel rejection (FAILED without waiting in PROCESSING)account starting with fail- (e.g. PayPal e-mail fail-user@example.com)
Asynchronous failure (PROCESSING, then FAILED + refund)Ask EasyPay to trigger the sandbox callback, or use the channel sandbox's test-account rules
Return (SUCCESS, then RETURNED)As above
Insufficient balanceAmount above the sandbox balance → 422 INSUFFICIENT_BALANCE
Idempotency conflictSame reference_id, one field changed → 409

The PIX / UPTION / SBP sandbox channels (PS sandbox) have their own test-account rules; ask us for the current list during integration.

FAQ ​

  • Created but stays PENDING: the sandbox may have no channel configured or enabled for that method; contact EasyPay. In production, contact support if PENDING lasts more than a few minutes.
  • No webhook arrives: make sure notify_url is a public https:// URL; for local development expose it through a tunnel; check that your endpoint answers 2xx within 10 s.
  • UNSUPPORTED_PAYMENT_METHOD: no fee schedule is enabled for that method on your App; contact EasyPay to enable one.

EasyPay merchant API · v1