Kepper Developers

Reference

Errors

Errors use standard HTTP status codes and a readable message. You can show the message to your team, but not to your customers.

Error response
{ "status": false, "message": "callbackUrl is required for card payments" }
StatusMeaningWhat to do
400The request is invalid, for example a missing field or an amount in naira instead of kobo.Fix the request. Don't retry it unchanged.
401The API key is missing, wrong or revoked.Check the key and the Authorization header.
403Not allowed: live payments aren't enabled, the IP isn't allowed, the call came from a browser, or you used a test-only endpoint with a live key.Read the message. Contact support to enable live payments.
404No such payment for this key's mode.Check the id or reference, and that you're using the right mode.
409The reference is already used by a different payment, or the payment is already paid.Use a new reference, or fetch the existing payment.
429Rate limit reached.Back off and retry after a few seconds.
502Our payment partner couldn't open the checkout or account. No payment was created.Retry with the same reference.
500Something went wrong on our side.Retry with the same reference. If it keeps happening, contact support.

Safe retries

Always send your own reference. If a create request times out or returns 5xx, send the exact same request again. You'll get the original payment back (200) or a new one (201), but never two payments for one order.

Errors | Kepper Developers