bird numbers orders create
Usage
Code example
bird numbers orders create [flags]Description
Create a number order
Buys a number and starts its monthly charge. Most orders settle inline; one waiting on a carrier comes back pending and is followed with bird numbers orders get. A setup fee already taken is not refunded if the order then fails.
Build the request from flags, a JSON NumbersOrderCreate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.
Procedure
Step 3 of 5 of "Buy a phone number". Previous: bird numbers available get. Next: bird numbers orders get.
Examples
Code example
# print the body shape (no credentials needed)
bird numbers orders create --example
# the body it prints:Code example
{
"number": "+18005550100",
"reference": "STORE-042"
}Options
Request
| Name | Description |
|---|---|
--body-file | Read the JSON request body from this file; "-" reads stdin |
--example | Print a complete example request body, then exit |
--dry-run | Print the resolved request without sending it, then exit |
--idempotency-key | Deduplication key; a retry with the same key won't act twice |
Options
| Name | Description |
|---|---|
--number | The number to acquire, in E.164 format, as returned by GET /v1/numbers/available. (required; or in --body-file) |
--reference | Your own reference to set on the number when this purchase completes. Leading and trailing whitespace is removed. A pending order keeps the reference until the number is allocated. |
--response-schema | Print the fields this command returns, then exit |
--confirmation-id | Wait for an existing confirmation of this exact request |
Related
| Name | Description |
|---|---|
bird numbers orders get | Get a number order |
bird numbers orders list | List your number orders |
Related resources
Continue with the documentation, guides and examples for this topic.