Перейти к основному содержанию
GET
/
v1
/
crm
/
requests
/
schedule
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/requests/schedule/
[
  {
    "id": 123,
    "client": {
      "id": 123,
      "name": "<string>",
      "agreement_id": "<string>",
      "phone": "<string>",
      "type": 0,
      "avatar": "<string>",
      "signed": true,
      "sign_date": "2023-12-25",
      "sign_expires": "2023-12-25",
      "email": "jsmith@example.com",
      "legal_type": 0,
      "extra": "<unknown>"
    },
    "rent_start": "2023-11-07T05:31:56Z",
    "rent_end": "2023-11-07T05:31:56Z",
    "status_color": "exceed",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "status": 0,
    "rent_fact_start": "2023-11-07T05:31:56Z",
    "rent_fact_end": "2023-11-07T05:31:56Z",
    "price": "<string>",
    "price_discount": "<string>",
    "price_inventory": "<string>",
    "price_service": "<string>",
    "discount_amount": "<string>",
    "discount_inventory_amount": "<string>",
    "discount_service_amount": "<string>",
    "payment_status": 0,
    "paid_amount": "<string>",
    "time_exceed": true,
    "penalty_amount": "<string>",
    "rental_point": 123,
    "deleted": true,
    "plus_id": 0,
    "extra": "<unknown>",
    "autorenewal": true
  }
]

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

autorenewal
boolean
deleted
boolean
end_at
string<date>
обязательно
payment_status
enum<integer>
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
payment_status__in
integer[]

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

A search term.

start_at
string<date>
обязательно
status
enum<integer>
  • 0 - Запрос
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Отменено
  • 4 - Завершено
  • 5 - Должник
Доступные опции:
0,
1,
2,
3,
4,
5
status__in
integer[]

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

time_exceed
boolean

Ответ

200 - application/json
id
integer
обязательно
client
object
обязательно
rent_start
string<date-time>
обязательно
rent_end
string<date-time>
обязательно
status_color
enum<string>
обязательно
  • exceed - exceed
  • request - Запрос
  • reserve - reserve
  • inrent - В аренде
  • cancel - cancel
  • completed - Завершено
  • debtor - Должник
Доступные опции:
exceed,
request,
reserve,
inrent,
cancel,
completed,
debtor
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
status
enum<integer>
  • 0 - Запрос
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Отменено
  • 4 - Завершено
  • 5 - Должник
Доступные опции:
0,
1,
2,
3,
4,
5
Требуемый диапазон: 0 <= x <= 32767
rent_fact_start
string<date-time> | null
rent_fact_end
string<date-time> | null
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_inventory
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_service
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_inventory_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_service_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
payment_status
enum<integer>
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
Требуемый диапазон: 0 <= x <= 32767
paid_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
time_exceed
boolean
penalty_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
rental_point
integer | null
deleted
boolean
plus_id
integer<int64> | null
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
extra
any
autorenewal
boolean