Skip to content

Report distribution ​

INFO

Har bir javob umumiy konvertda qaytadi — code, message, messages, status_code, time — foydali yuk esa data ichida. Quyidagi jadvallar faqat data ichini tavsiflaydi.

POST /reports/distribution/get-summary ​

Aggregate distribution KPIs for the window (orders, deliveries, revenue).

So‘rov tanasi

MaydonTurMajburiyTavsif
date_fromstring (date-time)Yo‘qStart of the reporting window.
date_tostring (date-time)Yo‘qEnd of the reporting window.
organization_idsstring[]Yo‘q
warehouse_idsstring[]Yo‘q
currency_idstringYo‘q
responsible_idsstring[]Yo‘q
customer_idsstring[]Yo‘q
supplier_idsstring[]Yo‘q
product_idsstring[]Yo‘q
category_idsstring[]Yo‘q
payment_method_idsstring[]Yo‘q
sort_bystringYo‘qField name to sort by.
sort_orderstringYo‘qMumkin qiymatlar: asc, desc. Standart: "desc"
json
{
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d80a"
  ],
  "warehouse_ids": [
    "string"
  ],
  "currency_id": "string",
  "responsible_ids": [
    "string"
  ],
  "customer_ids": [
    "string"
  ],
  "supplier_ids": [
    "string"
  ],
  "product_ids": [
    "string"
  ],
  "category_ids": [
    "string"
  ],
  "payment_method_ids": [
    "string"
  ],
  "sort_by": "string",
  "sort_order": "asc"
}

Javob

json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {},
  "time": "2025-05-01T12:00:00Z"
}

POST /reports/distribution/get-by-product-category ​

Distribution volume grouped by product category.

So‘rov tanasi

MaydonTurMajburiyTavsif
pagenumberHaStandart: 1
limitnumberHaStandart: 20
date_fromstring (date-time)Yo‘qStart of the reporting window.
date_tostring (date-time)Yo‘qEnd of the reporting window.
organization_idsstring[]Yo‘q
warehouse_idsstring[]Yo‘q
currency_idstringYo‘q
responsible_idsstring[]Yo‘q
customer_idsstring[]Yo‘q
supplier_idsstring[]Yo‘q
product_idsstring[]Yo‘q
category_idsstring[]Yo‘q
payment_method_idsstring[]Yo‘q
sort_bystringYo‘qField name to sort by.
sort_orderstringYo‘qMumkin qiymatlar: asc, desc. Standart: "desc"
searchstringYo‘q
json
{
  "page": 1,
  "limit": 20,
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d80a"
  ],
  "warehouse_ids": [
    "string"
  ],
  "currency_id": "string",
  "responsible_ids": [
    "string"
  ],
  "customer_ids": [
    "string"
  ],
  "supplier_ids": [
    "string"
  ],
  "product_ids": [
    "string"
  ],
  "category_ids": [
    "string"
  ],
  "payment_method_ids": [
    "string"
  ],
  "sort_by": "string",
  "sort_order": "asc",
  "search": "string"
}

Javob

MaydonTurTavsif
listobject[]
totalnumber
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "list": [
      {}
    ],
    "total": 0
  },
  "time": "2025-05-01T12:00:00Z"
}

POST /reports/distribution/get-by-agent-and-type ​

Distribution metrics grouped by (agent, distribution type).

So‘rov tanasi

MaydonTurMajburiyTavsif
pagenumberHaStandart: 1
limitnumberHaStandart: 20
date_fromstring (date-time)Yo‘qStart of the reporting window.
date_tostring (date-time)Yo‘qEnd of the reporting window.
organization_idsstring[]Yo‘q
warehouse_idsstring[]Yo‘q
currency_idstringYo‘q
responsible_idsstring[]Yo‘q
customer_idsstring[]Yo‘q
supplier_idsstring[]Yo‘q
product_idsstring[]Yo‘q
category_idsstring[]Yo‘q
payment_method_idsstring[]Yo‘q
sort_bystringYo‘qField name to sort by.
sort_orderstringYo‘qMumkin qiymatlar: asc, desc. Standart: "desc"
searchstringYo‘q
json
{
  "page": 1,
  "limit": 20,
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d80a"
  ],
  "warehouse_ids": [
    "string"
  ],
  "currency_id": "string",
  "responsible_ids": [
    "string"
  ],
  "customer_ids": [
    "string"
  ],
  "supplier_ids": [
    "string"
  ],
  "product_ids": [
    "string"
  ],
  "category_ids": [
    "string"
  ],
  "payment_method_ids": [
    "string"
  ],
  "sort_by": "string",
  "sort_order": "asc",
  "search": "string"
}

Javob

Javob tuzilishi quyidagi bilan bir xil: POST /reports/distribution/get-by-product-category.

POST /reports/distribution/get-by-agent ​

Distribution metrics aggregated by agent (sales rep).

So‘rov tanasi

MaydonTurMajburiyTavsif
pagenumberHaStandart: 1
limitnumberHaStandart: 20
date_fromstring (date-time)Yo‘qStart of the reporting window.
date_tostring (date-time)Yo‘qEnd of the reporting window.
organization_idsstring[]Yo‘q
warehouse_idsstring[]Yo‘q
currency_idstringYo‘q
responsible_idsstring[]Yo‘q
customer_idsstring[]Yo‘q
supplier_idsstring[]Yo‘q
product_idsstring[]Yo‘q
category_idsstring[]Yo‘q
payment_method_idsstring[]Yo‘q
sort_bystringYo‘qField name to sort by.
sort_orderstringYo‘qMumkin qiymatlar: asc, desc. Standart: "desc"
searchstringYo‘q
json
{
  "page": 1,
  "limit": 20,
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d80a"
  ],
  "warehouse_ids": [
    "string"
  ],
  "currency_id": "string",
  "responsible_ids": [
    "string"
  ],
  "customer_ids": [
    "string"
  ],
  "supplier_ids": [
    "string"
  ],
  "product_ids": [
    "string"
  ],
  "category_ids": [
    "string"
  ],
  "payment_method_ids": [
    "string"
  ],
  "sort_by": "string",
  "sort_order": "asc",
  "search": "string"
}

Javob

Javob tuzilishi quyidagi bilan bir xil: POST /reports/distribution/get-by-product-category.


Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.

Bito 2.0 Integration API