Buy a per-GB traffic pack (spends balance)
buy_traffic_packSPENDS MONEY from the prepaid ipvolt balance of the credential's account. Buy one prepaid pack of GB for residential IPs and for mobile IPs from a shared pool. Two steps: (1) call without confirm: this only looks up the current price and answers the exact charge and a requestId; nothing is charged. (2) Only after the user approved that charge, call again with confirm: true and that requestId. If the price rose meanwhile the API refuses instead of charging more, and repeating a confirmed requestId returns the same order without charging again. The first call needs packId (from list_traffic or list_stock). A pack is bought under the current Terms and Refund Policy, which the dashboard asks the customer to accept at each pack purchase: confirm the pack and its price with the user first. Needs a read-write API key or an agent token that may buy, of an ipvolt account.
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_traffic_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packId | No | Pack id from list_traffic or list_stock, for example gb:5. Required for the preview. | |
| confirm | No | Leave out to preview the charge. Set true, with the preview requestId, only after the user approved that charge. | |
| requestId | No | The requestId the preview returned, copied exactly. Use it only with confirm: true. |