OuiPay
Getting Started

Authentication

Authenticate external API requests with secret or API keys.

External requests authenticate with a secret or API key against /api/v1/external/*. The key belongs to an app owned by your customer account.

curl https://api.ouipay.africa/api/v1/external/wallets \
  -H "Authorization: Bearer sk_test_..."

You may also send X-Api-Key: sk_test_... (or ak_test_... / live prefixes).

Key types

PrefixEnvironmentPermissions
sk_test_ / ak_test_SandboxExternal API
sk_live_ / ak_live_LiveExternal API
pk_*EitherPublishable only — rejected on /external/*

Rotating keys

Dashboard → Developer → select app → regenerate Secret, API, or Public key. The previous active key of that type is revoked when the new one is minted.

Key leaked?

Rotate immediately from the dashboard.

IP allowlisting

Optionally restrict secret and API keys to source IPs. Requests from other addresses return 403 with error.code = "IP_DENIED".

Errors

HTTPerror.codeCause
401MISSING_API_KEY / INVALID_API_KEY / KEY_REVOKEDMissing, malformed, or revoked key
403PUBLIC_KEY_NOT_ALLOWEDpk_* used on a server route
403IP_DENIEDSource IP not on the key allowlist
403FEATURE_DISABLEDDeveloper feature is off
403OWNER_ACCOUNT_REQUIREDApp has no active owning customer