Recon act
INFO
Har bir javob umumiy konvertda qaytadi — code, message, messages, status_code, time — foydali yuk esa data ichida. Quyidagi jadvallar faqat data ichini tavsiflaydi.
GET /recon-act/get-by-id/{id}
Get a reconciliation act by its _id.
Yo‘l parametrlari
| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
id | string | Ha |
So‘rov tanasi
So‘rov tanasi talab qilinmaydi.
Javob
| Maydon | Tur | Tavsif |
|---|---|---|
_id | string | |
number | string | |
organization_id | string | |
customer_id | string | |
supplier_id | string | |
employee_id | string | |
person_id | string | |
type | string | Mumkin qiymatlar: debt, credit |
balance_action | string | Mumkin qiymatlar: separated, merged |
state | string | Mumkin qiymatlar: new, done, canceled |
amount | number | |
currency_id | string | |
after_balance | object | Per-currency balance snapshot map. |
invoice | object | |
invoice._id | string | |
invoice.number | string | |
payment_type | object | |
payment_type._id | string | |
payment_type.name | string | |
created_at | string (date-time) | |
updated_at | string (date-time) |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"_id": "string",
"number": "string",
"organization_id": "string",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"type": "debt",
"balance_action": "separated",
"state": "new",
"amount": 0,
"currency_id": "string",
"after_balance": {},
"invoice": {
"_id": "string",
"number": "string"
},
"payment_type": {
"_id": "string",
"name": "string"
},
"created_at": "2025-05-01T12:00:00Z",
"updated_at": "2025-05-01T12:00:00Z"
},
"time": "2025-05-01T12:00:00Z"
}POST /recon-act/get-all
Get reconciliation acts for a customer / supplier / employee / person within a date range.
So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
page | number | Ha | Standart: 1 |
limit | number | Ha | Standart: 20 |
organization_id | string | Yo‘q | |
customer_id | string | Yo‘q | One of customer_id / supplier_id / employee_id / person_id must be set. |
supplier_id | string | Yo‘q | |
employee_id | string | Yo‘q | |
person_id | string | Yo‘q | |
date_from | string (date-time) | Yo‘q | |
date_to | string (date-time) | Yo‘q | |
states | string[] | Yo‘q | |
locale | string | Yo‘q | Mumkin qiymatlar: uz, ru, en, kk, ky, tg |
json
{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz"
}Javob
| Maydon | Tur | Tavsif |
|---|---|---|
data | any[] | |
before_balance | object | Per-currency balance at date_from. |
after_balance | object | Per-currency balance at date_to. |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"data": [],
"before_balance": {},
"after_balance": {}
},
"time": "2025-05-01T12:00:00Z"
}POST /recon-act/get-all/export
Export reconciliation acts as XLSX/CSV. Returns a download path.
So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
page | number | Ha | Standart: 1 |
limit | number | Ha | Standart: 20 |
organization_id | string | Yo‘q | |
customer_id | string | Yo‘q | One of customer_id / supplier_id / employee_id / person_id must be set. |
supplier_id | string | Yo‘q | |
employee_id | string | Yo‘q | |
person_id | string | Yo‘q | |
date_from | string (date-time) | Yo‘q | |
date_to | string (date-time) | Yo‘q | |
states | string[] | Yo‘q | |
locale | string | Yo‘q | Mumkin qiymatlar: uz, ru, en, kk, ky, tg |
ext_type | string | Ha | Mumkin qiymatlar: xlsx, csv |
json
{
"page": 1,
"limit": 20,
"organization_id": "64b7f4d9e2b3b6a0b7c5d80a",
"customer_id": "string",
"supplier_id": "string",
"employee_id": "string",
"person_id": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"states": [
"new"
],
"locale": "uz",
"ext_type": "xlsx"
}Javob
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": "string",
"time": "2025-05-01T12:00:00Z"
}Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.