Skip to main content
Glama

Aitole — Kaspi Pay

Server Details

Accept Kaspi Pay in Kazakhstan: QR, phone invoices, payment links, subscriptions, refunds. Sandbox.

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
OAuth
Works in Glama
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
aitole-kz/aitole-examples
GitHub Stars
0
ChatGPT
–
Claude
–

TDQS

A4.4/5.0

Scored across 24 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: create_qr, create_invoice, create_payment_link, and create_subscription are explicitly differentiated by when to use each, and get/list/cancel/refund/pause/resume tools target distinct resources. The sandbox simulation tools are also clearly separated from production actions. I found no meaningful overlap that would cause misselection.

Naming Consistency4/5

The set mainly follows a predictable verb_noun snake_case pattern (create_invoice, get_operation, list_subscriptions, cancel_subscription, update_payment_link) and uses a consistent sandbox_ prefix. Minor deviations exist: account_status is noun-only and refund is verb-only, but these are still clear and readable.

Tool Count4/5

At 24 tools the set is on the heavy side, but the tools cover several distinct domains (operations, payment links, subscriptions, sandbox testing, account status) and each seems to earn its place. There is little obvious redundancy, though the four sandbox tools add noticeable surface area.

Completeness4/5

The surface covers the full payment lifecycle: create/get/list/cancel/refund operations, full payment-link management (including disable via update), and subscription create/get/list/update/pause/resume/cancel plus invoice history. Minor gaps remain, such as webhook management (events are mentioned as a fallback) and account balance/payout reporting, but core workflows are well supported.

Publisher details

Operator
Aitole · Publisher source
Vendor relationship
Independent · Publisher source
Trust center
Not available
Restrictions
Requires an Aitole account. Live payments need your own Kaspi Pay merchant account (Kazakhstan) connected through an employee with the Cashier role; sandbox keys (sk_test_) work without Kaspi. 20 payments a month are free with no time limit; higher volumes need a paid plan. Sign in via OAuth, or send an API key in the Authorization header. · Publisher source

Available Tools

24 tools
account_statusAccount statusA
Read-onlyIdempotent
Inspect

Call this first. Shows whether this connection works in the sandbox (sk_test_, no real money) or live (sk_live_, real money), the plan with its monthly limit and usage, and whether a live Kaspi cashier is connected. If the user wants to accept real payments and Kaspi is not connected, relay the connection steps from the result. Returns key_mode (test or live), the plan with its limit and usage, and kaspi.connected with the connections. Read-only and safe to repeat.

Inputs: no named parameters.

cancel_operationCancel operation (irreversible)A
Destructive
Inspect

IRREVERSIBLE: cancel an unpaid QR or invoice so the customer can no longer pay it. It cannot be undone; ask the user to confirm the operation id before calling. Does not refund paid operations (use refund for that). Use only for an operation that is not paid yet; for a paid one use refund. Returns the updated operation.

Inputs: operation_id (required), idempotency_key.

cancel_subscriptionCancel recurring invoice (irreversible)A
Destructive
Inspect

IRREVERSIBLE: cancel a recurring invoice (subscription); no further invoices will be sent to the customer and it cannot be resumed. Ask the user to confirm the subscription id before calling. Its unpaid invoice, if one is open, is cancelled too; already paid invoices are not refunded. To stop only for a while use pause_subscription instead. Returns the subscription with status "cancelled".

Inputs: subscription_id (required), idempotency_key.

create_invoiceSend Kaspi invoice to a phoneAInspect

Send a Kaspi Pay invoice to the customer's phone number; the customer pays it in the Kaspi app. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Phone in E.164 (+77001234567). A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Kaspi may refuse with status "failed" (e.g. the number is not a Kaspi client). Use when you know the customer's Kaspi phone; for a scan-to-pay code use create_qr, for repeating charges use create_subscription. Returns the operation (id, status); follow it with get_operation until it is paid, cancelled or expired.

Inputs: phone (required), amount (required), comment, metadata, +2 more.

create_qrCreate Kaspi QR paymentAInspect

Create a Kaspi Pay QR payment for a given amount. Returns an operation with status "pending", qr_code (what to encode in the QR image; customers of other Kazakh banks can scan it too), qr_token (the link to open on the buyer's phone, it opens the Kaspi app) and expires_at; both live about 5 minutes. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Kaspi may refuse with status "failed" and failure_reason/failure_message. Use when the buyer scans a code on a screen or at the counter; to bill a known phone use create_invoice, for a reusable link use create_payment_link. Returns the operation (id, status, qr_code, qr_token, expires_at); then follow it with get_operation until it is paid or expired.

Inputs: amount (required), comment, metadata, connection_id, +1 more.

create_subscriptionCreate recurring invoice (subscription)AInspect

Create a recurring invoice: Kaspi has no auto-debit, so Aitole sends an invoice to the customer's phone on a schedule and the customer pays it in Kaspi in one tap. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Each invoice is a normal operation with subscription_id; it counts as paid only with status "paid". By default the first invoice is sent one period from now; use bill_immediately or first_billing_at to change it. Pass idempotency_key (e.g. "sub-client-77") so a retry does not create a second subscription. Use for repeating charges to the same phone (memberships, courses, rent); for a single charge use create_invoice. Returns the subscription with id, status and next_billing_at; pass that id to get_subscription, list_subscription_invoices, pause_subscription or cancel_subscription.

Inputs: phone (required), amount (required), period (required), metadata, +15 more.

get_operationGet operationA
Read-onlyIdempotent
Inspect

Get one payment operation (QR or invoice) by id, with its current status: created, pending, paid, cancelled, expired or failed. A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Also shows refunded_amount and failure_reason/failure_message. For a paid one: payment_method (kaspi_gold, kaspi_red, kaspi_business or other_bank — Kaspi does not say which bank), payer_name when Kaspi gives it, receipt_url (Kaspi receipt) and kaspi_order_number. Amounts in whole tenge. Use to check one payment whose id you have; to find payments by status or date use list_operations. An unknown id returns a 404 not_found error.

Inputs: operation_id (required).

get_subscriptionGet recurring invoiceA
Read-onlyIdempotent
Inspect

Get one recurring invoice (subscription) by id: status (active, paused, cancelled, expired) and status_reason, amount (whole tenge), schedule, next_billing_at, cycles_paid, retry settings and a masked phone. Use when you have the subscription id (from create_subscription or list_subscriptions); for the invoices it sent use list_subscription_invoices. An unknown id returns a 404 not_found error.

Inputs: subscription_id (required).

list_eventsList account eventsA
Read-onlyIdempotent
Inspect

List the account event log, newest first, with cursor pagination: payment.created, payment.paid, payment.expired, payment.cancelled, payment.refunded, connection.session_expired, connection.restored, billing., subscription. (created, payment_succeeded, payment_failed, grace_period_started, expired, cancelled, paused, resumed) and checkout.* (paid, expired, double_paid, amount_mismatch, notify_failed); all of them work as the type filter. payment.paid is the confirmation that money was received. Use it as a fallback when a webhook was missed. Use to see what happened across the account recently; for the current state of one payment use get_operation. Returns data[], has_more and next_cursor.

Inputs: type, limit, cursor, date_to, +2 more.

list_operationsList operationsA
Read-onlyIdempotent
Inspect

List payment operations, newest first, with cursor pagination (has_more / next_cursor). Filter by status (use status "paid" to see confirmed payments), type (qr or invoice) and creation date. Amounts in whole tenge. A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Use when you have no id, e.g. "what was paid today"; for one known id use get_operation. Returns data[], has_more and next_cursor; an empty data[] means nothing matches.

Inputs: type, limit, cursor, status, +3 more.

list_subscription_invoicesList invoices of a recurring invoiceA
Read-onlyIdempotent
Inspect

List the invoices a subscription has sent, each a normal operation with its status. A payment is confirmed ONLY when the operation status is "paid"; creating a QR or invoice does not mean it was paid. Use it to see which periods the customer paid and which are still pending or expired. Use for the payment history of one subscription; for payments across the whole account use list_operations. Returns data[] newest first, up to 100, without paging.

Inputs: subscription_id (required).

list_subscriptionsList recurring invoicesA
Read-onlyIdempotent
Inspect

List recurring invoices (subscriptions) with status, amount (whole tenge), period, next_billing_at, cycles_paid and a masked phone. Cursor pagination. Use to find subscriptions when you have no id, newest first, e.g. status "paused"; for one known id use get_subscription, for the invoices it sent use list_subscription_invoices. Returns data[], has_more and next_cursor; an empty data[] means nothing matches.

Inputs: limit, cursor, status.

pause_subscriptionPause recurring invoiceA
Idempotent
Inspect

Pause an active recurring invoice: no new invoices are sent until resume_subscription. An invoice already sent stays payable. Reversible, unlike cancel_subscription. Use when the customer takes a break; to stop for good use cancel_subscription. Returns the subscription with status "paused".

Inputs: subscription_id (required), idempotency_key.

refundRefund a paid operation (moves money)A
Destructive
Inspect

MOVES MONEY, IRREVERSIBLE: return money to the customer for a paid operation, fully or partially. Always ask the user to confirm the operation id and amount before calling. Omit amount for a full refund of the remaining sum. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Refund window is 90 days; the key needs the "refund" scope. The operation stays "paid" and its refunded_amount grows. Check the returned refund status: Kaspi can refuse with HTTP 200 and status "failed". Pass idempotency_key (e.g. "refund-1024-1") so a retry does not refund twice. Use only for a paid operation; for an unpaid one use cancel_operation. Returns the refund with its status.

Inputs: operation_id (required), amount, reason, idempotency_key.

resume_subscriptionResume recurring invoiceA
Idempotent
Inspect

Resume a paused or expired recurring invoice. Paused within the same period: it continues where it stopped, with the invoice already sent (no second invoice for that period). Otherwise billing continues from the next scheduled date (see next_billing_at in the result): periods skipped meanwhile are not billed, an unpaid invoice of a past period is cancelled, one paid during the pause is counted. A cancelled or fully paid one cannot be resumed. Use after pause_subscription or when an expired subscription should bill again. Returns the subscription with status "active" and the new next_billing_at.

Inputs: subscription_id (required), idempotency_key.

sandbox_bill_nowSandbox: bill subscription nowAInspect

SANDBOX ONLY (sk_test_ key): run the next step of a sandbox recurring invoice right now instead of waiting for its date (sends the next invoice or the next retry). Use in tests after create_subscription with a sk_test_ key; then find the new invoice with list_subscription_invoices and settle it with sandbox_pay. Returns { subscription, note }.

Inputs: subscription_id (required).

sandbox_expireSandbox: expire operationA
Idempotent
Inspect

SANDBOX ONLY (sk_test_ key): simulate a sandbox QR or invoice expiring unpaid. The status changes to "expired" a few seconds later; check with get_operation. Use in tests to see how your flow handles a customer who never pays; for a declined invoice use sandbox_reject.

Inputs: operation_id (required).

sandbox_paySandbox: mark operation paidA
Idempotent
Inspect

SANDBOX ONLY (sk_test_ key): simulate the customer paying a sandbox QR or invoice. No real money. The operation status changes to "paid" a few seconds later (the same poller as in production); check with get_operation. Use in tests after create_qr or create_invoice with a sk_test_ key to play out a successful payment; for the unhappy paths use sandbox_expire or sandbox_reject.

Inputs: operation_id (required).

sandbox_rejectSandbox: customer rejects invoiceA
Idempotent
Inspect

SANDBOX ONLY (sk_test_ key): simulate the customer rejecting the invoice in Kaspi. The operation becomes "cancelled" with failure_reason "payer_refused" a few seconds later; check with get_operation. Use in tests for a declined invoice; for an unpaid timeout use sandbox_expire, for success sandbox_pay.

Inputs: operation_id (required).

update_subscriptionUpdate recurring invoiceA
Idempotent
Inspect

Change a recurring invoice that is not cancelled: amount of future invoices, description, billing_time, subscriber_name, external_subscriber_id, metadata. Pass only the fields to change. Amounts are whole tenge (KZT) as integers: 5000 means 5,000 tenge, no tiyn/decimals. Already sent invoices keep their amount. The phone and the period cannot be changed: cancel and create a new one. Use to change future invoices of an existing subscription; to stop it for a while use pause_subscription, for good cancel_subscription. Returns the updated subscription.

Inputs: subscription_id (required), amount, metadata, description, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to accept Kaspi Pay payments in Kazakhstan by creating payment links and invoices, checking payment status, and managing a catalogue, online courses, paid Telegram channels and store sites. Money-moving and public actions such as publishing, broadcasts and refunds require human approval, and granular API key permissions keep agents within safe limits.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for Qut Pay (qut.kz): create Kaspi QR / Kaspi link invoices for Kazakhstan merchants, check status, list, cancel, refund (live needs confirm) and simulate payments in sandbox. 9 tools, 5 doc resources, 2 prompts. npm: npx -y @qutpay/mcp with QUTPAY_API_KEY. Source in examples/mcp. Independent service, not affiliated with Kaspi Bank.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables managing Kaspi Marketplace orders through AI assistants, including listing, accepting, completing, and canceling orders, with real-time operations directly on production data (no sandbox).
      8
      11 npm
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.