Ticket Actor Messages
A Ticket message is a method that modifies instances of a Ticket type. To message a Ticket, send a POST request with a valid JSON body to the path /resources/actors/custom/ticket/<TICKET ID>. {ticketId} is new when creating a new instance.
Valid messages for Ticket actors include:
| applyCommands | Applies a list of commands to a Ticket. You can send in several commands in one request for [batch processing](/resources/actors/#:~:text=Commands%20are%20always%20processed). However, if one command fails, the entire message fails. |
| complete | Completes a ticket |
| create | Creates a new Ticket. |
| query | Queries the ticket from the graph. |
| reject | Closes a Ticket and marks it as `rejected`. It also updates its `closedAt` property. |
Every message response contains a Ticket's access URIs, which include:
- Default GUID
- Ticket Number
- External Reference, if available
Therefore, you can also message a Ticket with its ticketNumber and externalReference using /resources/actors/custom/ticket/{ticketType}/<TICKET NUMBER OR EXTERNAL REFERENCE>
In addition, Ticket actors support previewing messages and sending multiple messages at once.
A general template for sending a Ticket message is:
[{
"type": "<MESSAGE TYPE>",
"body": {
}
}]Ensure you send a valid JSON body and use the correct access URI to avoid common errors.