پشتیبانی | مرجع API
← همهٔ بخشهای مرجع · آدرس پایه: https://trendism.ir/api/v3
GET /tickets
تیکتهای پشتیبانی
Your support tickets, latest activity first
دسترسی لازم: support
| نام | نوع | توضیح |
|---|---|---|
limit (query) | integer | 1–100, default 25 |
cursor (query) | string | The next_cursor of the previous page (opaque) |
| نام | نوع | توضیح |
|---|---|---|
object * | string (list) | |
data * | Ticket[] | |
next_cursor * | string | null |
POST /tickets
ثبت تیکت
Open a ticket
دسترسی لازم: support
| نام | نوع | توضیح |
|---|---|---|
Idempotency-Key (header) | string | A unique string (for example a UUID). Replays the stored response for 24 hours. |
| نام | نوع | توضیح |
|---|---|---|
subject * | string | |
body * | string | |
category | string (general | order | payment | api | account | other) | |
order_id | integer (int64) | An order of yours this is about |
| نام | نوع | توضیح |
|---|---|---|
object * | string (ticket_detail) | |
ticket * | Ticket | |
messages * | TicketMessage[] |
GET /tickets/{id}
جزئیات تیکت
A ticket with its messages
دسترسی لازم: support
| نام | نوع | توضیح |
|---|---|---|
id (path) * | integer (int64) |
| نام | نوع | توضیح |
|---|---|---|
object * | string (ticket_detail) | |
ticket * | Ticket | |
messages * | TicketMessage[] |
POST /tickets/{id}/messages
پاسخ به تیکت
Reply to a ticket (reopens it)
دسترسی لازم: support
| نام | نوع | توضیح |
|---|---|---|
id (path) * | integer (int64) | |
Idempotency-Key (header) | string | A unique string (for example a UUID). Replays the stored response for 24 hours. |
| نام | نوع | توضیح |
|---|---|---|
body * | string |
| نام | نوع | توضیح |
|---|---|---|
object * | string (ticket_message) | |
id * | integer (int64) | |
author * | string (user | staff | system) | |
body * | string | |
created_at * | string (date-time) |