Environments & Base URLs
Migo exposes a Sandbox (integration/testing) environment and a Production environment. Credentials, webhook endpoints, and Ed25519 keys are not shared across environments β request separate credentials for each.
Environment matrixβ
| Environment | Purpose | Data |
|---|---|---|
| Sandbox / QA | Integration development and testing | Test data only β no real funds |
| Production | Real funds, real cardholders | Persistent, PCI-scoped |
Base URLsβ
Wallet Gateway (ali-api-gw-rest)β
| Environment | URL |
|---|---|
| Production | https://api.ali.app/rest |
| QA | https://ali-qa.ali.app/rest |
| Local | http://localhost:3010 |
Middleware (migo-api)β
| Environment | URL |
|---|---|
| Production | https://mw.migopayments.com |
| Sandbox | https://sb-mw.migopayments.com |
| Local | http://localhost:3000 |
CMS Backoffice (ali-api-cms-rest)β
| Environment | URL |
|---|---|
| Production | https://api.ali.app/cms/rest |
| QA | https://ali-qa.ali.app/cms/rest |
| Local | http://localhost:3000 |
Required headersβ
Every request must include:
| Header | Value | Notes |
|---|---|---|
Authorization | Bearer <jwt> | See Authentication |
applicationId | Your application identifier | Required only by the Wallet Gateway config endpoints (GET/PATCH /configs) β not by user login or general requests |
x-user-token | CMS user token | CMS API only |
Content-Type | application/json | For POST / PUT / PATCH |
Going from sandbox to productionβ
Before flipping to production URLs:
- Rotate credentials β production keys are separate.
- Switch your webhook receiver to HTTPS with a valid certificate.
- Confirm any IP allowlisting requirements with Migo.
- Walk through the Go-live checklist.
Rate limitsβ
Confirm with Migo
The gateway application code does not enforce request rate limiting itself. If any throttling applies to your integration, it is configured per agreement at the edge β confirm the limits that apply to you with Migo before load-testing or running high-volume traffic.
If a limit is breached you may receive 429 Too Many Requests. Exponential backoff is the recommended client behavior.