Stamp card programs
The cards offered to customers: how many stamps a reward needs, per tap and per day limits, expiry terms. A card with customers cannot be deleted, only turned off (is_active).
Module: Fidelizare (loyalty).
Endpoints
Section titled “Endpoints”GET /api/v1/stamp_programs- List with filters, sorting and pagination (scopeloyalty:read)GET /api/v1/stamp_programs/{id}- A record by id (scopeloyalty:read)POST /api/v1/stamp_programs- Create a record (scopeloyalty:write)PATCH /api/v1/stamp_programs/{id}- Modify the submitted fields (scopeloyalty:write)DELETE /api/v1/stamp_programs/{id}- Delete or deactivate (scopeloyalty:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).name(string; write, required)description(string; write)unit(string; write)stamps_required(number; write, required)reward_text(string; write, required)stamp_idle_days(number; write)reward_valid_days(number; write)max_per_action(number; write)max_per_day(number; write)is_active(boolean; write): Whether the record is active.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).location_ids(array; write)referral_referrer_stamps(number; write)referral_friend_stamps(number; write)referral_monthly_limit(number; write)referral_referrer_points(number; write)referral_friend_points(number; write)
Events
Section titled “Events”stamp_programs.createdstamp_programs.updatedstamp_programs.deleted