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
| Item | Sandbox | Production |
|---|---|---|
| API | https://openapi-sandbox.easypay.website/api/v1 | https://api.easypay.example/api/v1 |
| Merchant portal | sandbox portal | production portal |
| Credentials | sandbox App app_no / app_secret | production App, created separately |
| Balance | test funds credited by EasyPay | real funds |
Hostnames above are placeholders; use the ones EasyPay gives you.
Integration steps
- Verify your signing against the test vector.
POST /balance/queryto confirm your sandbox funds arrived — also the simplest call to validate the whole authentication path (signature, IP whitelist).- Create a PIX payout and check
200withPENDING; replay the identical body and check you get the sametrade_no. - Poll
/payout/queryto the final state; once your webhook endpoint is deployed, confirm the notification arrives and verifies. - Force each failure path (triggers below) and confirm your system handles
FAILED/RETURNEDand the refunded balance.
Forcing outcomes
Sandbox channels decide the outcome from payee fields so you can exercise every branch:
| Desired outcome | How |
|---|---|
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 balance | Amount above the sandbox balance → 422 INSUFFICIENT_BALANCE |
| Idempotency conflict | Same 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 ifPENDINGlasts more than a few minutes. - No webhook arrives: make sure
notify_urlis a publichttps://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.