Een kortingscoupon met een groot aanbod, een beschrijving, een optioneel minimumbedrag, de couponcode met een barcode voor gebruik in de winkel, de vervaldatum, de voorwaarden en de stappen om hem in te wisselen. Aanbiedingen die alleen online gelden laten de barcode weg. Download het Word-bestand om het aan te passen aan uw merk en genereer een coupon voor elke campagne.
Upload het sjabloon en stuur daarna de gestructureerde data om het voltooide document te ontvangen. Vervang YOUR_API_KEY door uw unieke sleutel en YOUR_TEMPLATE_ID door de ID van uw sjabloon.
Stuur een array van JSON-objecten en ontvang één document per object in een ZIP-archief. Gebruik de parameter output_name om elke bestandsnaam te bepalen met de merge-tags van uw sjabloon.
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": {
"brand_name": "Urban Roast",
"discount_value": "25% OFF",
"offer_title": "Your next coffee order",
"offer_detail": "Take 25% off any drink or pastry order, from the first cup to the last crumb.",
"has_min_spend": true,
"min_spend": "15.00",
"currency": "USD",
"in_store": true,
"coupon_code": "WELCOME25",
"expiry_date": "December 31, 2026",
"terms": [
"One use per customer.",
"Cannot be combined with other offers.",
"Not valid on gift cards."
],
"steps": [
"Add your items to the cart, or tell the cashier you have a coupon.",
"Enter the code at checkout, or show the barcode.",
"Enjoy your discount."
]
}
}' 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": "Discount Coupon [coupon_code]",
"data": [
{ "brand_name": "Urban Roast", "discount_value": "25% OFF", "offer_title": "Your next coffee order", "offer_detail": "Take 25% off any drink or pastry order, from the first cup to the last crumb.", "has_min_spend": true, "min_spend": "15.00", "currency": "USD", "in_store": true, "coupon_code": "WELCOME25", "expiry_date": "December 31, 2026", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "$5 OFF", "offer_title": "Your next food order", "offer_detail": "Take $5 off any food order, from breakfast bowls to lunch sandwiches.", "has_min_spend": true, "min_spend": "20.00", "currency": "USD", "in_store": true, "coupon_code": "FOOD5", "expiry_date": "January 31, 2027", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "BUY 1 GET 1", "offer_title": "A free pastry with any coffee", "offer_detail": "Buy any coffee and get a pastry of your choice free.", "has_min_spend": false, "min_spend": "", "currency": "USD", "in_store": true, "coupon_code": "PASTRY1", "expiry_date": "November 30, 2026", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "15% OFF", "offer_title": "Your first online order", "offer_detail": "Take 15% off your first order in our online shop, from beans to brewing gear.", "has_min_spend": true, "min_spend": "25.00", "currency": "USD", "in_store": false, "coupon_code": "FIRSTBEANS15", "expiry_date": "December 31, 2026", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "30% OFF", "offer_title": "Whole bean coffee bags", "offer_detail": "Take 30% off any 1 kg bag of whole bean coffee, in store.", "has_min_spend": false, "min_spend": "", "currency": "USD", "in_store": true, "coupon_code": "BEANS30", "expiry_date": "December 15, 2026", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "FREE SHIPPING", "offer_title": "On online orders", "offer_detail": "Free delivery on any online order of coffee beans, anywhere in the US.", "has_min_spend": true, "min_spend": "35.00", "currency": "USD", "in_store": false, "coupon_code": "SHIPFREE", "expiry_date": "January 15, 2027", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "$10 OFF", "offer_title": "Your next group order", "offer_detail": "Take $10 off orders of 6 or more drinks for your team.", "has_min_spend": true, "min_spend": "30.00", "currency": "USD", "in_store": true, "coupon_code": "TEAM10", "expiry_date": "February 28, 2027", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "20% OFF", "offer_title": "A coffee subscription", "offer_detail": "Take 20% off the first three months of any coffee subscription.", "has_min_spend": false, "min_spend": "", "currency": "USD", "in_store": false, "coupon_code": "SUBSCRIBE20", "expiry_date": "March 31, 2027", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "SIZE UPGRADE", "offer_title": "On any hot drink", "offer_detail": "Upgrade any hot drink to the next size at no cost.", "has_min_spend": false, "min_spend": "", "currency": "USD", "in_store": true, "coupon_code": "UPSIZE", "expiry_date": "December 20, 2026", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] },
{ "brand_name": "Urban Roast", "discount_value": "10% OFF", "offer_title": "Your birthday week", "offer_detail": "Show this coupon during your birthday week and take 10% off your order.", "has_min_spend": false, "min_spend": "", "currency": "USD", "in_store": true, "coupon_code": "BDAY10", "expiry_date": "December 31, 2027", "terms": ["One use per customer.","Cannot be combined with other offers.","Not valid on gift cards."], "steps": ["Add your items to the cart, or tell the cashier you have a coupon.","Enter the code at checkout, or show the barcode.","Enjoy your discount."] }
]
}' Veelgestelde vragen over onze waardebonsjablonen
Ga aan de slag met 20 gratis documenten per maand en onze kant-en-klare waardebonsjablonen.