Error codes
Every failure returns one of these codes. They are stable strings: branch on them.
Only six codes are retryable
Out of the whole catalogue, exactly six mean "try again and it might work":
| Code | HTTP | Why it can succeed on a retry |
|---|---|---|
RATE_LIMITED | 429 | You are going too fast. Back off and retry. |
PIN_RATE_LIMITED | 429 | Too many PIN requests for this number. Wait before retrying. |
INTERNAL_ERROR | 500 | Something failed on our side. Retry with backoff. |
FRAUD_CHECK_UNAVAILABLE | 503 | The anti-fraud check could not be completed. Nothing was consumed: retry. |
OPERATOR_UNAVAILABLE | 503 | The operator's profile service did not answer before a charge, so the charge was not attempted and nothing was created. Nothing was charged. The one-time code has been spent either way: on subscription verify issue a new PIN and retry; on purchase verify issue a new OTP and start a new purchase (new spTransactionId). |
ANTIFRAUD_SCRIPT_UNAVAILABLE | 503 | We could not fetch the protection script. Retry before serving the page. |
Everything else below is retryable: false. Retrying it will fail identically.
Authentication and access
| Code | HTTP | What it means |
|---|---|---|
UNAUTHENTICATED | 401 | No token, or not a valid one. |
CREDENTIAL_REVOKED | 401 | The token existed and has been withdrawn. Contact the operator team. |
IP_NOT_ALLOWLISTED | 403 | Your source address is not registered. The response tells you the address we saw: compare it with what you registered. |
ABILITY_NOT_GRANTED | 403 | Your credential is valid but not permitted for this operation. |
SERVICE_NOT_FOUND | 404 | No such service, none you have access to, or one that has been removed from the catalogue. The three are deliberately indistinguishable. |
SERVICE_NOT_ON_SHORT_CODE | 422 | The service is not on the short code your credential is bound to. |
SERVICE_NOT_ACTIVE | 409 | The service exists but is not live. |
Request problems
| Code | HTTP | What it means |
|---|---|---|
VALIDATION_FAILED | 422 | A field is missing or malformed. Also refused here: a serviceId that is not a number, which is checked before your grant is looked up. |
INVALID_MSISDN | 422 | The number is not a valid subscriber number. |
DUPLICATE_TRANSACTION_ID | 409 | This spTransactionId has been used for a different request. Generate a new one per attempt. |
PIN and OTP
| Code | HTTP | What it means |
|---|---|---|
PIN_NOT_REQUESTED | 422 | You are verifying a code that was never issued for this number and service. |
PIN_INVALID | 422 | Wrong code. |
PIN_EXPIRED | 422 | The code was correct once but has timed out. Issue a new one. |
PIN_ATTEMPTS_EXCEEDED | 422 | Too many wrong attempts. Issue a new code. |
Subscriber state
| Code | HTTP | What it means |
|---|---|---|
ALREADY_SUBSCRIBED | 409 | Already has a live subscription to this service. |
NOT_SUBSCRIBED | 409 | The operation needs a live subscription and there is none. |
SUBSCRIBER_BLACKLISTED | 403 | This number may not be subscribed or messaged. Do not retry on any channel. |
Limits
| Code | HTTP | What it means |
|---|---|---|
CONTENT_LIMIT_EXCEEDED | 429 | The subscriber's daily content budget for this service is spent. Not currently returned; see below. |
PURCHASE_DAILY_LIMIT_REACHED | 429 | The subscriber's purchase count limit for today is reached. |
PURCHASE_AMOUNT_LIMIT_REACHED | 429 | The subscriber's purchase value limit is reached. |
These are ceilings on the subscriber, not on you: they reset, and the reset is not something your retry can hurry.
CONTENT_LIMIT_EXCEEDED is not returned todayIt bounds what a subscriber is charged for content, and no endpoint you can call currently charges one per message: Send SMS is free, and Add Content is charged through the broadcast that follows it rather than at the call. The code is documented because it is part of the contract and may return if that changes. Handle it if you handle the others; do not build a test around provoking it.
Content and messaging
| Code | HTTP | What it means |
|---|---|---|
CONTENT_TOO_LONG | 422 | Longer than this service permits. Returned by Add Content and the console uploads. Not returned by Send SMS, which delivers a long message as several parts instead. |
CONTENT_NOT_ALLOWED_TODAY | 403 | This service does not deliver content on this day of the week. |
CONTENT_NOT_SUPPORTED | 403 | The service is not MT. Content upload is for MT services only. |
CONTENT_SEND_AT_OUT_OF_RANGE | 403 | sendAt is less than 30 minutes or more than 12 hours ahead. Omit it to schedule one hour out. |
Charging
| Code | HTTP | What it means |
|---|---|---|
CHARGE_FAILED | 402 | The first charge did not land. On subscription verify this means the subscriber IS SUBSCRIBED - see below. Usually the operator refused it; during a profile outage it was never attempted. data.firstChargeOutcome says which: "declined" or "deferred". |
INSUFFICIENT_BALANCE | 402 | The subscriber cannot pay right now. On subscription verify this also means SUBSCRIBED - see below. |
PARENT_SUBSCRIPTION_REQUIRED | 409 | This purchase needs an active subscription to its parent service or to any service related to it. Packages configured without a parent never return this: anyone may buy them. |
PURCHASE_CHANNEL_NOT_ENABLED | 403 | One-time purchase is not enabled for this service. |
OPERATOR_UNAVAILABLE | 503 | On BOTH verifies since 2026-09-23. The operator did not answer the pre-charge check, so no charge was attempted: nothing charged, nothing created. Retryable after issuing a new one-time code. (Previously a profile outage during a subscription verify returned CHARGE_FAILED with data.firstChargeOutcome: "deferred" and the subscription existed. It no longer does.) |
CHARGE_FAILED and INSUFFICIENT_BALANCE are 402s, and on
subscription verify they mean the subscription was created and only
the first charge failed. The response carries the same subscriptionId, state and
subscribedAt under data as a success, and its message says so.
Treat the presence of data.subscriptionId as the answer to "is this subscriber subscribed",
not the code. A page that shows "we could not complete your subscription" on these codes tells
the subscriber nothing happened while the platform holds a live subscription, retries the charge on
its own schedule, and bills them when it succeeds.
Do not re-verify. A second attempt opens a second flow against a subscription the subscriber already holds.
⚠️ The same two codes mean the OPPOSITE on one-time purchase, where a failed charge creates nothing at all. The code is identical; the consequence is not. This is the one place in this API where the endpoint changes what an error means, which is exactly why the code alone cannot be trusted.
The block above is about one code meaning two things on two endpoints. This used to be its mirror image, one condition answered by two codes. Since 2026-09-23 it is not: both endpoints answer the same way.
Before charging, we ask the operator whether the subscriber can pay. When that service does not answer, no charge is attempted and nothing is created, on either endpoint.
| Subscription verify | Purchase verify | |
|---|---|---|
| Code | OPERATOR_UNAVAILABLE (503, retryable) | OPERATOR_UNAVAILABLE (503, retryable) |
| The subscription | untouched: not created | untouched |
| Created by this call | nothing | nothing |
data.subscriptionId | absent | absent |
| What to do | issue a new PIN and retry | issue a new OTP and start a new purchase |
The rule you already have still decides it: read data.subscriptionId, not the code. Present, and
the subscriber is subscribed, whatever the code says. Absent, and nothing happened.
A subscription verify that hit a profile outage used to return CHARGE_FAILED 402 with
data.subscriptionId present, data.firstChargeOutcome: "deferred", and the subscription live
but never charged, and you were told to do nothing and let the platform charge on its schedule.
That behaviour is gone. The subscriber is no longer subscribed in that case, so there is nothing to leave alone: treat it as a retry, with a new PIN. The old shape produced subscribers who were active, never charged, and indistinguishable from paying ones.
⚠️ If your integration branches on firstChargeOutcome === "deferred", that branch is now dead on
subscription verify. "declined" is the only value it takes.
Telling "declined" from a deferral is no longer a thing you have to do. CHARGE_FAILED on
subscription verify now means exactly one thing (the charge was attempted and refused), so a
top-up prompt is always the right response to it.
Retry with backoff rather than immediately: if the operator genuinely is not answering, the next attempt fails the same way. ⚠️ But if it persists for ONE number while others succeed, suspect the number rather than the operator: a test MSISDN, or one outside the scope of the environment you are calling, produces exactly this and is not an outage. :::
Anti-fraud
| Code | HTTP | What it means |
|---|---|---|
FRAUD_BLOCKED | 403 | The check ran and returned a negative verdict. Do not retry. |
FRAUD_CHECK_UNAVAILABLE | 503 | The check could not run. Retryable, and nothing was consumed. |
FRAUD_TRANSACTION_UNKNOWN | 422 | We have no record of this transaction identifier. Your page did not fetch the anti-fraud script with this ti, or used a different one. This is not a decline: it exists as its own code so that it cannot be mistaken for one. See Anti-fraud. |
ANTIFRAUD_SCRIPT_UNAVAILABLE | 503 | We could not fetch the script for your page. Retryable. |
Server
| Code | HTTP | What it means |
|---|---|---|
INTERNAL_ERROR | 500 | Our fault. Retry with backoff, and quote the requestId if it persists. |