OVIRO LogoOVIRO
CRMGiao dịch cộng điểm

Cập nhật giao dịch cộng điểm

Cập nhật thông tin phụ của giao dịch cộng điểm.

Endpoint

PUT /v1/loyaltypointearns/:id

Quyền: customerpoint.manage

Path Parameters

TênKiểuBắt buộcMô tả
idintID giao dịch cộng điểm

Body Parameters

TênKiểuBắt buộcMô tả
company_idintID công ty
creator_idintID người thực hiện
external_idstringMã tham chiếu ngoài hệ thống
notestringGhi chú
dataobjectDữ liệu mở rộng (JSON)

Lưu ý: API chỉ cho phép cập nhật các trường phụ (external_id, note, data). Các trường nghiệp vụ như customer_id, points_earned, type, source_id không thể thay đổi qua API này.

Response Schema

HTTP 200 - JSON Object

Trả về object LoyaltyPointEarn đã cập nhật.

Error Codes

HTTPCodeMô tả
404error_not_foundKhông tìm thấy giao dịch
422error_company_id_requiredID công ty không hợp lệ
422error_user_id_notfoundID người thực hiện không hợp lệ
500error_editLỗi khi cập nhật

On this page