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).
Endpoints
Section titled “Endpoints”GET /api/v1/message_lists- List with filters, sorting and pagination (scopeparties:read)GET /api/v1/message_lists/{id}- A record by id (scopeparties:read)POST /api/v1/message_lists- Create a record (scopeparties:write)PATCH /api/v1/message_lists/{id}- Modify the submitted fields (scopeparties:write)DELETE /api/v1/message_lists/{id}- Delete or deactivate (scopeparties:write)POST /api/v1/message_lists/{id}/add_member- Adaugă clientul în segment, peste reguli.statusspune dacă primește mesaje (included) sau de ce nu. (scopeparties:write)POST /api/v1/message_lists/{id}/remove_member- Scoate clientul din segment, chiar dacă regulile îl prind. (scopeparties:write)POST /api/v1/message_lists/{id}/reset_member- Uită alegerea făcută de mână pentru client: rămân doar regulile. (scopeparties:write)
Fields
Section titled “Fields”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).