Перейти к основному содержанию
GET
/
v1
/
crm
/
inventories
/
{id}
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/inventories/{id}/
{
  "id": 123,
  "image": "<string>",
  "status": 0,
  "current_client": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "device_unique_id": "<string>",
  "disabled": 0,
  "car": {
    "id": 123,
    "type": "CAR",
    "brand": "<string>",
    "model": "<string>",
    "number": "<string>",
    "tech_passport": "<string>",
    "serial": "<string>",
    "vin": "<string>",
    "extra": "<unknown>"
  },
  "tarifs": [
    {
      "id": 123,
      "set_id": 123,
      "group_id": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "inventory": 123,
      "inventory_set": 123,
      "weekdays": [
        123
      ],
      "start": "<string>",
      "end": "<string>",
      "published": true,
      "order": -1,
      "name": "<string>",
      "price": "<string>",
      "tenant": 123,
      "inventory_group": 123,
      "inventory_set_price": 123,
      "time_period": 123
    }
  ],
  "unique_id": "<string>",
  "type": 0,
  "buy_price": "<string>",
  "buy_date": "2023-12-25",
  "sell_price": "<string>",
  "sell_date": "2023-11-07T05:31:56Z",
  "lifetime": -1,
  "stock_price": "<string>",
  "comment": "<string>",
  "sublease_percent": "<string>",
  "prev_earning": "<string>",
  "extra": "<unknown>",
  "deleted": true,
  "deleted_at": "2023-11-07T05:31:56Z",
  "tenant": 123,
  "category": 123,
  "group": 123,
  "rental_point": 123,
  "state": 123,
  "sublease_user": 123
}

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

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

Ответ

200 - application/json
id
integer
обязательно
image
string
обязательно
status
enum<integer>
обязательно
  • 0 - Свободно
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Сломано
  • 4 - Просрочка
  • 5 - Не активна
  • 6 - Продано
  • 7 - repair
  • 8 - written off
  • 9 - warehouse
  • 10 - Доставка
  • 11 - Доставка
Доступные опции:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
current_client
string
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
name
string
обязательно
Maximum string length: 255
device_unique_id
string | null
обязательно
disabled
  • 0 - delete
  • 1 - archive
  • 2 - withdraw
Доступные опции:
0,
1,
2
car
object
tarifs
object[]
unique_id
string | null
Maximum string length: 255
type
enum<integer>
  • 0 - Аренда
  • 1 - Продажа
Доступные опции:
0,
1
Требуемый диапазон: 0 <= x <= 32767
buy_price
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
buy_date
string<date> | null
sell_price
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
sell_date
string<date-time> | null
lifetime
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
stock_price
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
comment
string | null
Maximum string length: 1024
sublease_percent
string<decimal> | null
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
prev_earning
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
extra
any
deleted
boolean
deleted_at
string<date-time> | null
tenant
integer
category
integer | null
group
integer | null
rental_point
integer | null
state
integer | null
sublease_user
integer | null