Gather Gather Lines Sign in Get started

Reference

Errors

Every error has the same shape.

{ "error": { "code": "invalid_request", "message": "lines[2].port_in.transfer_pin is required." } }

Codes

Status Code Meaning
401 unauthorized Missing or invalid bearer token.
402 billing_hold New orders and stock claims are paused: your account has no card on file, or the card was declined. Lines you already have keep working.
402 payment_declined The card was declined when you claimed a number from stock. The number goes back to stock; update the card and claim again.
403 account_suspended Your account is suspended. Contact us.
404 not_found The line or order does not exist or is not yours.
409 iccid_unavailable The iccid is not one of your physical SIMs, or it is already in use.
409 esim_installed The eSIM is already installed; reissue instead.
409 idempotency_conflict The Idempotency-Key was already used for a different text. See Messaging.
409 request_in_progress A request with the same Idempotency-Key is still running. Retry shortly.
422 invalid_request A field is missing or out of range, or the line is not in a state that allows the call.
429 rate_limited Slow down; honour Retry-After. Also returned when a number reaches its SMS sending limit; the message names the limit (per_minute, per_day or new_contacts_per_day).
503 dns_unavailable The host of an inbound call uri could not be looked up right now. Nothing was saved; retry the same request shortly.
503 reissue_unavailable The network cannot reissue right now, or the line has another change in progress. Retry later with the same Idempotency-Key.

A line that cannot be set up is not an error on the order call: the line goes failed with a failure object (see Line lifecycle).

1# Errors
2
3> Every error has the same shape.
4
5```json
6{ "error": { "code": "invalid_request", "message": "lines[2].port_in.transfer_pin is required." } }
7```
8
9## Codes
10
11| Status | Code | Meaning |
12| --- | --- | --- |
13| 401 | `unauthorized` | Missing or invalid bearer token. |
14| 402 | `billing_hold` | New orders and stock claims are paused: your account has no card on file, or the card was declined. Lines you already have keep working. |
15| 402 | `payment_declined` | The card was declined when you claimed a number from stock. The number goes back to stock; update the card and claim again. |
16| 403 | `account_suspended` | Your account is suspended. Contact us. |
17| 404 | `not_found` | The line or order does not exist or is not yours. |
18| 409 | `iccid_unavailable` | The `iccid` is not one of your physical SIMs, or it is already in use. |
19| 409 | `esim_installed` | The eSIM is already installed; reissue instead. |
20| 409 | `idempotency_conflict` | The `Idempotency-Key` was already used for a different text. See [Messaging](/docs/messaging). |
21| 409 | `request_in_progress` | A request with the same `Idempotency-Key` is still running. Retry shortly. |
22| 422 | `invalid_request` | A field is missing or out of range, or the line is not in a state that allows the call. |
23| 429 | `rate_limited` | Slow down; honour `Retry-After`. Also returned when a number reaches its [SMS sending limit](/docs/messaging#sending-limits); the message names the limit (`per_minute`, `per_day` or `new_contacts_per_day`). |
24| 503 | `dns_unavailable` | The host of an inbound call `uri` could not be looked up right now. Nothing was saved; retry the same request shortly. |
25| 503 | `reissue_unavailable` | The network cannot reissue right now, or the line has another change in progress. Retry later with the same `Idempotency-Key`. |
26
27A line that cannot be set up is not an error on the order call: the line goes `failed` with a
28`failure` object (see [Line lifecycle](/docs/lifecycle)).
29
$ curl -s https://lines.gatherat.ai/docs/errors.md
200 OK · text/markdown; charset=utf-8 · 1,974 bytes
# Errors > Every error has the same shape. ```json { "error": { "code": "invalid_request", "message": "lines[2].port_in.transfer_pin is required." } } ``` ## Codes | Status | Code | Meaning | | --- | --- | --- | | 401 | `unauthorized` | Missing or invalid bearer token. | | 402 | `billing_hold` | New orders and stock claims are paused: your account has no card on file, or the card was declined. Lines you already have keep working. | …