Skip to main content
POST
Create kaspi

Авторизации

Authorization
string
header
обязательно

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Заголовки

X-Tenant-Id
integer

Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Параметры пути

id
integer
обязательно

Тело

Raise a Kaspi Pay payment for an existing subscription invoice.

qr answers with a pay.kaspi.kz link to render as a QR or open on a phone; invoice pushes a confirmation into the Kaspi app of phone instead. Either way the invoice is only marked paid by the webhook — never by this response.

method
enum<string>
по умолчанию:qr
  • qr - qr
  • invoice - invoice
Доступные опции:
qr,
invoice
phone
string
write-only
Pattern: ^7\d{9}$

Ответ

201 - application/json

Raise a Kaspi Pay payment for an existing subscription invoice.

qr answers with a pay.kaspi.kz link to render as a QR or open on a phone; invoice pushes a confirmation into the Kaspi app of phone instead. Either way the invoice is only marked paid by the webhook — never by this response.

payment_id
string
обязательно
read-only
payment_url
string | null
обязательно
read-only
expire_at
string | null
обязательно
read-only
status
string
обязательно
read-only