บัญชี — โปรแกรมพาร์ทเนอร์
หน้า Partner Program (affiliate) โหลด rank กฎ showcase และสถานะ application ส่งฟอร์ม Join ด้วย action_type=apply
ใช้ registration domain ในทุก form — ไม่ใช่ hostname API
Playground & Profile
Playground — Home feed → แพลตฟอร์ม → โปรแกรมพาร์ทเนอร์ เมื่อรัน npm run docs:stack Profile → Account โหลด preview status ได้เมื่อลงชื่อเข้าใช้
สถานะใบสมัคร
ใช้ application?.status (เช่น pending) มากกว่า can_join เมื่อ UI แสดง “รอตรวจ”
ขอบเขต integrator
ในขอบเขตแอปของคุณ: โหลด landing (action_type=status) และส่งฟอร์ม Join (action_type=apply) แสดง application?.status (เช่น pending) บน UI
นอกขอบเขต: การอนุมัติ/ปฏิเสธ ลิงก์แนะนำ แดชบอร์ดค่าคอม การจ่าย — เป็นงาน dealer/operator ไม่ใช่ API ที่ integrator ควบคุม อย่าสมมติ action_type หรือ endpoint เพิ่มจนกว่าจะมี capture/spec ชัดเจน
Status (landing)
POST https://api.gommo.net/api/apps/go-mmo/users/partner_program
Content-Type: application/x-www-form-urlencoded
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
access_token | ใช่ | โทเคนเซสชัน |
domain | ใช่ | Registration domain |
action_type | ใช่ | status |
lang | ไม่บังคับ | เช่น en |
language | ไม่บังคับ | เช่น EN, VI |
device_* | ไม่บังคับ | เหมือน login |
Apply (ฟอร์ม Join)
URL เดียวกัน action_type=apply
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
bank_name, account_name, account_number | ใช่ | |
bank_extra | ไม่บังคับ | |
contact, email, reason | ใช่ | |
accept_rules | ใช่ | ต้อง 1 |
Mode B (gateway ทางเลือก)
| การทำงาน | Gateway (Bearer + JSON) | Upstream |
|---|---|---|
| Status | POST {gateway}/gateway/partner-program { "action_type": "status" } | …/users/partner_program |
| Apply | path เดียวกัน { "action_type": "apply", … } | เดียวกัน |
OpenAPI: openapi.yaml
SDK: @ai-gateway/client — auth.getPartnerProgramStatus(), applyPartnerProgram() ดู SDK authentication
→ Creator Rewards · ตั๋วซัพพอร์ต · อุปกรณ์เซสชัน · เปลี่ยนรหัสผ่าน · Endpoint map · Deploy → Self-host (advanced)
