Merge tickets
Merge one ticket into another.
POST https://cotlet.dev/api/v1/gorgias/into-tickets/{into_ticket_id}/tickets/{ticket_id}/merge
write Confirm
Uses Merge ticket in the app. When the two tickets differ, you choose which Subject, Assignee and Customer to keep; the call takes these from keep_from. Gorgias limits merging of two chat tickets to the same customer. A merge is not undone with one call. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| ticket_id integer required | integer | Ticket to merge away. |
| into_ticket_id integer required | integer | Ticket to keep. |
| keep_from enum | enum | source or target: which ticket supplies Subject, Assignee and Customer. Default: target. |
Request
curl -X POST https://cotlet.dev/api/v1/gorgias/into-tickets/1/tickets/1/merge \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("gorgias", "merge_tickets", {"ticket_id":1,"into_ticket_id":1}) const result = await cotlet.call('gorgias', 'merge_tickets', {"ticket_id":1,"into_ticket_id":1}); cotlet call gorgias merge_tickets --data '{"ticket_id":1,"into_ticket_id":1}' Example response
{
"kept_ticket_id": 10311,
"merged_ticket_id": 10482,
"subject": "Wrong size",
"keep_from": "target"
}