OVIRO LogoOVIRO
CRMGiao dịch trừ điểm

Cập nhật giao dịch trừ điểm

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

Endpoint

PUT /v1/loyaltypointredeems/:id

Quyền: customerpoint.manage

Path Parameters

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

Body Parameters

TênKiểuBắt buộcMô tả
creator_idintID người thực hiện
external_idstringMã tham chiếu ngoài hệ thống
notestringGhi chú

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

Response Schema

HTTP 200 - JSON Object

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

Error Codes

HTTPCodeMô tả
404error_not_foundKhông tìm thấy giao dịch
422error_creator_id_requiredThiếu ID người thực hiện
422error_external_id_invalidexternal_id không hợp lệ
422error_note_invalidnote 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