เมื่อ Privilege Code หนึ่งถูก Redeem ระบบจะทำงานดังต่อไปนี้
- ในส่วนของ Code นั้นๆ admin/privilegecode/details/?id=
- Redeemed By จะถูกเติมด้วยข้อมูล Email User ที่ Redeem ไป
- Redeemed At จะถูกใส่ข้อมูลวันที่ที่ทำการ Redeem
- Updated At จะเปลี่ยนเป็นวันที่เดียวกันกับ Redeemed At
- User จะถูกเพิ่มเข้าไปใน Customer Group ของ Privilege นั้น ๆ
- 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"
}