All error codes
offer_expired
HTTP 422Not retryableThe premium number offer has expired or is no longer available. Search again for a fresh offer.
How to resolve
- Call list_premium_number_offers (or GET /premium-number-offers) again and purchase with a new offer_id.
Example response
JSON
{
"object": "error",
"code": "offer_expired",
"message": "The premium number offer has expired or is no longer available. Search again for a fresh offer.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/offer_expired",
"retryable": false,
"recommended_action": "Call GET /premium-number-offers again and purchase with a new offer_id."
}SDK handling
TypeScript
import { StatxtClient, StatxtApiError } from "@statxt/sdk"
const client = new StatxtClient({ apiKey: process.env.STATXT_API_KEY! })
try {
await client.messages.send({ ... })
} catch (err) {
if (err instanceof StatxtApiError && err.code === "offer_expired") {
// The premium number offer has expired or is no longer available. Search again for a fresh offer.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/offer_expired