For Developers
Quick Start
Connect Kaspi Pay in 1 hour
1
Register
Create an account at cabinet.aipay.kz. Get your API key and access token.
2
Try Sandbox
The sandbox mirrors production. Create test invoices and receive webhooks — no real money.
3
Create your first invoice
Send POST /api/v2/invoices with amount and customer phone. They get a Kaspi push notification.
4
Configure webhook
Set notif_url in company settings. AiPay sends HTTP POST on every status change.
5
Go live
Your POS terminal activates. Your first real Kaspi Pay transaction is ready.
Create Invoice — Python
import requests
response = requests.post(
"https://core.aipay.kz/api/v2/invoices",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={
"pos_id": "your-pos-id",
"account": "+777****4567",
"amount": 5000,
"message": "Order #123"
}
)
print(response.json())