before a message is sent, please check if an open ticket is already engaged with the user or store; if they have an open ticket, new messages can be sent under the ticket ID; otherwise, if no ticket is open for the user, a new ticket can be created and then send new messages under the returned ticket ID;since a store or user can only be engaged in an open ticket, you should check if they already have an open ticket; if they do not have such, you can create one;get current open ticket#
use get open ticket to get the current open ticket the user or store is engaged in:create an open ticket#
if the user or the store has no open ticket, then it is necessary to create one, by calling create ticket;send message#
when you create a new ticket or get the current open ticket for a user or store, either way, you should have a ticket ID, this will be used to send new messages under the ticket, through send message;get messages#
to get messages under a ticket, you can use get messages depending on the user or store; Modified at 2025-10-02 06:58:26