Challenges
Challenges with a points reward: what is counted, goal, time window and points.
Module: Fidelizare (loyalty).
Endpoints
Section titled “Endpoints”GET /api/v1/loyalty_challenges- List with filters, sorting and pagination (scopeloyalty:read)GET /api/v1/loyalty_challenges/{id}- A record by id (scopeloyalty:read)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).name(string; read)metric(string; read)goal(number; read)days(integer; read)reward_points(integer; read)active(boolean; 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”loyalty_challenges.createdloyalty_challenges.updatedloyalty_challenges.deleted