OuiPay
Introduction

Base URLs & Environments

API base URLs, sandbox vs live keys, and response conventions.

Base URL

https://api.ouipay.africa/api/v1

External integrator endpoints live under:

https://api.ouipay.africa/api/v1/external

Environments

EnvironmentKey prefixesProvidersMoney moves?
Sandboxsk_test_ / ak_test_ / pk_test_SimulatedNo
Livesk_live_ / ak_live_ / pk_live_RealYes

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/json for 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..."
  }
}