JSON ข้อความ · Message objectflexlay-payment-tax-invoice-issued.json
{
"type": "flex",
"altText": "ออกใบกำกับภาษีเลขที่ TI-2569-01288 ยอดรวม ฿10,700.00 แล้ว",
"contents": {
"type": "bubble",
"size": "mega",
"body": {
"type": "box",
"layout": "vertical",
"paddingAll": "xl",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ใบกำกับภาษี / ใบเสร็จรับเงิน",
"flex": 1,
"wrap": true,
"color": "#111827",
"weight": "bold"
},
{
"type": "box",
"layout": "vertical",
"flex": 0,
"paddingEnd": "8px",
"paddingTop": "2px",
"cornerRadius": "xl",
"paddingStart": "8px",
"paddingBottom": "2px",
"backgroundColor": "#DCFCE7",
"contents": [
{
"type": "text",
"size": "xxs",
"text": "ออกแล้ว",
"align": "center",
"color": "#166534",
"weight": "bold"
}
]
}
]
},
{
"type": "text",
"size": "xs",
"text": "เลขที่ TI-2569-01288 · 15 ธ.ค. 2569",
"color": "#5F6673",
"margin": "xs"
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"paddingAll": "md",
"cornerRadius": "md",
"backgroundColor": "#F8FAFC",
"contents": [
{
"type": "text",
"size": "xxs",
"text": "ผู้ซื้อ",
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "บริษัท ตัวอย่างการค้า จำกัด",
"wrap": true,
"color": "#111827",
"weight": "bold"
},
{
"type": "text",
"size": "xs",
"text": "เลขประจำตัวผู้เสียภาษี 0105569000000",
"wrap": true,
"color": "#374151"
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"spacing": "sm",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "มูลค่าสินค้า/บริการ",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "฿10,000.00",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ภาษีมูลค่าเพิ่ม 7%",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "฿700.00",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "separator",
"color": "#EEF0F3",
"margin": "sm"
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ยอดรวมทั้งสิ้น",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "฿10,700.00",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827",
"weight": "bold"
}
]
}
]
}
]
},
"footer": {
"type": "box",
"layout": "vertical",
"paddingAll": "lg",
"paddingTop": "none",
"contents": [
{
"type": "button",
"color": "#111827",
"style": "primary",
"height": "sm",
"action": {
"type": "uri",
"uri": "https://example.com/tax-invoice/TI-2569-01288.pdf",
"label": "ดาวน์โหลด PDF"
}
}
]
}
}
}