Points accounts
Customers in the points programme; one account per customer. The balance is the sum of points_entries. A customer joins with the loyalty.join_points command.
Module: Fidelizare (loyalty).
Endpoints
Section titled “Endpoints”GET /api/v1/points_accounts- List with filters, sorting and pagination (scopeloyalty:read)GET /api/v1/points_accounts/{id}- A record by id (scopeloyalty:read)POST /api/v1/points_accounts/{id}/adjust- Corecție de puncte (cu minus pentru scădere), mereu cu motiv. (scopeloyalty:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).party_id(string, uuid; read)source(string; read)joined_by_name(string; read)created_by(string; read)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).
Events
Section titled “Events”points_accounts.createdpoints_accounts.updatedpoints_accounts.deleted