Errors
Troubleshooting
Common integration failures and fixes.
401 on every call
- Confirm the header is
Authorization: Bearer sk_test_...(space afterBearer) orX-Api-Key: sk_test_.... - Use
sk_/ak_keys — notpk_. - Match environment:
*_test_for sandbox apps,*_live_for production. - Regenerate the key if it was rotated.
Working request:
curl https://api.ouipay.africa/api/v1/external/wallets \
-H "Authorization: Bearer sk_test_..."403 PUBLIC_KEY_NOT_ALLOWED
You sent a pk_* key to /api/v1/external/*. Use the secret or API key.
403 IP_DENIED
Your egress IP is not on the key allowlist. Update the allowlist in Developer Settings or call from an allowed address.
Empty wallet list / country errors
Wallet listing requires a country on the owning customer profile. Complete account setup in the Dashboard if balances fail to load.
Webhook signature mismatch
- Use the raw body bytes.
- Sign
{timestamp}.{body}with HMAC-SHA256 and compare hex digests. - Do not expect a
sha256=prefix onX-OuiPay-Signature.