Skip to content

Instantly share code, notes, and snippets.

@ralphilius
Created October 19, 2018 08:26
Show Gist options
  • Save ralphilius/07717bf260d332e10b81c08749250117 to your computer and use it in GitHub Desktop.
Save ralphilius/07717bf260d332e10b81c08749250117 to your computer and use it in GitHub Desktop.
{
"messages": [
{
"attachment": {
"type": "template",
"payload": {
"template_type": "receipt",
"sharable": true,
"recipient_name": "Mark Zuckerberg",
"merchant_name": "Gomi Beauty Shop",
"order_number": "12345678901",
"currency": "VND",
"payment_method": "Cash on Delivery",
"order_url": "https://rockets.chatfuel.com/store?order_id=12345678901",
"timestamp": "1428444666",
"address": {
"street_1": "19 Ho Van Hue, Phu Nhuan District",
"street_2": "",
"city": "Ho Chi Minh City",
"postal_code": "94025",
"state": "Ho Chi Minh City",
"country": "VN"
},
"summary": {
"subtotal": 53000,
"shipping_cost": 11000,
"total_tax": 10,
"total_cost": 64000
},
"elements": [
{
"title": "Mặt Nạ Tinh Chất Vàng 24K - SIGNATURE PREMIUM GOLD AMPOULE MASK",
"quantity": 1,
"price": 53000,
"currency": "VND",
"image_url": "https://d3a0f2zusjbf7r.cloudfront.net/992/1536290435380.jpg"
}
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment