บัญชี — ตั๋วซัพพอร์ต
Support Center ของ dealer (/support) แสดงรายการตั๋ว สร้างคำขอใหม่ เปิด thread (View) และ reply integrator ใช้ upstream เดียวกันด้วย access_token ของผู้ใช้
ใส่ โดเมนลงทะเบียน ในทุก form — ไม่ใช่ hostname ของ API
Playground & Profile
Playground — Home feed → แพลตฟอร์ม → ตั๋วซัพพอร์ต เมื่อรัน npm run docs:stack Profile → Account โหลด preview รายการตั๋วได้เมื่อลงชื่อเข้าใช้แล้ว
รหัสตั๋วสาธารณะ
ใช้ ticket_id_base (รูปแบบ SUP-YYYYMMDD-…) สำหรับ detail และ reply ตรงกับ ticket_id_hash จาก create และ ticket.id_base ใน detail — ไม่ใช่ ticket.id ตัวเลขภายใน
List tickets
POST https://api.gommo.net/api/apps/go-mmo/support/myTickets
Content-Type: application/x-www-form-urlencoded
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
access_token | ใช่ | โทเคนเซสชันผู้ใช้ |
domain | ใช่ | โดเมนลงทะเบียน |
language | ไม่บังคับ | เช่น EN, TH |
device_id, device_name, device_info | ไม่บังคับ | เหมือนตอน login |
รายการว่าง:
{ "data": [], "runtime": 0.02 }เมื่อมีแถว data เป็นสรุป — เรียก detail เพื่อดู thread เต็ม
Create ticket
POST https://api.gommo.net/api/apps/go-mmo/support/create
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
subject | ใช่ | หัวข้อ |
issue_type | ใช่ | จาก capture: bug |
description | ใช่ | ข้อความเริ่มต้น |
access_token, domain | ใช่ | |
language, device_* | ไม่บังคับ |
สำเร็จ:
{ "ticket_id_hash": "SUP-20260925-7022", "runtime": 0.03 }ใช้ ticket_id_hash เป็น ticket_id_base สำหรับ detail/reply
Detail (View)
POST https://api.gommo.net/api/apps/go-mmo/support/detail
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
ticket_id_base | ใช่ | เช่น SUP-20260925-7022 |
access_token, domain | ใช่ | |
language, device_* | ไม่บังคับ |
Response มี ticket, messages[], attachments[], runtime
Reply
POST https://api.gommo.net/api/apps/go-mmo/support/reply
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
ticket_id_base | ใช่ | เหมือน detail |
content | ใช่ | ข้อความตอบ |
access_token, domain | ใช่ | |
language, device_* | ไม่บังคับ |
สำเร็จ: { "success": true, "runtime": … } — เรียก detail อีกครั้งเพื่อดูข้อความใหม่
Mode B (gateway ทางเลือก)
| การทำงาน | Gateway (Bearer + JSON) | Upstream |
|---|---|---|
| List | POST {gateway}/gateway/support/tickets | …/support/myTickets |
| Create | POST {gateway}/gateway/support/tickets/create | …/support/create |
| Detail | POST {gateway}/gateway/support/tickets/detail | …/support/detail |
| Reply | POST {gateway}/gateway/support/tickets/reply | …/support/reply |
OpenAPI: openapi.yaml SDK: @ai-gateway/client — ดู SDK authentication
→ โปรแกรมพาร์ทเนอร์ · Creator Rewards · อุปกรณ์เซสชัน · เปลี่ยนรหัสผ่าน · Endpoint map · Deploy → Self-host (advanced)
