Tole.
Register
Developers · REST API v1Contract v1

Complete Tole REST API documentation

A human-readable reference for live payments, sandbox, keys, webhooks, responses, and errors. OpenAPI supplements this page; it does not replace it.

Quickstart

Base URL: https://api.tolepay.kz/v1. Start with a test key and /sandbox, which never sends requests to Kaspi.

1

Create a sandbox connection

Create an isolated test connection in the dashboard.

2

Create a test API key

Grant access to the sandbox connection and required permissions. The secret is shown once.

3

Create an invoice or QR

Send the Bearer key, X-Tole-Connection-Id, and a unique Idempotency-Key.

4

Simulate payment

Call simulate with paid and verify your webhook handler.

5

Switch to live

Replace test credentials and /sandbox routes with live equivalents. Test IDs never cross environments.

Prepare a Kaspi cashier

Authentication and common headers

Call payment endpoints from your backend only. Never expose tole_sk_* in a browser, mobile app, public repository, or frontend logs.

Authorization

Required. Bearer tole_sk_live_v1… for live or Bearer tole_sk_test_v1… for sandbox.

Content-Type

application/json for requests with a body.

X-Tole-Connection-Id

Connection UUID. Optional in live when a default exists; always required in sandbox.

Idempotency-Key

Required for create/cancel/refund. One business request must keep one key.

Permissions are checked for the selected connection. A grant for another connection gives no access. Wildcards are unsupported.

Read

120 / min

GET и provider reads

Lookup

60 / min

client-info

Mutation

30 / min

create, cancel, refund

Live payment API

Append every path to https://api.tolepay.kz/v1. operationId and paymentIntentId are owner-scoped Tole UUIDs, never private Kaspi identifiers.

POST/invoices/client-infoValidate an invoice recipient

Checks whether Kaspi can invoice the number. Customer name and full phone are never returned.

Authentication: Bearer API keyPermission: invoice:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
phoneNumberbodystringYesKazakhstan phone: +7 followed by 10 digits.

Safe fields may include available, canCreateInvoice, eligible, exists, isAvailable, and status.

Request example
curl https://api.tolepay.kz/v1/invoices/client-info \
  -H "Authorization: Bearer $TOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phoneNumber":"+77001234567"}'
200 OK · Response example
{
  "ok": true,
  "data": { "eligible": true }
}
POST/invoicesCreate a phone-number invoice

Creates a live Kaspi invoice. data.id is the local Tole UUID for follow-up requests.

Authentication: Bearer API keyPermission: invoice:createHTTP: 201 Created
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
Idempotency-KeyheaderstringYesUnique mutation key. Retry the same request with the same key.
phoneNumberbodystringYes+7 followed by 10 digits.
amountbodyintegerYesAmount in KZT: 1–100,000,000.
commentbodystringNoOptional, up to 200 characters.

receiptUrl and orderNumber are optional and appear only when Kaspi returned valid values.

Request example
curl https://api.tolepay.kz/v1/invoices \
  -X POST \
  -H "Authorization: Bearer $TOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1024-invoice-v1" \
  -d '{"phoneNumber":"+77001234567","amount":5000,"comment":"Order 1024"}'
201 Created · Response example
{
  "ok": true,
  "data": {
    "id": "d7dfb407-0e4c-4cc2-9d31-26d9f696cb27",
    "kind": "invoice",
    "status": "created",
    "amount": 5000,
    "clientPhoneLast4": "4567",
    "receiptUrl": "https://…",
    "orderNumber": "…"
  },
  "commandId": "d7dfb407-0e4c-4cc2-9d31-26d9f696cb27",
  "replayed": false
}
GET/invoices/historyList invoice history

Returns sanitized invoice history for the selected connection.

Authentication: Bearer API keyPermission: invoice:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.

Provider fields are filtered; private Kaspi IDs become local operationId values.

Request example
curl https://api.tolepay.kz/v1/invoices/history \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": { "items": [{ "operationId": "uuid", "amount": 5000, "status": "Processed", "date": "…" }] }
}
GET/invoices/{operationId}Get invoice details

Reads current provider details and updates observed payment-intent status.

Authentication: Bearer API keyPermission: invoice:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
operationIdpathuuidYesOwner-scoped local Tole operation UUID.
Request example
curl https://api.tolepay.kz/v1/invoices/$OPERATION_ID \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": { "amount": 5000, "currency": "KZT", "status": "Processed" }
}
POST/invoices/{operationId}/cancelCancel an invoice

Cancels a created invoice. Body must be an empty JSON object.

Authentication: Bearer API keyPermission: invoice:cancelHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
Idempotency-KeyheaderstringYesUnique mutation key. Retry the same request with the same key.
operationIdpathuuidYesOwner-scoped local Tole operation UUID.
Request example
curl https://api.tolepay.kz/v1/invoices/$OPERATION_ID/cancel \
  -X POST \
  -H "Authorization: Bearer $TOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1024-cancel-v1" \
  -d '{}'
200 OK · Response example
{
  "ok": true,
  "data": { "operationId": "uuid", "status": "cancelled" },
  "commandId": "uuid",
  "replayed": false
}
POST/qrCreate a dynamic QR

Creates a payment QR and returns paymentUrl plus the original qrToken.

Authentication: Bearer API keyPermission: qr:createHTTP: 201 Created
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
Idempotency-KeyheaderstringYesUnique mutation key. Retry the same request with the same key.
amountbodyintegerYesKZT amount: 1–100,000,000.
latitudebodynumberNoOptional, −90…90; only with longitude.
longitudebodynumberNoOptional, −180…180; only with latitude.

expiresAt and receiptUrl are optional. paymentUrl and qrToken are always HTTPS.

Request example
curl https://api.tolepay.kz/v1/qr \
  -X POST \
  -H "Authorization: Bearer $TOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1024-qr-v1" \
  -d '{"amount":5000}'
201 Created · Response example
{
  "ok": true,
  "data": {
    "id": "uuid", "kind": "qr", "status": "created", "amount": 5000,
    "paymentUrl": "https://…", "qrToken": "https://qr.kaspi.kz/…",
    "expiresAt": "…", "receiptUrl": "https://…"
  },
  "commandId": "uuid",
  "replayed": false
}
GET/qr/{operationId}Get QR details

Reads current QR status from the provider.

Authentication: Bearer API keyPermission: qr:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
operationIdpathuuidYesOwner-scoped local Tole operation UUID.
Request example
curl https://api.tolepay.kz/v1/qr/$OPERATION_ID \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": { "amount": 5000, "currency": "KZT", "status": "Processed" }
}
GET/history/operationsList payment operations

History through the specified UTC date with an optional next-page cursor.

Authentication: Bearer API keyPermission: history:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
endDatequerydateYesRequired: YYYY-MM-DD, inclusive UTC.
lastTransactionDatequerystringNoCursor from the previous response.
statementPeriodCodequeryintegerNoNon-negative statement-period code.
Request example
curl "https://api.tolepay.kz/v1/history/operations?endDate=2026-08-23" \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": {
    "items": [{ "operationId": "uuid", "amount": 5000, "type": "Payment", "status": "Processed" }],
    "lastTransactionDate": "…", "hasMore": false
  }
}
GET/history/operations/{operationId}Get a payment operation

Sanitized operation details by local UUID.

Authentication: Bearer API keyPermission: history:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
operationIdpathuuidYesOwner-scoped local Tole operation UUID.
operationMethodqueryintegerNoOptional non-negative method code.
Request example
curl "https://api.tolepay.kz/v1/history/operations/$OPERATION_ID?operationMethod=0" \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": { "operationId": "uuid", "amount": 5000, "status": "Processed" }
}
POST/refundsCreate a refund

Full or partial refund of a paid QR on the selected connection.

Authentication: Bearer API keyPermission: refund:createHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
Idempotency-KeyheaderstringYesUnique mutation key. Retry the same request with the same key.
operationIdbodyuuidYesLocal QR/payment-intent UUID.
returnAmountbodyintegerYesKZT, not above the refundable balance.
Request example
curl https://api.tolepay.kz/v1/refunds \
  -X POST \
  -H "Authorization: Bearer $TOLE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: refund-order-1024-v1" \
  -d '{"operationId":"uuid","returnAmount":1500}'
200 OK · Response example
{
  "ok": true,
  "data": { "operationId": "uuid", "status": "refund_accepted", "returnAmount": 1500 },
  "commandId": "uuid", "replayed": false
}
GET/payment-intents/invoices/{paymentIntentId}Get durable invoice status

Reads durable Tole ledger state for reconciliation.

Authentication: Bearer API keyPermission: invoice:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
paymentIntentIdpathuuidYesTole payment intent UUID.
Request example
curl https://api.tolepay.kz/v1/payment-intents/invoices/$PAYMENT_INTENT_ID \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": {
    "id": "uuid", "kind": "invoice", "status": "paid", "amount": 5000,
    "refundedAmount": 0, "currency": "KZT", "revision": 3,
    "createdAt": "2026-08-23T10:00:00.000Z", "updatedAt": "2026-08-23T10:01:00.000Z",
    "paidAt": "2026-08-23T10:01:00.000Z", "terminalAt": null, "lastReconciledAt": "…"
  }
}
GET/payment-intents/qr/{paymentIntentId}Get durable QR status

Durable payment-intent contract for QR.

Authentication: Bearer API keyPermission: qr:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringNoLive connection UUID; optional when a default connection is configured.
paymentIntentIdpathuuidYesTole payment intent UUID.
Request example
curl https://api.tolepay.kz/v1/payment-intents/qr/$PAYMENT_INTENT_ID \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": { "id": "uuid", "kind": "qr", "status": "pending", "amount": 5000, "currency": "KZT", "revision": 1 }
}
GET/commands/{commandId}Get idempotent command status

Checks create/cancel/refund after a 202, network interruption, or retry.

Authentication: Bearer API keyHTTP: 200 OK
FieldInTypeRequiredDescription
commandIdpathuuidYesUUID from commandId or Location.

The command resolves connection and permission. A foreign commandId returns 404.

Request example
curl https://api.tolepay.kz/v1/commands/$COMMAND_ID \
  -H "Authorization: Bearer $TOLE_API_KEY"
200 OK · Response example
{
  "ok": true,
  "data": {
    "commandId": "uuid", "status": "succeeded", "responseStatus": 201,
    "result": { "ok": true, "data": { "id": "uuid" }, "commandId": "uuid" },
    "updatedAt": "2026-08-23T10:00:01.000Z"
  }
}

Sandbox API

Sandbox mirrors the main contract and persists commands, payment intents, events, and webhooks, but never calls Kaspi.

Mirrored sandbox routes

Add /sandbox before the live path. Request schemas and mutation control envelopes match live; data contains sandbox synthetic values. X-Tole-Connection-Id is required.

POST/sandbox/invoices/client-info

invoice:read

POST/sandbox/invoices

invoice:create

GET/sandbox/invoices/history

invoice:read

GET/sandbox/invoices/{operationId}

invoice:read

POST/sandbox/invoices/{operationId}/cancel

invoice:cancel

POST/sandbox/qr

qr:create

GET/sandbox/qr/{operationId}

qr:read

GET/sandbox/history/operations

history:read

GET/sandbox/history/operations/{operationId}

history:read

POST/sandbox/refunds

refund:create

GET/sandbox/commands/{commandId}

permission исходной команды

201 Created · sandbox invoice
{
  "ok": true,
  "data": {
    "id": "uuid", "kind": "invoice", "status": "created", "amount": 5000,
    "clientPhoneLast4": "4567", "orderNumber": "SBX-1234ABCD", "environment": "sandbox"
  },
  "commandId": "uuid", "replayed": false
}
201 Created · sandbox QR
{
  "ok": true,
  "data": {
    "id": "uuid", "kind": "qr", "status": "created", "amount": 5000,
    "paymentUrl": "https://sandbox.tole.test/pay/uuid",
    "qrToken": "https://sandbox.tole.test/qr/uuid", "environment": "sandbox"
  },
  "commandId": "uuid", "replayed": false
}
POST/sandbox/connectionsCreate a sandbox connection

Management endpoint authenticated with a user JWT, not an API key.

Authentication: Bearer JWTHTTP: 201 Created
FieldInTypeRequiredDescription
displayNamebodystringYesDisplay name, 1–100 characters.
Request example
curl https://api.tolepay.kz/v1/sandbox/connections \
  -X POST -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"displayName":"Development"}'
201 Created · Response example
{
  "id": "uuid", "providerMode": "sandbox", "status": "active", "displayName": "Development"
}
GET/sandbox/payment-intents/{paymentIntentId}Get a sandbox payment intent

Durable test state for an invoice or QR.

Authentication: Bearer API keyPermission: history:readHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringYesRequired sandbox connection UUID.
paymentIntentIdpathuuidYesTole payment intent UUID.
Request example
curl https://api.tolepay.kz/v1/sandbox/payment-intents/$PAYMENT_INTENT_ID \
  -H "Authorization: Bearer $TOLE_TEST_API_KEY" \
  -H "X-Tole-Connection-Id: $SANDBOX_CONNECTION_ID"
200 OK · Response example
{
  "ok": true,
  "data": { "id": "uuid", "kind": "invoice", "status": "pending", "amount": 5000, "currency": "KZT", "environment": "sandbox" }
}
POST/sandbox/payment-intents/{paymentIntentId}/simulateSimulate payment outcome

Moves a sandbox intent to a terminal status and creates a webhook event.

Authentication: Bearer API keyPermission: sandbox:simulateHTTP: 200 OK
FieldInTypeRequiredDescription
X-Tole-Connection-IdheaderstringYesRequired sandbox connection UUID.
paymentIntentIdpathuuidYesTole payment intent UUID.
statusbodyenumYespaid | cancelled | expired | failed
Request example
curl https://api.tolepay.kz/v1/sandbox/payment-intents/$PAYMENT_INTENT_ID/simulate \
  -X POST \
  -H "Authorization: Bearer $TOLE_TEST_API_KEY" \
  -H "X-Tole-Connection-Id: $SANDBOX_CONNECTION_ID" \
  -H "Content-Type: application/json" \
  -d '{"status":"paid"}'
200 OK · Response example
{
  "ok": true,
  "data": { "id": "uuid", "kind": "invoice", "status": "paid", "environment": "sandbox" }
}

API keys and permissions

Create a key in the dashboard or through the JWT management API. The raw secret is returned only once.

GET/api-keys

JWT · Список ключей; query cursor и limit 1–100

POST/api-keys

JWT · Создать: { name, grants: [{ connectionId, permissions }] }

PUT/api-keys/{apiKeyId}

JWT · Заменить name и grants; нужен expectedRevision

POST/api-keys/{apiKeyId}/revoke

JWT · Отозвать ключ; повторный revoke безопасен

PermissionРазрешает
invoice:createPOST /invoices
invoice:readclient-info, invoice history/details, invoice payment intent
invoice:cancelPOST /invoices/{id}/cancel
qr:createPOST /qr
qr:readQR details и QR payment intent
history:readhistory endpoints и sandbox payment intent
refund:createPOST /refunds
sandbox:simulatePOST /sandbox/payment-intents/{id}/simulate
POST /api-keys · request
{
  "name": "Production backend",
  "grants": [{
    "connectionId": "7a67d6bd-5daf-47af-b899-fdb8b7db4d63",
    "permissions": ["invoice:create", "invoice:read", "invoice:cancel"]
  }]
}
201 Created · secret returned once
{
  "apiKey": {
    "id": "uuid", "name": "Production backend", "keyPrefix": "tole_sk_live_v1.…", "status": "active",
    "revision": 1,
    "grants": [{
      "connectionId": "uuid", "connectionName": "main", "environment": "live",
      "permissions": ["invoice:create", "invoice:read", "invoice:cancel"]
    }]
  },
  "secret": "tole_sk_live_v1.<uuid>.<secret>"
}

Webhooks

Create endpoints with a user JWT. URLs must use HTTPS. The whsec_* signing secret is returned once.

GET/webhook-endpoints

JWT · Список endpoint-ов

POST/webhook-endpoints

JWT · Создать: { name, url }; secret возвращается один раз

POST/webhook-endpoints/{endpointId}/disable

JWT · Отключить; body {}

GET/webhook-deliveries?status=…

JWT · pending | processing | delivered | dead_letter

POST/webhook-deliveries/{deliveryId}/replay

JWT · Повторить dead-letter delivery; body {}

HTTP delivery

webhook-id

UUID события

webhook-timestamp

Unix timestamp

webhook-signature

v1=<hex HMAC-SHA256>

Payment webhook event
{
  "id": "c2e94dd8-9802-44e7-a52b-14f45d5b9cdb",
  "type": "payment.paid",
  "createdAt": "2026-08-23T10:01:00.000Z",
  "data": { "providerStatus": "SandboxProcessed", "environment": "sandbox" }
}

Event types: payment.created, payment.paid, payment.cancelled, payment.expired, payment.failed, payment.partially_refunded, payment.refunded, refund.reserved, refund.succeeded, refund.rejected, refund.outcome_unknown, operation.succeeded, operation.rejected, operation.outcome_unknown.

В контракте v1 состав data зависит от типа события и не гарантирует paymentIntentId. Не придумывайте это поле в интеграции: webhook используйте как сигнал, а итоговое состояние сверяйте по сохранённым UUID через payment-intent endpoints.

Проверяйте подпись по exact raw body до JSON.parse. Сохраняйте event id и обрабатывайте событие идемпотентно. Возвращайте 2xx только после надёжной фиксации события.

Node.js · signature verification
import { createHmac, timingSafeEqual } from "node:crypto";

const signed = `${webhookId}.${timestamp}.${rawBody}`;
const expected = "v1=" + createHmac("sha256", secret)
  .update(signed, "utf8")
  .digest("hex");

const actualBytes = Buffer.from(signature, "utf8");
const expectedBytes = Buffer.from(expected, "utf8");
if (actualBytes.length !== expectedBytes.length ||
    !timingSafeEqual(actualBytes, expectedBytes)) {
  throw new Error("Invalid Tole webhook signature");
}

Billing management API

JWT-authenticated endpoints for plan, usage, subscription, and checkout management.

GET/billing/overview

JWT · Subscription, usage, invoices и текущий checkout

GET/billing/plans

JWT · Доступные публичные планы и entitlements

GET/billing/invoices/{invoiceId}

JWT · Получить owner-scoped billing invoice

POST/billing/checkout

JWT · Создать или продолжить checkout: { planCode }

GET/billing/checkout/{checkoutId}

JWT · Получить статус checkout

POST/billing/subscription/cancel

JWT · Отменить подписку в конце периода

POST/billing/webhooks/kaspi

provider callback · Служебный HMAC callback; не вызывается merchant-интеграцией

POST /billing/checkout · request
{
  "planCode": "business"
}
201 Created · checkout
{
  "id": "uuid",
  "status": "pending",
  "planCode": "business",
  "planName": "Business",
  "amountKzt": 22500,
  "currency": "KZT",
  "paymentUrl": "https://…",
  "receiptUrl": null,
  "expiresAt": "2026-08-23T11:00:00.000Z",
  "paidAt": null,
  "createdAt": "2026-08-23T10:00:00.000Z"
}

Response formats, idempotency, and polling

200 / 201

Complete

Сохраните data.id/paymentIntentId и commandId. Повтор с тем же Idempotency-Key вернёт тот же результат и header Idempotent-Replayed: true.

202 in_progress

Wait

Читайте Retry-After: 2 и Location. Poll GET /commands/:commandId. Не создавайте новую mutation.

202 outcome_unknown

Do not retry

Kaspi мог выполнить операцию. Проверяйте command и payment intent; новый create может дать дубль.

202 Accepted · in progress
{
  "ok": false, "kind": "in_progress", "commandId": "uuid", "replayed": true
}
202 Accepted · outcome unknown
{
  "ok": false, "kind": "outcome_unknown", "commandId": "uuid", "replayed": false
}

Payment intent statuses: pending, paid, cancelled, expired, failed, partially_refunded, refunded.

REST API errors

Branch on HTTP status and code. message is diagnostic text and may change.

Error response
{
  "statusCode": 409,
  "code": "PUBLIC_API_IDEMPOTENCY_CONFLICT",
  "message": "The Idempotency-Key was already used for a different request"
}
HTTPcodeЧто делать
400PUBLIC_API_VALIDATION_ERRORИсправить body, query, UUID или заголовок. Не повторять без изменения запроса.
401API_KEY_INVALID_CREDENTIALПроверить namespace и заменить неверный или отозванный ключ.
402BILLING_SUBSCRIPTION_UNAVAILABLE
BILLING_ENTITLEMENT_UNAVAILABLE
Активировать тариф или возможность.
403PUBLIC_API_FORBIDDENПроверить grant, permission и X-Tole-Connection-Id.
404PUBLIC_API_RESOURCE_NOT_FOUNDПроверить локальный UUID и environment; чужие ресурсы также выглядят как 404.
409PUBLIC_API_IDEMPOTENCY_CONFLICTНе менять body под старым ключом. Для новой операции создать новый key.
409PUBLIC_API_DEFAULT_CONNECTION_REQUIRED
PUBLIC_API_DEFAULT_CONNECTION_UNAVAILABLE
Передать connection header или исправить основное подключение.
409PAYMENT_INVALID_STATE
PAYMENT_REFUND_LIMIT_EXCEEDED
Перечитать payment intent и исправить переход или сумму.
429RATE_LIMIT_EXCEEDED
BILLING_LIMIT_EXCEEDED
Соблюдать Retry-After или лимит тарифа.
502PUBLIC_API_UPSTREAM_REJECTEDKaspi отклонил команду. Исправить бизнес-условия перед новой командой.
503PUBLIC_API_UNAVAILABLE
RATE_LIMIT_UNAVAILABLE
Для read — backoff. Для mutation сначала проверить commandId.
500PUBLIC_API_INTERNAL_ERRORСохранить безопасный context и обратиться в поддержку.
Message us on WhatsApp