Documentation
Sign inGet started

Get a number order

GET
/v1/numbers/orders/{order_id}
const order = await bird.numbers.orders.get("nor_01krdgeqcxet5s7t44vh8rt9mg");
// failure_reason says what went wrong, and only ever on a failed order.
console.log(order.status, order.failure_reason ?? "");
Response200
{
  "id": "nor_01krdgeqcxet5s7t44vh8rt9mg",
  "country_code": "US",
  "number_type": "mobile",
  "status": "charging",
  "number_id": "nda_01krdgeqcxet5s7t44vh8rt9mg"
}
Returns a single number order by id, including its current lifecycle state and, once completed, the number it produced.
Parameter
order_id
string
Identifier of the order.
Payload Respons
id
string
wajib
Identifier of this purchase order.
number
string
wajib
The number being acquired, in E.164 format.
country_code
string
wajib
number_type
string
wajib
Physical type of the number being acquired.
status
string
wajib
number_id
nullable string
Identifier of the number this order produced, set when status is completed. Pass it as number_id to GET /v1/numbers/{number_id} or DELETE /v1/numbers/{number_id}. null until the order completes.
failure_reason
nullable string
Human-readable reason the purchase failed. null unless status is failed. An order can fail some time after it was created, so updated_at tells you when the failure was recorded rather than when the order was placed.
completed_at
nullable string
When the purchase completed and the number became owned (status completed). null for orders still in progress or failed.
created_at
string
wajib
updated_at
string
wajib