Skip to main content

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":

CodeHTTPWhy it can succeed on a retry
RATE_LIMITED429You are going too fast. Back off and retry.
PIN_RATE_LIMITED429Too many PIN requests for this number. Wait before retrying.
INTERNAL_ERROR500Something failed on our side. Retry with backoff.
FRAUD_CHECK_UNAVAILABLE503The anti-fraud check could not be completed. Nothing was consumed: retry.
OPERATOR_UNAVAILABLE503The 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_UNAVAILABLE503We 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​

CodeHTTPWhat it means
UNAUTHENTICATED401No token, or not a valid one.
CREDENTIAL_REVOKED401The token existed and has been withdrawn. Contact the operator team.
IP_NOT_ALLOWLISTED403Your source address is not registered. The response tells you the address we saw: compare it with what you registered.
ABILITY_NOT_GRANTED403Your credential is valid but not permitted for this operation.
SERVICE_NOT_FOUND404No 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_CODE422The service is not on the short code your credential is bound to.
SERVICE_NOT_ACTIVE409The service exists but is not live.

Request problems​

CodeHTTPWhat it means
VALIDATION_FAILED422A 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_MSISDN422The number is not a valid subscriber number.
DUPLICATE_TRANSACTION_ID409This spTransactionId has been used for a different request. Generate a new one per attempt.

PIN and OTP​

CodeHTTPWhat it means
PIN_NOT_REQUESTED422You are verifying a code that was never issued for this number and service.
PIN_INVALID422Wrong code.
PIN_EXPIRED422The code was correct once but has timed out. Issue a new one.
PIN_ATTEMPTS_EXCEEDED422Too many wrong attempts. Issue a new code.

Subscriber state​

CodeHTTPWhat it means
ALREADY_SUBSCRIBED409Already has a live subscription to this service.
NOT_SUBSCRIBED409The operation needs a live subscription and there is none.
SUBSCRIBER_BLACKLISTED403This number may not be subscribed or messaged. Do not retry on any channel.

Limits​

CodeHTTPWhat it means
CONTENT_LIMIT_EXCEEDED429The subscriber's daily content budget for this service is spent. Not currently returned; see below.
PURCHASE_DAILY_LIMIT_REACHED429The subscriber's purchase count limit for today is reached.
PURCHASE_AMOUNT_LIMIT_REACHED429The 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 today

It 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​

CodeHTTPWhat it means
CONTENT_TOO_LONG422Longer 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_TODAY403This service does not deliver content on this day of the week.
CONTENT_NOT_SUPPORTED403The service is not MT. Content upload is for MT services only.
CONTENT_SEND_AT_OUT_OF_RANGE403sendAt is less than 30 minutes or more than 12 hours ahead. Omit it to schedule one hour out.

Charging​

CodeHTTPWhat it means
CHARGE_FAILED402The 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_BALANCE402The subscriber cannot pay right now. On subscription verify this also means SUBSCRIBED - see below.
PARENT_SUBSCRIPTION_REQUIRED409This 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_ENABLED403One-time purchase is not enabled for this service.
OPERATOR_UNAVAILABLE503On 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.)
A failed charge on subscription verify is NOT a failed subscription

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.

When the operator cannot be reached, the two endpoints answer with DIFFERENT codes

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 verifyPurchase verify
CodeOPERATOR_UNAVAILABLE (503, retryable)OPERATOR_UNAVAILABLE (503, retryable)
The subscriptionuntouched: not createduntouched
Created by this callnothingnothing
data.subscriptionIdabsentabsent
What to doissue a new PIN and retryissue 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.

What changed, if you integrated before 2026-09-23

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​

CodeHTTPWhat it means
FRAUD_BLOCKED403The check ran and returned a negative verdict. Do not retry.
FRAUD_CHECK_UNAVAILABLE503The check could not run. Retryable, and nothing was consumed.
FRAUD_TRANSACTION_UNKNOWN422We 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_UNAVAILABLE503We could not fetch the script for your page. Retryable.

Server​

CodeHTTPWhat it means
INTERNAL_ERROR500Our fault. Retry with backoff, and quote the requestId if it persists.