Skip to navigation

Gán quy trình chăm sóc cho khách hàng

Scope yêu cầu: customer:write. Agent cần quyền sửa (crm.customer → edit) và khách hàng phải nằm trong phạm vi sửa của agent. Cùng cấu trúc body tạo mới với /customer-workflows của web app (customerId, workflowId, statusId… bắt buộc như trên web), dùng workflowId/statusId lấy từ Danh sách quy trình. Gửi kèm id → 400. Field lạ → 400 CUSTOMER_WORKFLOW_FIELD_UNKNOWN.

Headers

X-Api-KeystringRequired

Request

This endpoint expects an object.
customerIdstringRequiredformat: "^[0-9A-Z]{11}$"
workflowIdstringRequired

Xem GET /workflows.

statusIdstringRequired

Một id trạng thái thuộc quy trình đó.

titlestringOptional
notestringOptional
prioritystringOptional
startAtlong or nullOptional
dueAtlong or nullOptional

Response

{id, success} — id của bản ghi quy trình chăm sóc vừa gán.

idstringOptional
successbooleanOptional
accessTokenstringOptional

Chỉ có ở lượt đánh giá mở link.

expiresAtlongOptional

Chỉ có ở lượt đánh giá mở link.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
502
Bad Gateway Error
503
Service Unavailable Error