support

POST /v1/tickets

Open a support ticket.

Dhammaan support bixiyayaasha

Xaqiijinta aqoonsiga

U dir furaha API ah calaamad dusha ah (bearer token). Furaha waa inuu wataa ruqadda tickets.reply; furaha aan wadan waxaa loo diidayaa 403, ee ma aha 404.

Meesha aqoonsiga ururkaagu galayo

Boggan waxaa uu qaataa org_id oo ah goob ku jirta JSON body.

Aqoonsiga ururkaagu wuxuu ku yaallaa shaashada furayaasha API ee dashboard-kaaga, oo ku xiga furaha laftiisa. Waa isku aqoonsi wicitaan kasta oo aad sameyso.

Isku day

Ku beddel wax kasta oo ku dhex jira qeebaha xaglaha ah qiimayaashaada, sidoo kalena haystaaha furaha ku beddel fure ka dhex muuqda dashboordigaaga.

curl -X POST https://api.zinndigital.com/v1/tickets \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "subject": <string>, "body": <string> }'

Ma sign-garaysay? Qalabka API ee ku jira dashboard-kaagu wuxuu buuxiyaa aqoonsigaaga ururka ee dhabta ah iyo furahaaga gaarka ah, wuxuuna ku shaqeysiiyaa codsiga API-ga nool si aad u aragto jawaabta dhabta ah. Kani ka fur barta kontoroolka ee API

Faahfaahin

Opens a ticket in `open` with the supplied `body` as its first message, and publishes `ticket.created` (which sends the customer a localized acknowledgement via the notification consumer). `channel` is server-decided — it is not accepted from the client. A supplied `site_id` or `invoice_id` must belong to the same org or the request is a `404`. Requires `tickets.reply`.

Codsiga jidhkiisa

MagacaNoocLoo baahan yahayMaxay tahay
subjectstringHaa
bodystringHaaThe customer's description — becomes the first message in the thread.
priorityTicketPriorityMayaHow urgent the ticket is. The customer may propose one; staff decide.
site_idstringMayaThe site this is about. Must belong to the same org or the request is a 404.
invoice_idstringMayaThe invoice this is about. Must belong to the same org or the request is a 404.
org_idstringMayaThe organization to open it in. Required only when the caller holds `tickets.reply` in more than one org.
on_behalf_of_org_idstringMayaThe client org this is about — a reseller escalating to Zinn® on their client's behalf. Must be a **descendant** of the ticket's org or the request is a `404`; your client never…

Jawaab

MagacaNoocLoo baahan yahayMaxay tahay
idUuidHaaUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidHaaUUIDv7 identifier — sortable by creation time (docs/02 §8).
subjectstringHaa
statusTicketStatusHaaWhere a ticket sits in its lifecycle. `open` = waiting on us; `pending` = waiting on the customer; `solved` = we believe it is resolved and a customer reply reopens it; `closed`…
priorityTicketPriorityHaaHow urgent the ticket is. The customer may propose one; staff decide.
channelstringHaaHow the ticket reached us — `dashboard`, `api` or `staff`. Server-decided; an open string so a future channel is additive on both sides.
site_idobjectMaya
invoice_idobjectMaya
on_behalf_of_org_idobjectMayaThe **client org** a reseller opened this ticket about. Null on every ordinary ticket. ⛔ Validated as a descendant of the ticket's own org and `404`d otherwise, so it can never…
assignee_nameobjectHaaThe owning agent's display name (first name), or null while unassigned. The customer sees a **name** so they know a person owns their ticket; the agent's id and email are staff-…
first_response_atobjectMaya
resolved_atobjectMaya
closed_atobjectMaya
last_message_atobjectMaya
reopened_countintegerHaa
message_countintegerHaaCustomer-visible messages in the thread — internal notes are not counted.
created_atstringHaa
updated_atstringHaa
messagesTicketMessage[]HaaThe customer-visible thread in chronological order.

Cilladaha ay bartaani soo celin karto

401 · 403 · 404 · 422 · 429