Top up an existing answering line
buy_line_packReturn a checkout link to top up one existing answering line with a prepaid pack. Use only after the owner asks to buy and approves the price from get_answering_line_offer; get_answering_line supplies line_id and billing_mode. Choose line_minutes, line_outcomes or legacy calls to match that line. For a new line use set_up_answering_line; other products use their own product endpoint. The owner pays on Stripe; this tool never sees a card or charges it directly. Needs billing:checkout and ownership of the line; rate limited per account. Returns checkout_url, product, pack, price_cents, units, unit and payment instructions. Nothing renews.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product": "<product>",
"pack": "<pack>",
"line_id": "<line_id>"
},
"name": "buy_line_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | Pack id from get_answering_line_offer; legacy calls use calls10 or calls50. | |
| line_id | Yes | An existing line_id from get_answering_line owned by this account. | |
| product | Yes | Match billing_mode: minutes → line_minutes, outcomes → line_outcomes, legacy calls → calls. |