Guides for operators, reference for developers, and runbooks for the parts where money moves. Start with the four-minute Store setup, then wire the API.
Create a Team, verify a bot token, add one product with finite units, and take a test payment end to end.
Mint a Store-scoped token with only the abilities you need, then make your first authenticated request.
Verify the signature, absorb duplicates idempotently, and replay a failed attempt from the dashboard.
Creates an order in a Store you have scope over, reserving finite inventory atomically. Send an Idempotency-Key so a retry returns the original order instead of reserving a second unit.
| Field | Type | Notes |
|---|---|---|
| customer_telegram_id | integer, required | The Customer must already exist in this Store. Customers are Store-scoped, never Team-scoped. |
| items[].product_id | string, required | Must belong to the same Store. Finite products reserve one unit per quantity. |
| items[].quantity | integer, required | Capped by available units. A shortfall fails the whole order rather than partially reserving. |
| currency | string, required | ISO 4217. Fiat amounts are integer minor units throughout the API. |
| payment_method | enum, required | vietqr · crypto · wallet · wallet_plus_gateway |
| voucher_code | string, optional | Applied before the quote is fixed. An invalid code fails the request; it is never silently ignored. |