บัญชี — Creator Rewards
โปรแกรม Creator Rewards โหลด landing (action_type=status), pool สาธารณะ / leaderboard (action_type=pool) และรับใบสมัคร Join ด้วย action_type=apply UX ทั่วไปใช้ payout_pref=credit; cash ต้องมีข้อมูลธนาคาร
ใช้ registration domain ในทุก form — ไม่ใช่ hostname API
Playground & Profile
Playground — Home feed → แพลตฟอร์ม → Creator Rewards เมื่อรัน npm run docs:stack Profile → Account โหลด preview status ได้เมื่อลงชื่อเข้าใช้
สถานะใบสมัคร
ใช้ program.application?.status (เช่น pending) มากกว่า can_join เมื่อ UI แสดง “รอตรวจ”
ขอบเขต integrator
ในขอบเขตแอป: landing (status), แสดง pool (pool), ส่ง Join (apply + payout_pref=credit) แสดง program.application?.status
นอกขอบเขต: การอนุมัติ แดชบอร์ดหลังอนุมัติ submit โพสต์ ช่องทาง ปิดรอบเดือน — ยังไม่มีเอกสาร integrator อย่าสมมติ action_type เพิ่ม
Status (landing)
POST https://api.gommo.net/api/apps/go-mmo/users/creator_rewards
Content-Type: application/x-www-form-urlencoded
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
access_token, domain | ใช่ | |
action_type | ใช่ | status |
language, device_* | ไม่บังคับ |
Pool
URL เดียวกัน action_type=pool — มักมี pool (total_earned, top[], …)
Apply (Join)
URL เดียวกัน action_type=apply
| Field | จำเป็น | หมายเหตุ |
|---|---|---|
payout_pref | ใช่ | credit หรือ cash |
contact, email, reason | ใช่ | |
accept_rules | ใช่ | 1 |
bank_* | cash | เมื่อ payout_pref=cash |
Mode B (gateway ทางเลือก)
POST {gateway}/gateway/creator-rewards + JSON action_type → upstream …/users/creator_rewards
SDK: getCreatorRewardsStatus(), getCreatorRewardsPool(), applyCreatorRewards() ดู SDK authentication
→ โปรแกรมพาร์ทเนอร์ · ตั๋วซัพพอร์ต · Endpoint map · Deploy → Self-host (advanced)
