Errors / purchase_failed

The carrier refused the purchase

HTTP 502api_errorpurchase_failed

We asked the carrier for that number and they would not sell it.

What to do

Nothing has been charged. Search again and pick another; if it keeps happening, send us the request_id.

What it looks like

{
  "error": {
    "type": "api_error",
    "code": "purchase_failed",
    "message": "…",
    "doc_url": "https://docs.textmast.com/errors/purchase_failed",
    "request_id": "req_01j8xk2p7n4qc3m9v0wz5bt6ay"
  }
}

Quote the request_id if you get in touch. It is on every response, including this one, and it turns a support email into a single log query rather than an archaeology exercise.