Cash registers
const url = 'https://api-admin.billz.ai/v1/cash-box?page=1&limit=100&sort_field=name&sort_direction=asc';const options = { method: 'GET', headers: { 'platform-id': '7d4a4c38-dd84-4902-b744-0488b80a4c01', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-admin.billz.ai/v1/cash-box?page=1&limit=100&sort_field=name&sort_direction=asc' \ --header 'Authorization: Bearer <token>' \ --header 'platform-id: 7d4a4c38-dd84-4902-b744-0488b80a4c01'The cash register id is passed in the cashbox_id field when creating a sale (POST /v2/order) and when paying (POST /v2/order-payment/{order_id}).
Error codes: 400 — input validation error; 401, 403, 429, 500 — shared by all methods. Body formats and semantics: Response codes and errors.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Not a number — 400
Not a number — 400
Example
100Cash registers of a single shop
Cash registers of several shops, IDs comma-separated
Filter by cash register name
When true, the head office cash register is added to the list
name or created_at; applied only together with sort_direction
asc or desc; applied only together with sort_field
Header Parameters
Section titled “Header Parameters”Ru|uz|en, default ru — language of payment type names
Platform identifier. A static value is used for integrations.
Responses
Section titled “Responses”Successful response
object
Total count regardless of pagination
List of cash registers
object
Shop the cash register belongs to
object
{id, shop_id, week_day, start_time, end_time, is_active}
object
Payment types enabled for the cash register
object
Payment type id from GET /v1/company-payment-type
Company payment type
object
object
Examplegenerated
{ "count": 1, "cash_boxes": [ { "id": "example", "company_id": "example", "shop_id": "example", "shop": { "id": "example", "name": "example", "phone_numbers": [ "example" ], "facebook": "example", "instagram": "example", "telegram": "example", "website": "example", "working_hours": [ {} ] }, "name": "example", "cheque_id": "example", "payment_types": [ { "id": "example", "company_payment_type_id": "example", "company_payment_type": {}, "is_active": true } ], "e_pos": 1, "tariff_limits": {}, "local_payment_types": true } ]}