Reference

Error Codes

Every HTTP status code and error message returned by the ePay Business API.

Error Codes

All errors follow the same envelope shape:

{
  "status": "error",
  "data": {
    "message": "Missing or malformed Authorization header"
  }
}

Common errors

These apply to every endpoint.

StatusWhen it happens
401Missing or malformed Authorization header, or the API key is invalid / revoked.
403Your server IP is not in the IP whitelist, or the API key lacks the required permission.
429Rate limit exceeded — 100 requests per 60-second window per API key. Back off and retry.

Endpoint-specific errors

Initialize a Payment — POST /v1/transactions/initialize

StatusMessage / cause
400amount is not a valid positive numeric string, or exceeds 999999999.99.
400currencyCode is not a supported ISO 4217 code.
400customerPhone is not in a recognised Ethiopian phone format.
404No active payment source found for your account. Contact support.
429Rate limit exceeded.

Verify a Payment — GET /v1/transactions/:reference/verify

StatusMessage / cause
400Transaction is not yet completed. Message includes the current status.
404No transaction found for the given reference under your account.

Cancel a Payment — POST /v1/transactions/:reference/cancel

StatusMessage / cause
400Transaction is not in a cancellable status. Only pending and processing can be cancelled.
404No transaction found for the given reference under your account.

List Transactions — GET /v1/transactions

StatusMessage / cause
400from is after to.
400Date range between from and to exceeds 90 days.
400currency is not a valid 3-letter ISO 4217 code.
400status is not a recognised value.
400cursor is malformed or has expired.

Retrieve a Transaction — GET /v1/transactions/:reference

StatusMessage / cause
404No transaction found for the given reference under your account.

Transaction Timeline — GET /v1/transactions/:reference/timeline

StatusMessage / cause
404No transaction found for the given reference under your account.

Connect errors

Calls made on behalf of a connected business, and the /v1/connect endpoints, add a machine-readable code:

{
  "status": "error",
  "data": {
    "code": "account_not_connected",
    "message": "No such connected account"
  }
}
codeStatusMeaning
account_not_connected403 / 404Unknown account, not connected to your app, disconnected, or the business can't be used right now.
insufficient_scope403The endpoint can't be called on behalf, or it needs read_write and the connection is read_only.
connection_suspended403ePay suspended this connection.
livemode_not_enabled403Live calls aren't allowed yet for this app or this account.
product_disabled403You disabled the app in your dashboard.
product_not_available403Your app was suspended or rejected, or your business isn't active and verified.
connect_disabled403Connect is turned off in this environment.

OAuth errors

POST /v1/connect/oauth/token, /deauthorize and GET /v1/connect/accounts return OAuth-style errors with 400:

{
  "status": "error",
  "data": {
    "error": "invalid_grant",
    "error_description": "The authorization code is invalid or expired"
  }
}
errorMeaning
unsupported_grant_typegrant_type isn't authorization_code.
invalid_clientThe client ID is unknown, belongs to another business, doesn't match the key's mode, or the app can't be used in this mode.
invalid_grantThe code is unknown, expired or already used, redirect_uri doesn't match, or code_verifier is wrong.

The authorize step reports errors in the browser instead — see Connect a business.


Idempotency

POST /v1/transactions/initialize supports the x-idempotency-key header. Resending the same key within the session window returns the original response without creating a new transaction. No error is returned for duplicate requests.


Rate limiting

The limit is 100 requests per 60-second window per API key. When you hit it the API returns 429. Check for the standard Retry-After header and implement exponential backoff before retrying.

On this page