Thông báo cập nhật danh mục master
POST/v1/webhooks/gom/master-changed
Gửi thông báo khi một bản ghi danh mục master đã thay đổi.
Body bắt buộc: entity, id.
Tùy chọn: code (có thể null hoặc bỏ qua).
entity hợp lệ (chữ thường, kebab-case):
customers, routes, customer-warehouses, reason-cancels,
vessels, vessel-schedules, ports, out-operate-staffs,
packing-plans, company-branches.
Giá trị entity khác → HTTP 400.
TMS ACK nhanh; đồng bộ master diễn ra sau (pull), không trả dữ liệu master trong response.
Request
Responses
- 200
- 400
- 401
- 500
Đã nhận thông báo (ACK). Đồng bộ master có thể chạy bất đồng bộ sau ACK.
Body không hợp lệ (thiếu/sai entity hoặc id, entity ngoài enum, …)
Lỗi xác thực (HTTP 401)
Lỗi hệ thống