Chi tiết khách hàng
Truyền đúng một trong hai: id hoặc uid. Scope yêu cầu: customer:read; agent cần quyền xem. Ngoài phạm vi dữ liệu của agent: trả 403 nếu tra theo id, 404 nếu tra theo uid; khách hàng thuộc tenant khác luôn trả 404.
Headers
X-Api-Key
Query parameters
id
ID nội bộ của khách hàng. Truyền đúng một trong id/uid.
uid
UID công khai của khách hàng. Truyền đúng một trong id/uid.
Response
Khách hàng.
id
uid
tenantId
lifecycleStages
status
fullName
phone
Có thể đã bị che.
email
Có thể đã bị che.
attributes
Khoá theo fieldCode.
assignedAgentId
createdAt
Epoch millis.
lastModifiedAt
Epoch millis.
createdBy
lastModifiedBy
createdVia
Kênh tự động đã thực hiện thao tác ghi; null nếu nhân viên thao tác trực tiếp.
lastModifiedVia
Kênh tự động đã thực hiện thao tác ghi; null nếu nhân viên thao tác trực tiếp.
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