Перейти к основному содержанию
GET
/
v1
/
crm
/
inventories
/
sets
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/inventories/sets/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "name": "<string>",
      "status": 123,
      "prices": [
        {
          "name": "<string>",
          "period_id": 123,
          "price": "<string>",
          "id": 123,
          "order": 123
        }
      ],
      "items": [
        {
          "count": 123,
          "group_id": 123,
          "group_name": "<string>",
          "group_unique_id": "<string>",
          "group_category": 123,
          "group_image": "<string>",
          "inventories_count": 0,
          "inventories_free": 0,
          "id": 123,
          "alternative": 123,
          "required": true
        }
      ],
      "deleted": true,
      "unique_id": "<string>",
      "image": "<string>",
      "category": 123,
      "price": "<string>",
      "discount": 123,
      "static": true,
      "extra": "<unknown>",
      "published": true
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

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

category
integer
category__in
integer[]

Несколько значений могут быть разделены запятыми.

disabled
boolean
end_at
string
обязательно
id
integer
id__in
integer[]

Несколько значений могут быть разделены запятыми.

ordering
string

Which field to use when ordering the results.

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

A search term.

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

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"