invoices
Create invoices
Turn a Kaspi outage into an honest status code instead of a 500.
A dead platform session is a 409 (the same shape the per-company integration answers with), Kaspi refusing the request is a 400, and the service being unreachable is a 502 — the payer can retry that one.
POST
Create invoices
Авторизации
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Заголовки
Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.
Тело
freedom- Freedomkaspi- Kaspi Pay
Доступные опции:
freedom, kaspi qr- qrinvoice- invoice
Доступные опции:
qr, invoice Pattern:
^7\d{9}$Ответ
201 - application/json
KZT- KZTUSD- USDRUB- RUBEUR- EURUZS- UZSKGS- KGSAED- AEDSAR- SAR
Доступные опции:
KZT, USD, RUB, EUR, UZS, KGS, AED, SAR waiting- В ожиданииconfirmed- Подтвержденrejected- Отклоненrefunded- Возвращен
Доступные опции:
waiting, confirmed, rejected, refunded Pattern:
^-?\d{0,14}(?:\.\d{0,2})?$Pattern:
^-?\d{0,14}(?:\.\d{0,2})?$Pattern:
^-?\d{0,14}(?:\.\d{0,2})?$freedom- Freedomkaspi- Kaspi Pay
Доступные опции:
freedom, kaspi