Skip to content

Price ​

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 /price/get-all ​

Get all prices

So‘rov parametrlari

ParametrTurMajburiyTavsif
statusstringYo‘qMumkin qiymatlar: active, inactive
typestringYo‘qMumkin qiymatlar: sale, income
currency_idstringYo‘q
searchstringYo‘q

So‘rov tanasi

So‘rov tanasi talab qilinmaydi.

Javob

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

POST /price/items/get-paging ​

Price items

So‘rov tanasi

MaydonTurMajburiyTavsif
pagenumberHaStandart: 1
limitnumberHaStandart: 20
organization_idstringYo‘q
price_idstringYo‘q
product_idstringYo‘q
json
{
  "page": 1,
  "limit": 20,
  "organization_id": "string",
  "price_id": "string",
  "product_id": "string"
}

Javob

Javob tuzilishi quyidagi bilan bir xil: GET /price/get-all.

GET /price/get-by-id/{id} ​

Get a price by its _id.

Yo‘l parametrlari

ParametrTurMajburiyTavsif
idstringHa

So‘rov tanasi

So‘rov tanasi talab qilinmaydi.

Javob

MaydonTurTavsif
_idstringThe ID of the price
codestringThe code of the price
short_namestringThe short name of the price
namestringThe name of the price
currency_idstringThe currency ID of the price
statusstringThe status of the price. Mumkin qiymatlar: active, inactive
typestringThe type of the price. Mumkin qiymatlar: sale, income
updated_bystringThe ID of the user who updated the price
is_defaultbooleanWhether the price is the default price
can_be_updatedbooleanWhether the price can be updated
is_mainbooleanWhether the price is the main price
has_accessbooleanWhether the price has access
employee_idsstring[]The IDs of the employees who have access to the price
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "_id": "string",
    "code": "string",
    "short_name": "string",
    "name": "string",
    "currency_id": "string",
    "status": "active",
    "type": "sale",
    "updated_by": "string",
    "is_default": false,
    "can_be_updated": false,
    "is_main": false,
    "has_access": false,
    "employee_ids": [
      "string"
    ]
  },
  "time": "2025-05-01T12:00:00Z"
}

Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.

Bito 2.0 Integration API