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

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

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

Параметры запроса

end_at
string
обязательно
start_at
string
обязательно

Ответ

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