JSON ข้อความ · Message objectflexlay-crm-referral-invite.json
{
"type": "flex",
"altText": "ชวนเพื่อนด้วยโค้ด MANEE2569 รับคนละ 200 คะแนน",
"contents": {
"type": "bubble",
"size": "kilo",
"body": {
"type": "box",
"layout": "vertical",
"paddingAll": "xl",
"contents": [
{
"type": "text",
"size": "lg",
"text": "ชวนเพื่อน รับคนละ 200 คะแนน",
"wrap": true,
"color": "#111827",
"weight": "bold"
},
{
"type": "text",
"size": "sm",
"text": "เมื่อเพื่อนสมัครสมาชิกและซื้อครั้งแรกขั้นต่ำ ฿300",
"wrap": true,
"color": "#5F6673",
"margin": "sm"
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"paddingAll": "lg",
"borderColor": "#BFDBFE",
"borderWidth": "1px",
"cornerRadius": "md",
"backgroundColor": "#EFF6FF",
"contents": [
{
"type": "text",
"size": "xs",
"text": "โค้ดของคุณ",
"align": "center",
"color": "#5F6673"
},
{
"type": "text",
"size": "xxl",
"text": "MANEE2569",
"align": "center",
"color": "#2563EB",
"margin": "xs",
"weight": "bold"
}
]
},
{
"type": "box",
"layout": "horizontal",
"margin": "lg",
"contents": [
{
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"size": "xs",
"text": "คุณได้รับ",
"align": "center",
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "200 คะแนน",
"align": "center",
"color": "#111827",
"weight": "bold"
}
]
},
{
"type": "separator",
"color": "#EEF0F3"
},
{
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"size": "xs",
"text": "เพื่อนได้รับ",
"align": "center",
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "200 คะแนน",
"align": "center",
"color": "#111827",
"weight": "bold"
}
]
}
]
}
]
},
"footer": {
"type": "box",
"layout": "vertical",
"spacing": "sm",
"paddingAll": "lg",
"paddingTop": "none",
"contents": [
{
"type": "button",
"color": "#2563EB",
"style": "primary",
"height": "sm",
"action": {
"type": "clipboard",
"label": "คัดลอกโค้ด",
"clipboardText": "MANEE2569"
}
},
{
"type": "button",
"color": "#2563EB",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"uri": "https://example.com/referral/terms",
"label": "อ่านเงื่อนไข"
}
}
]
}
}
}