Skip to content

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).

  • GET /api/v1/stamp_cards - List with filters, sorting and pagination (scope loyalty:read)
  • GET /api/v1/stamp_cards/{id} - A record by id (scope loyalty:read)
  • POST /api/v1/stamp_cards - Create a record (scope loyalty:write)
  • PATCH /api/v1/stamp_cards/{id} - Modify the submitted fields (scope loyalty:write)
  • POST /api/v1/stamp_cards/{id}/stamp - Pune ștampile pe card. Aceeași key trimisă din nou nu adaugă a doua oară. Întoarce added și câte premii s-au completat (rewards). (scope loyalty:write)
  • POST /api/v1/stamp_cards/{id}/link - Întoarce linkul secret al cardului, de trimis clientului. (scope loyalty:write)
  • POST /api/v1/stamp_cards/{id}/referral_link - Întoarce linkul de recomandare al clientului; url e gol când programul nu are „adu un prieten”. (scope loyalty:write)
  • POST /api/v1/stamp_cards/{id}/new_link - Schimbă linkul cardului: cel vechi nu mai merge. (scope loyalty:write)
  • 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)
  • stamp_cards.created
  • stamp_cards.updated
  • stamp_cards.deleted