Get a payment link for credits
buy_creditsCreate a Stripe Payment Link for a selected credit pack, personalized to the API key; users pay in their browser and credits are added after payment.
Instructions
Return the Stripe Payment Link for a credit pack, personalised for this API key (client_reference_id + prefilled email). Nothing is charged by this tool — give the link to the user to pay in their browser; credits are added automatically after payment.
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": "buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | Pack id from get_balance (starter = 10 sets for $3, pro = 20 sets for $5). |