Customer loyalty cards
A customer card on a program, with the name and contact given at sign-up. The balance is the sum of stamp_entries. Get the secret link with the link action. Actions: stamp, link, new_link. Filter with filter[program_id] or filter[party_id].
Module: Fidelizare (loyalty).
Endpoints
Section titled “Endpoints”GET /api/v1/stamp_cards- List with filters, sorting and pagination (scopeloyalty:read)GET /api/v1/stamp_cards/{id}- A record by id (scopeloyalty:read)POST /api/v1/stamp_cards- Create a record (scopeloyalty:write)PATCH /api/v1/stamp_cards/{id}- Modify the submitted fields (scopeloyalty:write)POST /api/v1/stamp_cards/{id}/stamp- Pune ștampile pe card. Aceeașikeytrimisă din nou nu adaugă a doua oară. Întoarceaddedși câte premii s-au completat (rewards). (scopeloyalty:write)POST /api/v1/stamp_cards/{id}/link- Întoarce linkul secret al cardului, de trimis clientului. (scopeloyalty:write)POST /api/v1/stamp_cards/{id}/referral_link- Întoarce linkul de recomandare al clientului;urle gol când programul nu are „adu un prieten”. (scopeloyalty:write)POST /api/v1/stamp_cards/{id}/new_link- Schimbă linkul cardului: cel vechi nu mai merge. (scopeloyalty:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).program_id(string; write, required)party_id(string; write)holder_name(string; read)phone(string; write)email(string; write)contact_verified_at(string, date-time; read)status(string; write)source(string; read)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).referral_code(string; write)name(string; write)
Events
Section titled “Events”stamp_cards.createdstamp_cards.updatedstamp_cards.deleted