Sandbox and production environments
Appmax provides two distinct environments for integration.
Sandbox (test environment)
Use the sandbox to test your integration before going to production and before starting the review of your public app.
| Service | URL |
|---|---|
| Authentication | https://auth.sandboxappmax.com.br |
| API | https://api.sandboxappmax.com.br |
| Authorization | https://breakingcode.sandboxappmax.com.br/appstore/integration/HASH |
| JS script (Appmax JS) | https://scripts.sandboxappmax.com.br/appmax.min.js |
Production
Use production to transact with real customers.
| Service | URL |
|---|---|
| Authentication | https://auth.appmax.com.br |
| API | https://api.appmax.com.br |
| Authorization | https://admin.appmax.com.br/appstore/integration/HASH |
| JS script (Appmax JS) | https://scripts.appmax.com.br/appmax.min.js |
Summary of differences
INFO
- In sandbox, URLs use the
sandboxappmaxsubdomain and the redirect goes to BC Sandbox. - In production, URLs use the standard
appmaxdomain and the redirect goes to Appmax Admin.
Testing payments in the sandbox
Sandbox instability
The sandbox environment may experience slowness or temporary downtime. If you get timeout (504) or 503 errors, wait a few minutes and try again. These issues do not affect the production environment. If it persists for more than 30 minutes, contact support.
Credit card: the result depends on the card number. See the test cards.
Pix and boleto
In the sandbox, Pix and boleto are approved automatically about 5 seconds after they are generated, with no need to pay. This way you receive all the webhooks of a paid order without waiting for a real payment.
The scenario is decided by the document_number sent to POST /v1/payments/pix or POST /v1/payments/boleto:
document_number sent | What happens to the order | Webhooks you receive |
|---|---|---|
Any valid CPF or CNPJ (e.g. 19100000000) | Approved in ~5 seconds and then integrated | Pix: order_pix_created → order_paid, order_approved, order_paid_by_pix → order_integratedBoleto: order_billet_created → order_paid, order_approved → order_integrated |
CPF 40827365144 or CNPJ 40827365000109 | Stays pending: the payment is not confirmed | Only the creation one: order_pix_created or order_billet_created |
Use the documents in the second row to test the "awaiting payment" screen and how your app behaves while the order is pending.
Example to test a pending order with Pix (for boleto, replace pix with boleto):
{
"order_id": 123,
"payment_data": {
"pix": {
"document_number": "40827365000109"
}
}
}Sandbox only
In production nothing is approved automatically: Pix and boleto are approved only when the buyer pays.
TIP
For Pix, the move to integrado follows the order integration routine and may take a few hours; order_paid_by_pix and order_approved arrive within seconds. Each webhook is delivered only if the app has the matching permission.
How to migrate to production
Finished testing in sandbox? See the full go-live guide with technical checklist, review in the panel, and what changes when migrating: