Buy a number
buy_numberPurchases a phone number and charges the wallet. Returns the price charged. Every client charges nothing until confirm is true. The preview includes this wording, and confirming records it for a consumer account: Start now. I understand I lose my right to cancel once the service is fully provided, and I pay for what I use if I cancel earlier. idempotency_key repeats the same purchase result instead of buying again.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "buy_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku_id | No | DIDww SKU from search_numbers, or the billing option id from quote_number. | |
| confirm | No | Omitted returns a preview on every client. True charges. | |
| country | No | ||
| stock_pool | No | True for a search_numbers stock pool row; set number_type too. | |
| number_type | No | ||
| did_group_id | No | ||
| stock_did_id | No | ||
| idempotency_key | No | ||
| billing_option_id | No | Billing option id from quote_number. The shelf price, not a DIDww SKU. | |
| includes_origin_calls | No |