Support tickets
Raise and follow the support tickets your brand sees in the dashboard Dispute Tracker. Reads need the opt-in tickets:read scope. Writes need the separate opt-in tickets:write scope, which does not include reads.
Find a ticket
Page through GET /v1/tickets (scope tickets:read), newest first. Filter by status (Raised, Under Review, Action Required, Resolved or Closed) and by a creation window of at most 92 days: created_from is inclusive and created_to exclusive. Ticket ids are DV ids, never helpdesk ids.
Every ticket carries a sync_state. It is synced once the support desk has the ticket and everything that goes with it (the files, the AWB disputes, the notification), and pending until then. It is failed when the background sync gave up or the support desk never took the ticket, which also covers a ticket raised before the sync existed that has no support desk record; contact support with the ticket_id. A ticket whose support desk entry does not exist yet cannot be updated, replied to or closed (409 conflict), and its AWB disputes are not open.
On a billing ticket, dispute_counts says how many of its AWB disputes finance has decided: decided of total, with open, waiting_for_finalization (open, waiting for the courier invoice to be finalized) and withdrawn (not counted in total). It is null on any other ticket.
Read a ticket and its messages
GET /v1/tickets/{ticket_id} (scope tickets:read) returns the description, who raised it, the AWBs it names, the names of the files attached when it was raised and, on a billing ticket, each AWB dispute with its status. Read a dispute's amount and decision with billing.disputes.get under billing:read, using its dispute_id.
GET /v1/tickets/{ticket_id}/threads (scope tickets:read) pages the ticket's activity, newest first. The opening description is on the ticket, not repeated here. direction is outbound for your brand and inbound for the support team. Attachments are listed by file name; download them from the dashboard.
Another brand's ticket returns 404, exactly like a missing one.
Choose a category
GET /v1/tickets/categories (scope tickets:read) lists each category with its subcategories and the fields each subcategory asks for, with their requirement. Use it to pick the category and fill the fields when you raise a ticket.
Raise a ticket
- Read
GET /v1/tickets/categories(scopetickets:read) and pick acategory_idand one of itssubcategory_idvalues. - Fill
required_fieldswith a value for each field the subcategory lists. A field whoserequirementisrequiredmust be filled, or the request returns422. Use the fieldnameexactly as listed. - Send
POST /v1/tickets(scopetickets:write).
{
"subject": "Weight dispute on SYN00004242",
"category_id": 7,
"subcategory_id": 47,
"description": "The courier charged for 1.5 kg; the parcel weighs 0.5 kg.",
"required_fields": { "AWB Number": "SYN00004242, SYN00004243" }
}
The response is 201 with the ticket, as GET /v1/tickets/{ticket_id} returns it, plus attachments_pending and pending. A billing ticket opens an AWB dispute for each valid AWB it names, either in a field or in an attached file named AWBs Details (.csv or .xlsx). Text is sent to support as plain text, so markup is not rendered.
Attach files
Add up to five attachments, each with a filename, a content_type and the file as content_base64. Accepted types are PDF, PNG, JPEG, CSV, plain text, XLSX and XLS. The size limit is on the files together and depends on the surface:
| Surface | Files per request | File bytes in total |
|---|---|---|
/v1 | 5 | 5 MiB |
| MCP and code mode | 5 | 32 KiB |
Base64 makes the encoded text a third larger than the limit. Over MCP, raise a ticket with the details in text and add larger files through /v1 or the dashboard. A refused file is rejected before the support desk is called.
Update, reply and close
PATCH /v1/tickets/{ticket_id}(scopetickets:write) changes thedescription, replaces the field values or attaches files.required_fieldsreplaces the stored values, so send every field you want to keep. A billing ticket opens a dispute for each newly named valid AWB.POST /v1/tickets/{ticket_id}/replies(scopetickets:write) posts a message that your brand reads back in the ticket's threads, newest first.POST /v1/tickets/{ticket_id}/close(scopetickets:write) closes the ticket. Its open AWB disputes are withdrawn first; disputes already decided keep their outcome.
{ "content": "Attached is the weighbridge slip.", "attachments": [] }
Each write returns the ticket, or for a reply the new thread message. A ticket that has not yet reached the support desk answers 409 conflict; retry after a moment with the same Message-Id.
When the support desk does not confirm
The ticket is saved before the support desk is called, so a slow or failed answer never loses it. Whatever the request has no time for is finished in the background, so you never send it again.
201withpending. The support desk has the ticket.pendinglists what the background sync still has to do (attachments,awb_disputes,notification), andattachments_pendingnames the files not yet at the support desk. Both are empty when everything is done.sync_stateissyncedwhen it is.202withsync_state: "pending". The ticket is saved with itsticket_id, but the support desk has not confirmed it. It may still arrive, and the background sync settles it: it looks for the ticket at the support desk before it ever creates one. Read it withGET /v1/tickets/{ticket_id}and do not raise it again. Sending the sameMessage-Idreturns this answer.pendingstarts withsupport_deskuntil the ticket is there.failed. If the background sync gives up (the support desk keeps refusing the ticket, or never took it),sync_stateisfailed. Contact support with theticket_id.- A file the support desk refuses. It is dropped from
attachments_pendingand never sent again; the rest of the ticket carries on. Send it again withPATCH /v1/tickets/{ticket_id}if it matters. 422ticket-rejected. The support desk refused the ticket and nothing was saved. Fix the request and send it again with a newMessage-Id; the sameMessage-Idreplays this answer.503support-desk-unavailable. The support desk could not take the ticket for now, and nothing was saved. Wait forRetry-Afterseconds and send the same request again with the sameMessage-Id: a503is not stored, so the retry runs.
Retry safely
Send a unique Message-Id with every ticket write, and reuse it, with the same body, when you retry after a timeout. A completed request replays its first answer with Message-Id-Replayed: true instead of raising a second ticket or posting a second reply. See Retries and pagination for the full rules.
Through MCP
tickets.create, tickets.update, tickets.reply and tickets.close need tickets:write, and tickets.categories needs tickets:read. Each write takes an operation_id, which is its idempotency key, and asks you to review the exact change and confirm before it reaches support. Approval applies only to the category, subject, AWBs and attachments shown.
The receipt of a write says what happened:
| Receipt | Meaning | What to do |
|---|---|---|
completed | The change reached support. | Read it with tickets.get. |
completed with pending and attachments_pending | The ticket reached support. The files, AWB disputes or notification named here are finished in the background. Both are always present, and empty when nothing is left. | Read it with tickets.get; sync_state becomes synced when they are done. |
pending with an unknown effect | The support desk may or may not have the ticket, or the request ran out of time. The receipt names the saved ticket_id whenever the ticket was saved. | Read it with tickets.get; never rerun the same operation_id. The background sync settles it. |
failed with rejected_before_effects | Support refused it and nothing was saved. | Fix the input and retry under a new operation_id. |
unattempted with support-desk-unavailable | Support could not take it for now and nothing was saved. | Rerun the same operation_id and step_id shortly. |