Kassa qoldiqlari
Kassalarda qancha pul borligi — valyuta va to‘lov turi bo‘yicha. Har bir yozuvda: id, value — to‘lov turi (cash, card, bank, system), cashbox_id, currency, amount — summa va cashbox — kassaning o‘zi. Qoldiq id si pulni qaytarishda kerak.
POST
/external/credit/records/cashbox_balanceSarlavhalar (headers)
| Sarlavha | Qiymat | Tavsif |
|---|---|---|
External-System-Secret-Key | {external_system_secret_key} | Tashqi tizim maxfiy kaliti |
Company-Uuid | {company_uuid} | Kompaniya ICAN yoki Wasyt dagi UUID si bo‘yicha |
Accept | application/json | Javob JSON da |
Accept-Language | ru | Xabarlar va nomlar tili: ru, uz, oz |
So‘rov tanasi
| Maydon | Turi | Majburiy | Tavsif |
|---|---|---|---|
filter[company_uuids] | array | Yo‘q | Faqat shu UUID li (ICAN yoki Wasyt dagi) kompaniyalar kassalari qoldiqlari |
filter[cashbox_id] | integer|array | Yo‘q | Shu kassalar qoldiqlari |
filter[currency] | string|array | Yo‘q | Shu valyutadagi qoldiqlar |
filter[payment_type] | string|array | Yo‘q | Shu to‘lov turidagi qoldiqlar |
filter[cashbox][type] | string|array | Yo‘q | Shu turdagi kassalar qoldiqlari; avtoyechimlar asosiy kassada (main) bo‘ladi |
filter[id] | integer|array | Yo‘q | Faqat shu ID li yozuvlar |
filter[value] | string | Yo‘q | Nomi (value) qismi bo‘yicha qidiruv |
show[] | string | Yo‘q | with-deleted — o‘chirilgan yozuvlar bilan birga, only-deleted — faqat o‘chirilganlar |
page | integer | Yo‘q | Sahifa raqami, 1 dan |
page-size | integer | Yo‘q | Sahifadagi yozuvlar soni, 20 tadan ko‘p emas |
json
{
"filter": {
"cashbox_id": 1,
"currency": "uzs",
"payment_type": "cash"
}
}bash
curl -X POST "https://api.wasyt.uz/external/credit/records/cashbox_balance" \
-H "Accept: application/json" \
-H "Accept-Language: ru" \
-H "External-System-Secret-Key: {external_system_secret_key}" \
-H "Company-Uuid: ican-company-1" \
-H "Content-Type: application/json" \
-d '{"filter":{"cashbox_id":1,"currency":"uzs","payment_type":"cash"}}'Javob · 200
Sahifalangan javob: yozuvlar data[] ichida, sahifalash links va meta da.
Javob maydonlari
| Maydon | Turi | Tavsif |
|---|---|---|
data | object[] | Ma'lumotlar |
data[].id | integer | ID |
data[].value | string | Ma'nosi |
data[].cashbox_id | integer | Kassa |
data[].currency | string | Valyuta |
data[].amount | integer | Summa |
data[].cashbox | object | Kassa |
data[].cashbox.id | integer | ID |
data[].cashbox.creator_id | integer | Yaratuvchi |
data[].cashbox.company_id | integer | Kompaniya |
data[].cashbox.name | string | Nomlanish |
data[].cashbox.type | string | Turi |
data[].cashbox.created_at | string | Yaratilgan |
data[].cashbox.updated_at | string | Yangilangan |
data[].cashbox.is_deleted | boolean | O‘chirilgan |
json
{
"data": [
{
"id": 1,
"value": "cash",
"cashbox_id": 1,
"currency": "uzs",
"amount": 1000,
"cashbox": {
"id": 1,
"creator_id": 2,
"company_id": 1,
"name": "Cashbox 1",
"type": "sale",
"created_at": "2026-10-29 18:39:48",
"updated_at": "2026-10-29 18:39:48",
"is_deleted": false
}
}
],
"links": {
"first": "https://api.wasyt.uz/external/credit/records/cashbox_balance?page=1",
"last": "https://api.wasyt.uz/external/credit/records/cashbox_balance?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [],
"path": "https://api.wasyt.uz/external/credit/records/cashbox_balance",
"per_page": 20,
"to": 1,
"total": 1
}
}
