Create permanent payment link
create_payment_linkCreate a permanent payment page aitole.kz/pay/. Each click on "Pay" creates a fresh Kaspi QR, so the link can be shared in messengers and bios. Set a fixed amount, or omit it so the customer enters the amount within min_amount/max_amount. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Payments through the link are normal operations with payment_link_id; A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Note: this endpoint is not idempotent, so do not retry blindly (a taken slug returns 409 slug_taken). Use for one reusable page shared with many customers; for a single charge use create_qr or create_invoice. Returns the link with id and url, the address to share.
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": {
"title": "<title>"
},
"name": "create_payment_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Optional custom address; by default it is built from the title. | |
| title | Yes | Title shown on the payment page, e.g. "Consultation". | |
| amount | No | Fixed amount. Integer, whole tenge (KZT). | |
| ask_name | No | Ask the customer for their name (default true): Kaspi does not tell who paid by QR. | |
| max_amount | No | Maximum amount when the customer enters it. Integer, whole tenge (KZT). | |
| min_amount | No | Minimum amount when the customer enters it. Integer, whole tenge (KZT). | |
| description | No | Optional description on the page. | |
| connection_id | No | Optional Kaspi connection (cash register) id. Only needed when the account has several connections. | |
| merchant_name | No | Optional merchant name shown on the page. |