Get a wallet top-up link
get_topup_linkCreate a hosted payment URL to hand to your human principal when the wallet is short. Use it after WALLET_INSUFFICIENT_FUNDS or a low get_wallet balance, then poll get_wallet until the credit appears. Returns the top-up record with its payment URL; it charges nothing by itself. Example: {amount_minor: 2000, currency: "USD"} asks for a 20.00 USD credit. They pay in ILS on the acquirer's page (PayPlus); you never see card data. amount_minor is in currency: USD (the wallet credit you want; the ILS charge is computed at today's rate) or ILS (the exact charge). The wallet is credited in USD at the rate in force when payment is confirmed. Limits are in the topup policy.
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": {
"amount_minor": "<amount_minor>"
},
"name": "get_topup_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Your agent id (or X-Agent-Id header) | |
| currency | No | USD: the wallet credit you want (the ILS charge follows today's rate). ILS: the exact charge in shekels. Default USD | USD |
| agent_key | No | Secret returned by register_agent (or X-Agent-Key header) | |
| amount_minor | Yes | Amount in minor units of currency (2000 = 20.00); limits are in the topup policy | |
| principal_id | No | The principal you act for (or X-Principal-Id header) |