Introduction
Base URLs & Environments
API base URLs, sandbox vs live keys, and response conventions.
Base URL
https://api.ouipay.africa/api/v1External integrator endpoints live under:
https://api.ouipay.africa/api/v1/externalEnvironments
| Environment | Key prefixes | Providers | Money moves? |
|---|---|---|---|
| Sandbox | sk_test_ / ak_test_ / pk_test_ | Simulated | No |
| Live | sk_live_ / ak_live_ / pk_live_ | Real | Yes |
The host is the same. Sandbox vs live is selected by the app (and therefore the key prefix) you use.
Versioning
The API is versioned in the path as /api/v1. Within a version:
- New fields, enum values, and endpoints are backward-compatible
- Treat unknown enum values and new fields as non-breaking
- Breaking changes ship under a new version path
Request format
- Content-Type:
application/jsonfor requests with a body - IDs: ULIDs
- Money: integer minor units + ISO 4217 currency code
- Timestamps: ISO 8601 / RFC 3339 in UTC
Response format
Successful responses wrap payloads in data:
{
"data": {
"items": []
}
}Errors use an error envelope:
{
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key.",
"request_id": "OUI-REQ-01M2S18..."
}
}