A loyalty reward card for coffee shops, salons, bakeries and other small businesses. It prints at actual size as a stamp card with ten circles that fill in as the customer earns stamps, the progress, the reward, the member name, the card number and the expiry date, with a banner when the card is full. Download the Word file to match your offer, then generate a card for every member.
Upload the voucher template, then send the structured data to get the finished document. Replace YOUR_API_KEY with your unique key and YOUR_TEMPLATE_ID with the ID of your template.
Send an array of JSON objects and get one document for each object, returned in a ZIP archive. Use the output_name parameter to customize each filename with the merge tags from your template.
Upload an Excel spreadsheet and every row becomes a document, with the column headers matching your merge tags. Use the sheet parameter to read a specific sheet from the Excel file.
curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "YOUR_TEMPLATE_ID",
"output_format": ".pdf",
"data": {
"Shop Name": "Brewhaus Coffee",
"Shop Address": "28 Market Square, Portland, OR 97204",
"Stamps Needed": "10",
"Stamps Needed Minus One": "9",
"Reward": "a free drink",
"Stamps": "6",
"Row 1 Done": "● ● ● ● ●",
"Row 1 Left": "",
"Row 2 Done": "●",
"Row 2 Left": " ○ ○ ○ ○",
"Reward Ready": false,
"Member Name": "Emily Carter",
"Card Number": "BH-70400",
"Expiry": "Dec 31, 2028",
"Last Visit": "Jun 3, 2027"
}
}' curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "YOUR_TEMPLATE_ID",
"output_format": ".pdf",
"single_file": false,
"output_name": "Loyalty Card [Card Number]",
"data": [
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "6", "Row 1 Done": "● ● ● ● ●", "Row 1 Left": "", "Row 2 Done": "●", "Row 2 Left": " ○ ○ ○ ○", "Reward Ready": false, "Member Name": "Emily Carter", "Card Number": "BH-70400", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 3, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "10", "Row 1 Done": "● ● ● ● ●", "Row 1 Left": "", "Row 2 Done": "● ● ● ● ●", "Row 2 Left": "", "Reward Ready": true, "Member Name": "Jonas Weber", "Card Number": "BH-70429", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 5, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "3", "Row 1 Done": "● ● ●", "Row 1 Left": " ○ ○", "Row 2 Done": "", "Row 2 Left": "○ ○ ○ ○ ○", "Reward Ready": false, "Member Name": "Priya Raman", "Card Number": "BH-70458", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 7, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "8", "Row 1 Done": "● ● ● ● ●", "Row 1 Left": "", "Row 2 Done": "● ● ●", "Row 2 Left": " ○ ○", "Reward Ready": false, "Member Name": "Daniel Okafor", "Card Number": "BH-70487", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 9, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "1", "Row 1 Done": "●", "Row 1 Left": " ○ ○ ○ ○", "Row 2 Done": "", "Row 2 Left": "○ ○ ○ ○ ○", "Reward Ready": false, "Member Name": "Sofia Martinez", "Card Number": "BH-70516", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 11, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "10", "Row 1 Done": "● ● ● ● ●", "Row 1 Left": "", "Row 2 Done": "● ● ● ● ●", "Row 2 Left": "", "Reward Ready": true, "Member Name": "Liam Chen", "Card Number": "BH-70545", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 13, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "5", "Row 1 Done": "● ● ● ● ●", "Row 1 Left": "", "Row 2 Done": "", "Row 2 Left": "○ ○ ○ ○ ○", "Reward Ready": false, "Member Name": "Mia Nakamura", "Card Number": "BH-70574", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 15, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "9", "Row 1 Done": "● ● ● ● ●", "Row 1 Left": "", "Row 2 Done": "● ● ● ●", "Row 2 Left": " ○", "Reward Ready": false, "Member Name": "Noah Kowalski", "Card Number": "BH-70603", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 17, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "4", "Row 1 Done": "● ● ● ●", "Row 1 Left": " ○", "Row 2 Done": "", "Row 2 Left": "○ ○ ○ ○ ○", "Reward Ready": false, "Member Name": "Ava Thompson", "Card Number": "BH-70632", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 19, 2027" },
{ "Shop Name": "Brewhaus Coffee", "Shop Address": "28 Market Square, Portland, OR 97204", "Stamps Needed": "10", "Stamps Needed Minus One": "9", "Reward": "a free drink", "Stamps": "7", "Row 1 Done": "● ● ● ● ●", "Row 1 Left": "", "Row 2 Done": "● ●", "Row 2 Left": " ○ ○ ○", "Reward Ready": false, "Member Name": "Lucas Moreau", "Card Number": "BH-70661", "Expiry": "Dec 31, 2028", "Last Visit": "Jun 21, 2027" }
]
}' curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: multipart/form-data' \
-F 'template_id=YOUR_TEMPLATE_ID' \
-F 'file=@Loyalty Reward Card Batch.xlsx' \
-F 'output_format=.pdf' \
-F 'single_file=false' \
-F 'output_name=Loyalty Card [Card Number]' Questions frequently asked about our voucher templates
Get started with 20 free documents per month and our ready-to-use voucher templates.