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

Danh sách giao dịch cộng điểm

Lấy danh sách giao dịch cộng điểm tích lũy của khách hàng.

Endpoint

GET /v1/loyaltypointearns

Quyền: customerpoint.view

Query Parameters

TênKiểuBắt buộcMô tả
customer_idintLọc theo ID khách hàng
typeintLọc theo phân loại (xem constants)
modeintLọc theo cách tạo (xem constants)
source_idintLọc theo ID nguồn (ví dụ: ID đơn hàng)
pageintTrang hiện tại (mặc định 1)
limitintSố bản ghi mỗi trang (mặc định 20)
sort_bystringSắp xếp theo: id, date_created, date_modified. Mặc định: id
sort_typestringKiểu sắp xếp: ASC, DESC. Mặc định: DESC

Lưu ý: Danh sách luôn được lọc theo company_id của phiên đăng nhập hiện tại.

Response Schema

HTTP 200 - JSON Object

TrườngKiểuMô tả
totalintTổng số bản ghi
currentpageintTrang hiện tại
limitintSố bản ghi mỗi trang
itemsarrayMảng LoyaltyPointEarn Object

Mỗi item trong mảng items là một LoyaltyPointEarn Object, có bổ sung trường enrich_customer_full_name.

Error Codes

HTTPCodeMô tả
403error_forbiddenKhông có quyền truy cập

On this page