List your number orders
/v1/numbers/ordersconst page = await bird.numbers.orders.list({ status: "failed" });
for (const order of page.data) {
console.log(order.number, order.failure_reason ?? "");
}page = client.numbers.orders.list(status="failed")
for order in page.data:
print(order.number, order.failure_reason or "")for order, err := range client.Numbers.Orders.List(context.Background(), bird.NumbersOrdersListParams{
Status: "failed",
}) {
if err != nil {
log.Fatal(err)
}
fmt.Println(order.Number)
}$page = $bird->numbers->orders->list(['status' => 'failed']);
foreach ($page as $order) {
echo $order->getNumber(), ' ', $order->getFailureReason() ?? '', "\n";
}bird numbers orders listcurl -X GET "https://us1.platform.bird.com/v1/numbers/orders" \
-H "Authorization: Bearer $TOKEN" \
--url-query "limit=25"{
"data": [
{
"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"
}
],
"next_cursor": null,
"prev_cursor": null,
"refresh_cursor": null
}
Returns your workspace's number orders, newest first. Filter by status to find in-progress or failed orders.
Parameter Kueri
number_idstringReturn orders associated with this exact workspace allocation, newest first. Multiple attempts can refer to the same allocation; the newest attempt is not necessarily the order that first assigned it.
statusstringReturn only orders with status charging, ordering, pending, completed, or failed.
Possible values (may grow over time): charging, ordering, pending, completed, failed
limitintegerMaximum number of items to return per page.
starting_afterstringCursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.
ending_beforestringCursor from the prev_cursor or refresh_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev_cursor returns the preceding page. refresh_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since.
Payload Respons
datanext_cursorCursor for the next page. Pass back as starting_after to advance forward. null when no next page exists.
prev_cursorCursor for the previous page. Pass back as ending_before to step backward. null when no previous page exists.
refresh_cursorRefresh anchor, the first row of this response. Pass back as ending_before to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-null whenever data is non-empty; null only on an empty page. Distinct from prev_cursor.
Sumber daya terkait
Lanjutkan dengan dokumentasi, panduan, dan contoh untuk topik ini.