Перейти к основному содержанию
POST
/
v1
/
crm
/
requests
/
{request_id}
/
action
cURL
curl --request POST \
  --url https://api.example.com/v1/crm/requests/{request_id}/action/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": 0,
  "order_inventories": [
    123
  ],
  "action": 0,
  "datetime": "2023-11-07T05:31:56Z"
}
'
{
  "status": 0,
  "order_inventories": [
    123
  ],
  "action": 0,
  "datetime": "2023-11-07T05:31:56Z"
}

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

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

Тело

status
enum<integer>
обязательно
  • 0 - Запрос
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Отменено
  • 4 - Завершено
  • 5 - Должник
Доступные опции:
0,
1,
2,
3,
4,
5
order_inventories
integer[]
action
enum<integer>
  • 0 - reservation
  • 1 - issue
  • 2 - receivement
  • 3 - cancel
  • 4 - archive
  • 5 - collect
  • 6 - creation
  • 7 - delivery pickup
  • 8 - delivery issue
Доступные опции:
0,
1,
2,
3,
4,
5,
6,
7,
8
datetime
string<date-time> | null

Ответ

201 - application/json
status
enum<integer>
обязательно
  • 0 - Запрос
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Отменено
  • 4 - Завершено
  • 5 - Должник
Доступные опции:
0,
1,
2,
3,
4,
5
order_inventories
integer[]
action
enum<integer>
  • 0 - reservation
  • 1 - issue
  • 2 - receivement
  • 3 - cancel
  • 4 - archive
  • 5 - collect
  • 6 - creation
  • 7 - delivery pickup
  • 8 - delivery issue
Доступные опции:
0,
1,
2,
3,
4,
5,
6,
7,
8
datetime
string<date-time> | null