Перейти к основному содержанию
GET
/
v1
/
crm
/
clients
/
{client_id}
/
popular_product
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/clients/{client_id}/popular_product/
{
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "deleted": true,
  "category": 123,
  "unit_price": "<string>",
  "unit_count": "<string>",
  "unit_type": "litre",
  "unit_sum": "<string>",
  "image": "<string>",
  "unique_id": "<string>",
  "barcode": "<string>",
  "extra": "<unknown>",
  "filters": [
    "<string>"
  ],
  "points": [
    -1
  ],
  "published": true,
  "type": 0,
  "price": "<string>",
  "lifetime": -1
}

Параметры пути

client_id
integer
обязательно

Ответ

200 - application/json
id
integer
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
name
string | null
Maximum string length: 512
deleted
boolean
category
integer | null
unit_price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
unit_count
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
unit_type
enum<string>
  • litre - Litre
  • kg - Kilogram
  • g - Gram
  • ml - Millilitre
  • piece - Piece
  • m3 - Cubic Meter
Доступные опции:
litre,
kg,
g,
ml,
piece,
m3
unit_sum
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
image
string<uri> | null
unique_id
string | null
Maximum string length: 255
barcode
string | null
Maximum string length: 255
extra
any
filters
string[] | null
Maximum string length: 32
points
integer[]
Требуемый диапазон: -2147483648 <= x <= 2147483647
published
boolean
type
enum<integer>
  • 0 - Аренда
  • 1 - Продажа
Доступные опции:
0,
1
Требуемый диапазон: 0 <= x <= 32767
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
lifetime
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647