Create a top-up link
create_topup_linkMakes a payment link for a credit pack. Give the link to a person: they pay on the payment page, and the credits land when the payment succeeds. The link expires after 24 hours.
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": {
"pack": "<pack>"
},
"name": "create_topup_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | The credit pack. | |
| promo_code | No | A promotion code, if the person has one. The price stays the pack's; the code adds bonus credits when the payment succeeds. | |
| idempotency_key | No | Optional. Retrying with the same key and the same request within 24 hours returns the first answer instead of doing it twice. |