Skip to content

Communication lists

Saved lists and segments (kind segment, params: match all or any, and rules). Sent through /messages/list; the count comes from the messaging.segment_count command. With the Loyalty module, rule fields include stamp_card (has, has_not; value = program id), stamps_left (lte), stamp_reward (yes, no), reward_expiring (within, days), last_stamp (older_than, within, days) and referrals (gte, lte); for points points_member (yes, no), points_balance (gte, lte) and points_expiring (within, days).

Module: Clients (parties).

  • GET /api/v1/message_lists - List with filters, sorting and pagination (scope parties:read)
  • GET /api/v1/message_lists/{id} - A record by id (scope parties:read)
  • POST /api/v1/message_lists - Create a record (scope parties:write)
  • PATCH /api/v1/message_lists/{id} - Modify the submitted fields (scope parties:write)
  • DELETE /api/v1/message_lists/{id} - Delete or deactivate (scope parties:write)
  • POST /api/v1/message_lists/{id}/add_member - Adaugă clientul în segment, peste reguli. status spune dacă primește mesaje (included) sau de ce nu. (scope parties:write)
  • POST /api/v1/message_lists/{id}/remove_member - Scoate clientul din segment, chiar dacă regulile îl prind. (scope parties:write)
  • POST /api/v1/message_lists/{id}/reset_member - Uită alegerea făcută de mână pentru client: rămân doar regulile. (scope parties:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • name (string; write, required)
  • kind (string; write, required)
  • params (string; write)
  • created_at (string, date-time; read): Creation date (ISO 8601).