bird numbers orders create
Usage
代码示例
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
代码示例
# print the body shape (no credentials needed)
bird numbers orders create --example
# the body it prints:代码示例
{
"number": "+18005550100"
}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. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird numbers orders get | Get a number order |
| bird numbers orders list | List your number orders |