Get a number order
/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 ?? "");order = client.numbers.orders.get("nor_01krdgeqcxet5s7t44vh8rt9mg")
# failure_reason says what went wrong, and only ever on a failed order.
print(order.status, order.failure_reason or "")order, err := client.Numbers.Orders.Get(context.Background(), "nor_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
log.Fatal(err)
}
// FailureReason says what went wrong, and only ever on a failed order.
fmt.Println(order.Status)$order = $bird->numbers->orders->get('nor_01krdgeqcxet5s7t44vh8rt9mg');
// failure_reason says what went wrong, and only ever on a failed order.
echo $order->getStatus(), ' ', $order->getFailureReason() ?? '', "\n";bird numbers orders get <order-id>curl -X GET "https://us1.platform.bird.com/v1/numbers/orders/{order_id}" \
-H "Authorization: Bearer $TOKEN"{
"id": "nor_01krdgeqcxet5s7t44vh8rt9mg",
"number": "+18005550100",
"country_code": "US",
"number_type": "toll_free",
"status": "completed",
"number_id": "nda_01krdgeqcxet5s7t44vh8rt9mg",
"failure_reason": null,
"completed_at": "2026-05-25T14:03:12Z",
"created_at": "2026-05-25T14:03:10Z",
"updated_at": "2026-05-25T14:03:12Z",
"ownership": {
"satisfied": false,
"status": "needs_input",
"blocked_at": "2026-05-25T14:03:12Z",
"next": [
{
"kind": "operation",
"description": "See what this country requires to prove you own this number",
"operation": "getWorkspaceComplianceRequirements",
"params": {
"subject_kind": "number",
"subject_id": "nda_01krdgeqcxet5s7t44vh8rt9mg",
"country_code": "US"
}
},
{
"kind": "operation",
"description": "Send your answers",
"operation": "createWorkspaceComplianceSubmission"
}
]
}
}
Returns a number order by id, including its lifecycle state and, once completed, the associated allocation. The association remains in order history after release; reading the number can then return not found.
Parametry
order_idstringIdentifier of the order.
Treść odpowiedzi
idIdentifier of this number order.
numberThe number being acquired, in E.164 format.
country_codeISO 3166-1 alpha-2 country code.
number_typePhysical type of the number being acquired.
Possible values (may grow over time): mobile, local, national, short_code, short_code_fteu, toll_free
statusLifecycle state of a number purchase order:
charging: Securing funds.ordering: Placing the order with the carrier.pending: The carrier accepted the order and is provisioning the number. A carrier number is usually charged on delivery: keep funds available, because a delivered number that still cannot be charged is released no sooner than 72 hours after the order was placed, and its order fails.completed: Your workspace owns the number.failed: The purchase did not complete.
A number from a carrier is usually charged when the carrier delivers it. A setup fee already charged, for an inventory number or a carrier number charged upfront, is not refunded when its purchase fails, unless the deadline releases the delivered number. Contact support about a failed order.
Possible values (may grow over time): charging, ordering, pending, completed, failed
number_idIdentifier of the workspace allocation associated with this completed order. Multiple orders can refer to the same allocation. This historical association remains after release; GET /v1/numbers/{number_id} returns its current holding state and can return not found after release. null until the order completes.
failure_reasonHuman-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_atWhen this order completed (status completed). Completion records the associated allocation and does not establish its current holding state. null for orders still in progress or failed.
created_atupdated_atownershipOwnership paperwork and activation progress for the number this order bought: the same object GET /v1/numbers/{number_id} reports. Reported once the order is completed, when you create an order or read one. null when no ownership requirements, block or decision apply to the number, when requirements could not be read and no block or decision is recorded, and after the number is released. Absent from order lists and while the order is in progress or failed. Also absent when the number could not be read; read the order again then. Follow its next to see what the country requires and to send your answers.
Pokaż atrybuty podrzędne
ownership.submission_idThe most recent ownership submission for this number, including after approval. Users with compliance read access can view the filed answers and their review status from the number's details in the dashboard. This may be a newer filing than the one that cleared the number for use. Absent when no submission was found or submission progress could not be read.
ownership.satisfiedWhether the ownership paperwork is accepted or is no longer required. This can remain true while an external verifier asks for a correction or activation is pending. Read status and next for the current step, and blocked_at for the ownership block on outbound SMS and inbound and outbound voice.
ownership.statusCurrent ownership registration approval status. Operational activation is separate:
blocked_at records the ownership block on number use, and next describes remaining work.
needs_inputmeans ownership details or a submission correction are needed, including when Bird closed a submission but accepts corrected details.under_reviewmeans your current answers are being reviewed. Until the submission is approved, you can still change any answer; a changed answer is reviewed again.approval_pendingmeans your paperwork is accepted but registration approval is still pending.approvedmeans ownership registration is approved. Number activation can still be pending whileblocked_atis non-null.not_requiredmeans no active ownership requirement applies, including after a requirement is withdrawn.rejectedmeans the submission was closed without accepting another one, or the verifier correction deadline passed. Corrections are no longer accepted for this submission. Contact support.unknownmeans current approval status could not be determined. Readblocked_atfor any recorded ownership block; ifunavailable_atis present, contact support, otherwise retry the read.
Possible values: needs_input, under_review, approval_pending, approved, not_required, rejected, unknown
ownership.blocked_atWhen ownership requirements began blocking outbound SMS and inbound and outbound voice calls. Null when that block is clear. Accepted paperwork can still await activation with a block in place. A number bought before ownership requirements were introduced can have outstanding paperwork without a block.
ownership.unavailable_atWhen the number became unavailable. It cannot be activated; contact support. Absent while the number is available.
ownership.registration_due_atThe deadline for completing the number's ownership details. A number with incomplete or inaccurate details can be removed sooner. Absent when no deadline is known or while unavailable_at is set.
ownership.nextActions that advance ownership registration or activation, in order. Empty when neither needs further action. A wait step means no customer action is needed now, including while accepted paperwork awaits activation. Read this list again after each change.
Powiązane zasoby
Przejdź do dokumentacji, przewodników i przykładów dotyczących tego tematu.