Send a digital receipt after an in-store purchase with the total and a link to the full invoice. Payment confirmation template for retail.
Share of submissions of this template that Meta approved.
✳Approval tip
Only send it to customers who gave their number at checkout and agreed to receive receipts. Keep marketing out of it.
Thanks for shopping at {{store_name}}, {{first_name}}. We received your payment of {{amount}} on {{date}}. Your receipt is ready below.{{store_name}}Acme Store{{first_name}}Maria{{amount}}$49.90{{date}}March 14{{order_id}}4512</>For developers
The template as JSON for @talqui-oss/template-builder, and the Cloud API request that creates it. Replace the $ variables with your account values.
retail_purchase_receipt.json
{
"name": "retail_purchase_receipt",
"language": "en_US",
"category": "UTILITY",
"body": {
"text": "Thanks for shopping at {{store_name}}, {{first_name}}. We received your payment of {{amount}} on {{date}}. Your receipt is ready below."
},
"buttons": [
{
"type": "URL",
"text": "View receipt",
"url": "https://acme.com/receipts/{{order_id}}"
}
],
"variables": {
"store_name": {
"example": "Acme Store"
},
"first_name": {
"example": "Maria"
},
"amount": {
"example": "$49.90"
},
"date": {
"example": "March 14"
},
"order_id": {
"example": "4512"
}
}
}Create with the Meta Cloud API
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "retail_purchase_receipt",
"language": "en_US",
"category": "UTILITY",
"parameter_format": "NAMED",
"components": [
{
"type": "BODY",
"text": "Thanks for shopping at {{store_name}}, {{first_name}}. We received your payment of {{amount}} on {{date}}. Your receipt is ready below.",
"example": {
"body_text_named_params": [
{
"param_name": "store_name",
"example": "Acme Store"
},
{
"param_name": "first_name",
"example": "Maria"
},
{
"param_name": "amount",
"example": "$49.90"
},
{
"param_name": "date",
"example": "March 14"
}
]
}
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "URL",
"text": "View receipt",
"url": "https://acme.com/receipts/{{1}}",
"example": [
"https://acme.com/receipts/4512"
]
}
]
}
]
}'+Related