Privilege

การทำงานของระบบเมื่อ Code ถูก Redeem

อัปเดตล่าสุด: 18/03/2026 14:47 น.

เมื่อ Privilege Code หนึ่งถูก Redeem ระบบจะทำงานดังต่อไปนี้

  1. ในส่วนของ Code นั้นๆ admin/privilegecode/details/?id= 
    1. Redeemed By จะถูกเติมด้วยข้อมูล Email User ที่ Redeem ไป
    2. Redeemed At จะถูกใส่ข้อมูลวันที่ที่ทำการ Redeem
    3. Updated At จะเปลี่ยนเป็นวันที่เดียวกันกับ Redeemed At
  2. User จะถูกเพิ่มเข้าไปใน Customer Group ของ Privilege นั้น ๆ
  3. Payment Method จะถูกสร้างขึ้นมาตาม Privilege Program ที่สร้างขึ้น โดยแต่ละรูปแบบจะต่างกันที่ Attributes

{
 "expires_at": "2025-08-31T16:59:59.000Z",
 "wallet_icon": "https://sharge.s3.ap-southeast-1.amazonaws.com/privileges/drivewithfriend2025/welcome+msg_BYD+campaign_2_0.jpg",
 "wallet_name": "Drive with a Friend, Drive BYD",
 "wallet_image": "https://sharge.s3.ap-southeast-1.amazonaws.com/privileges/drivewithfriend2025/welcome+msg_BYD+campaign_1_0.jpg",
 "activation_code": "U09SEK"
}