Loyalty rewards
Completed rewards: when, until when they are valid, when and by whom they were used, or whether they were cancelled. Action: redeem. Filter with filter[card_id].
Module: Fidelizare (loyalty).
Endpoints
Section titled “Endpoints”GET /api/v1/stamp_rewards- List with filters, sorting and pagination (scopeloyalty:read)GET /api/v1/stamp_rewards/{id}- A record by id (scopeloyalty:read)POST /api/v1/stamp_rewards/{id}/redeem- Marchează premiul ca folosit, o singură dată. (scopeloyalty:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).card_id(string, uuid; read)entry_id(string, uuid; read)reward_text(string; read)stamps_used(integer; read)earned_at(string, date-time; read)expires_at(string, date-time; read)redeemed_at(string, date-time; read)redeemed_by_name(string; read)cancelled_at(string, date-time; read)updated_at(string, date-time; read): Last modification date (ISO 8601).redeemed_location_id(string, uuid; read)
Events
Section titled “Events”stamp_rewards.createdstamp_rewards.updatedstamp_rewards.deleted