Errors
Every error has the same shape, whatever the API or endpoint:
{ "error": { "code": "network_unavailable", "message": "net_ng_a is not accepting purchases right now.", "retryable": true, "request_id": "req_7Cv5Gm2TzP8h", "details": { "network": { "id": "net_ng_a", "status": "unavailable", "status_message": "The network is not confirming purchases. We are working with it.", "status_updated_at": "2026-10-12T09:02:00Z" } } }}| Field | Use it for |
|---|---|
code |
Your logic. Codes are stable within a version. |
message |
Your logs. It is written for people and may change, so never parse it. |
param |
The request field at fault, when there is one. |
retryable |
Whether the same request can succeed later. |
request_id |
Quoting to your technical contact. It also comes back in the Aura-Request-Id header. |
details |
Extra facts, such as the existing purchase or action on a reference_conflict, or the network’s status. |
Error codes
Section titled “Error codes”Both APIs return invalid_request, invalid_phone_number, invalid_api_key, ip_not_allowed, not_found,
reference_conflict, rate_limited and internal_error. The other codes in this table are the Data Reselling
API’s.
| Code | HTTP | Retryable | Meaning |
|---|---|---|---|
invalid_request |
400 | No | A field is missing, malformed or out of range. param names it. |
invalid_phone_number |
400 | No | The number is not a valid E.164 mobile number. |
invalid_api_key |
401 | No | The key is missing, wrong, revoked, or for the other environment. |
insufficient_balance |
402 | No, until you top up | Your available balance does not cover the price. |
ip_not_allowed |
403 | No | The request came from an address outside your allowlist. |
not_found |
404 | No | Nothing with this ID exists on your account, in this environment. |
reference_conflict |
409 | No | The reference belongs to a different purchase, action or offer. details names it. |
bundle_unavailable |
422 | No | The bundle is not on sale now. Refresh your catalogue. |
network_mismatch |
422 | No | The number is on a different network from the network_id you sent. details.detected_network_id names the right one. |
unsupported_network |
422 | No | The number is on a network your account does not cover. |
rate_limited |
429 | Yes | Too many requests. Wait for Retry-After seconds. |
internal_error |
500 | Yes | Aura could not complete the request. Retry with backoff and the same reference. |
network_unavailable |
503 | Yes | The network is not accepting purchases. details carries its live status. |
Campaigns and Actions API codes
Section titled “Campaigns and Actions API codes”| Code | HTTP | Retryable | Meaning |
|---|---|---|---|
campaign_required |
400 | No | The customer is in more than one campaign. Add campaign_id. |
unknown_campaign |
422 | No | No campaign with this ID exists on your account. |
unknown_action |
422 | No | The action key isn’t defined on this campaign. The message lists the ones that are. |
campaign_not_live |
422 | No | The campaign can’t take actions with this key, such as a live key on a campaign in testing. |
campaign_starts_with_action |
422 | No | An offer for a campaign that starts plans after an action. Report the action instead. |
already_offered |
422 | No | The customer already has an offer or a plan in this campaign. |
already_accepted |
422 | No | The customer has already accepted this plan. |
plan_not_offered |
422 | No | The customer is in the comparison group and isn’t offered the plan. |
number_on_another_plan |
422 | No | The number already holds this plan for another customer, and stacking is off. |
number_change_too_soon |
422 | No | The plan’s number changed less than a month ago. details.available_from gives the date. |
An action that earns nothing is not an error: it returns 201 with a reason. The reasons are in
Reporting actions.
New codes may be added within v1. Handle an unknown code by its HTTP status and retryable flag.
Failure codes on purchases and rewards
Section titled “Failure codes on purchases and rewards”A purchase that was accepted but not delivered ends as failed, with a failure.code. These are not HTTP errors:
they arrive on the purchase and in the purchase.failed webhook. They are listed in
Transaction lifecycle. A reward’s failure codes are listed in
Rewards and your balance.
© 2026 PressOne Africa Limited ·poweredbyaura.com ·Privacy ·Terms