Перейти к основному содержанию
PUT
/
v1
/
crm
/
integrations
/
wazzup
/
triggers
/
{id}
cURL
curl --request PUT \
  --url https://api.example.com/v1/crm/integrations/wazzup/triggers/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "documents": [
    123
  ],
  "type": 0,
  "order_status_from": "exceed",
  "order_status_to": "exceed",
  "order_payment_status_from": 0,
  "order_payment_status_to": 0,
  "sale_status_from": 0,
  "sale_status_to": 0,
  "delivery_type": 0,
  "delivery_status": 0,
  "text": "<string>",
  "order": -1,
  "template_id": "<string>",
  "template_keys": [
    "<string>"
  ],
  "timeout": "<string>"
}
'
{
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "tenant": 123,
  "documents": [
    123
  ],
  "type": 0,
  "order_status_from": "exceed",
  "order_status_to": "exceed",
  "order_payment_status_from": 0,
  "order_payment_status_to": 0,
  "sale_status_from": 0,
  "sale_status_to": 0,
  "delivery_type": 0,
  "delivery_status": 0,
  "text": "<string>",
  "order": -1,
  "template_id": "<string>",
  "template_keys": [
    "<string>"
  ],
  "timeout": "<string>"
}

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

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

Тело

documents
integer[]
type
enum<integer>
  • 0 - order
  • 1 - order payment
  • 2 - sale
  • 3 - delivery
Доступные опции:
0,
1,
2,
3
Требуемый диапазон: -2147483648 <= x <= 2147483647
order_status_from
  • exceed - exceed
  • request - Запрос
  • reserve - reserve
  • inrent - В аренде
  • cancel - cancel
  • completed - Завершено
  • debtor - Должник
Доступные опции:
exceed,
request,
reserve,
inrent,
cancel,
completed,
debtor
order_status_to
  • exceed - exceed
  • request - Запрос
  • reserve - reserve
  • inrent - В аренде
  • cancel - cancel
  • completed - Завершено
  • debtor - Должник
Доступные опции:
exceed,
request,
reserve,
inrent,
cancel,
completed,
debtor
order_payment_status_from
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
order_payment_status_to
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
sale_status_from
  • 0 - черновик
  • 1 - Продано
  • 2 - cancelled
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
sale_status_to
  • 0 - черновик
  • 1 - Продано
  • 2 - cancelled
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
delivery_type
  • 0 - DELIVERY
  • 1 - PICK_UP
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
delivery_status
  • 0 - PENDING
  • 1 - IN_PROGRESS
  • 2 - DONE
  • 3 - CANCEL
Доступные опции:
0,
1,
2,
3
Требуемый диапазон: -32768 <= x <= 32767
text
string | null
order
integer
Требуемый диапазон: -2147483648 <= x <= 2147483647
template_id
string | null
Maximum string length: 255
template_keys
string[] | null
Maximum string length: 255
timeout
string

Ответ

200 - application/json
id
integer
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
tenant
integer
обязательно
documents
integer[]
type
enum<integer>
  • 0 - order
  • 1 - order payment
  • 2 - sale
  • 3 - delivery
Доступные опции:
0,
1,
2,
3
Требуемый диапазон: -2147483648 <= x <= 2147483647
order_status_from
  • exceed - exceed
  • request - Запрос
  • reserve - reserve
  • inrent - В аренде
  • cancel - cancel
  • completed - Завершено
  • debtor - Должник
Доступные опции:
exceed,
request,
reserve,
inrent,
cancel,
completed,
debtor
order_status_to
  • exceed - exceed
  • request - Запрос
  • reserve - reserve
  • inrent - В аренде
  • cancel - cancel
  • completed - Завершено
  • debtor - Должник
Доступные опции:
exceed,
request,
reserve,
inrent,
cancel,
completed,
debtor
order_payment_status_from
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
order_payment_status_to
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
sale_status_from
  • 0 - черновик
  • 1 - Продано
  • 2 - cancelled
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
sale_status_to
  • 0 - черновик
  • 1 - Продано
  • 2 - cancelled
Доступные опции:
0,
1,
2
Требуемый диапазон: -32768 <= x <= 32767
delivery_type
  • 0 - DELIVERY
  • 1 - PICK_UP
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
delivery_status
  • 0 - PENDING
  • 1 - IN_PROGRESS
  • 2 - DONE
  • 3 - CANCEL
Доступные опции:
0,
1,
2,
3
Требуемый диапазон: -32768 <= x <= 32767
text
string | null
order
integer
Требуемый диапазон: -2147483648 <= x <= 2147483647
template_id
string | null
Maximum string length: 255
template_keys
string[] | null
Maximum string length: 255
timeout
string