Een kassabon voor winkels, cafés en marktkramen. Het is een smalle bon in papierstijl met de winkelgegevens, één regel voor elk artikel, de korting, belasting en het totaal, de betaling en het wisselgeld, spaarpunten en een QR-code die de digitale kwitantie opent. Download het Word-bestand om het aan te passen aan uw winkel en genereer een kwitantie voor elke verkoop.
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": {
"store_name": "Juniper & Oak Café",
"store_address": "48 Market Street, Portland, OR 97204",
"store_phone": "(503) 555-0142",
"store_website": "juniperandoak.com",
"receipt_number": "R-004871",
"receipt_date": "October 16, 2026",
"receipt_time": "9:42 AM",
"cashier": "Maya",
"register": "2",
"currency": "USD",
"payment_method": "Cash",
"payment_detail": "Paid at register 2",
"points_earned": "26",
"points_balance": "214",
"receipt_url": "https://juniperandoak.com/r/R-004871",
"thank_you_message": "Thank you, see you tomorrow!",
"return_policy": "Returns and exchanges within 7 days with this receipt.",
"items": [
{
"name": "Oat flat white",
"quantity": "2",
"unit_price": "4.20",
"amount": "8.40"
},
{
"name": "Almond croissant",
"quantity": "1",
"unit_price": "3.80",
"amount": "3.80"
},
{
"name": "Smoked salmon bagel",
"quantity": "1",
"unit_price": "8.90",
"amount": "8.90"
},
{
"name": "Cold brew",
"quantity": "1",
"unit_price": "4.50",
"amount": "4.50"
},
{
"name": "Banana bread slice",
"quantity": "1",
"unit_price": "3.20",
"amount": "3.20"
}
],
"subtotal": "28.80",
"has_discount": true,
"discount": "2.88",
"discount_label": "10% loyalty",
"tax_rate": "8%",
"tax": "2.07",
"total": "27.99",
"amount_paid": "30.00",
"has_change": true,
"change": "2.01",
"has_loyalty": true
}
}' 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": "Sales Receipt [receipt_number]",
"data": [
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004871", "receipt_date": "October 16, 2026", "receipt_time": "9:42 AM", "cashier": "Maya", "register": "2", "currency": "USD", "payment_method": "Cash", "payment_detail": "Paid at register 2", "points_earned": "26", "points_balance": "214", "receipt_url": "https://juniperandoak.com/r/R-004871", "thank_you_message": "Thank you, see you tomorrow!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Oat flat white","quantity":"2","unit_price":"4.20","amount":"8.40"},{"name":"Almond croissant","quantity":"1","unit_price":"3.80","amount":"3.80"},{"name":"Smoked salmon bagel","quantity":"1","unit_price":"8.90","amount":"8.90"},{"name":"Cold brew","quantity":"1","unit_price":"4.50","amount":"4.50"},{"name":"Banana bread slice","quantity":"1","unit_price":"3.20","amount":"3.20"}], "subtotal": "28.80", "has_discount": true, "discount": "2.88", "discount_label": "10% loyalty", "tax_rate": "8%", "tax": "2.07", "total": "27.99", "amount_paid": "30.00", "has_change": true, "change": "2.01", "has_loyalty": true },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004876", "receipt_date": "October 16, 2026", "receipt_time": "10:05 AM", "cashier": "Theo", "register": "1", "currency": "USD", "payment_method": "Visa", "payment_detail": "Card ending 4417", "points_earned": "0", "points_balance": "0", "receipt_url": "https://juniperandoak.com/r/R-004876", "thank_you_message": "Thank you, enjoy your day!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Cappuccino","quantity":"2","unit_price":"3.90","amount":"7.80"},{"name":"Pain au chocolat","quantity":"2","unit_price":"3.60","amount":"7.20"},{"name":"Greek yogurt bowl","quantity":"1","unit_price":"6.80","amount":"6.80"},{"name":"Espresso","quantity":"1","unit_price":"3.00","amount":"3.00"},{"name":"Granola cup","quantity":"1","unit_price":"5.20","amount":"5.20"}], "subtotal": "30.00", "has_discount": false, "discount": "0.00", "discount_label": "0% loyalty", "tax_rate": "8%", "tax": "2.40", "total": "32.40", "amount_paid": "32.40", "has_change": false, "change": "0.00", "has_loyalty": false },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004884", "receipt_date": "October 16, 2026", "receipt_time": "10:48 AM", "cashier": "Maya", "register": "2", "currency": "USD", "payment_method": "Cash", "payment_detail": "Paid at register 2", "points_earned": "24", "points_balance": "87", "receipt_url": "https://juniperandoak.com/r/R-004884", "thank_you_message": "Thank you, see you soon!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Avocado toast","quantity":"1","unit_price":"9.50","amount":"9.50"},{"name":"Chai latte","quantity":"1","unit_price":"4.40","amount":"4.40"},{"name":"Blueberry muffin","quantity":"2","unit_price":"3.40","amount":"6.80"},{"name":"Iced tea","quantity":"1","unit_price":"3.50","amount":"3.50"},{"name":"Chocolate chip cookie","quantity":"1","unit_price":"2.60","amount":"2.60"}], "subtotal": "26.80", "has_discount": true, "discount": "2.68", "discount_label": "10% loyalty", "tax_rate": "8%", "tax": "1.93", "total": "26.05", "amount_paid": "30.00", "has_change": true, "change": "3.95", "has_loyalty": true },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004893", "receipt_date": "October 16, 2026", "receipt_time": "11:30 AM", "cashier": "Theo", "register": "1", "currency": "USD", "payment_method": "Mastercard", "payment_detail": "Card ending 9052", "points_earned": "0", "points_balance": "0", "receipt_url": "https://juniperandoak.com/r/R-004893", "thank_you_message": "Thanks for stopping by!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Turkey club sandwich","quantity":"2","unit_price":"10.50","amount":"21.00"},{"name":"Tomato soup","quantity":"1","unit_price":"6.20","amount":"6.20"},{"name":"Sparkling water","quantity":"2","unit_price":"2.50","amount":"5.00"},{"name":"Lemon tart","quantity":"1","unit_price":"4.90","amount":"4.90"},{"name":"Cold brew","quantity":"1","unit_price":"4.50","amount":"4.50"}], "subtotal": "41.60", "has_discount": false, "discount": "0.00", "discount_label": "0% loyalty", "tax_rate": "8%", "tax": "3.33", "total": "44.93", "amount_paid": "44.93", "has_change": false, "change": "0.00", "has_loyalty": false },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004901", "receipt_date": "October 16, 2026", "receipt_time": "12:15 PM", "cashier": "Maya", "register": "2", "currency": "USD", "payment_method": "Contactless", "payment_detail": "Apple Pay", "points_earned": "34", "points_balance": "133", "receipt_url": "https://juniperandoak.com/r/R-004901", "thank_you_message": "Thank you, enjoy your lunch!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Smoked salmon bagel","quantity":"2","unit_price":"8.90","amount":"17.80"},{"name":"Matcha latte","quantity":"2","unit_price":"4.80","amount":"9.60"},{"name":"Almond croissant","quantity":"1","unit_price":"3.80","amount":"3.80"},{"name":"Espresso","quantity":"1","unit_price":"3.00","amount":"3.00"},{"name":"Banana bread slice","quantity":"1","unit_price":"3.20","amount":"3.20"}], "subtotal": "37.40", "has_discount": true, "discount": "3.74", "discount_label": "10% loyalty", "tax_rate": "8%", "tax": "2.69", "total": "36.35", "amount_paid": "36.35", "has_change": false, "change": "0.00", "has_loyalty": true },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004908", "receipt_date": "October 16, 2026", "receipt_time": "12:52 PM", "cashier": "Theo", "register": "1", "currency": "USD", "payment_method": "Cash", "payment_detail": "Paid at register 1", "points_earned": "0", "points_balance": "0", "receipt_url": "https://juniperandoak.com/r/R-004908", "thank_you_message": "Thank you, see you tomorrow!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Tomato soup","quantity":"2","unit_price":"6.20","amount":"12.40"},{"name":"Avocado toast","quantity":"1","unit_price":"9.50","amount":"9.50"},{"name":"Iced tea","quantity":"2","unit_price":"3.50","amount":"7.00"},{"name":"Granola cup","quantity":"1","unit_price":"5.20","amount":"5.20"},{"name":"Blueberry muffin","quantity":"1","unit_price":"3.40","amount":"3.40"}], "subtotal": "37.50", "has_discount": false, "discount": "0.00", "discount_label": "0% loyalty", "tax_rate": "8%", "tax": "3.00", "total": "40.50", "amount_paid": "50.00", "has_change": true, "change": "9.50", "has_loyalty": false },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004915", "receipt_date": "October 16, 2026", "receipt_time": "1:34 PM", "cashier": "Maya", "register": "2", "currency": "USD", "payment_method": "Visa", "payment_detail": "Card ending 3308", "points_earned": "25", "points_balance": "342", "receipt_url": "https://juniperandoak.com/r/R-004915", "thank_you_message": "Thank you, have a great afternoon!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Oat flat white","quantity":"1","unit_price":"4.20","amount":"4.20"},{"name":"Turkey club sandwich","quantity":"1","unit_price":"10.50","amount":"10.50"},{"name":"Lemon tart","quantity":"1","unit_price":"4.90","amount":"4.90"},{"name":"Sparkling water","quantity":"1","unit_price":"2.50","amount":"2.50"},{"name":"Chocolate chip cookie","quantity":"2","unit_price":"2.60","amount":"5.20"}], "subtotal": "27.30", "has_discount": true, "discount": "2.73", "discount_label": "10% loyalty", "tax_rate": "8%", "tax": "1.97", "total": "26.54", "amount_paid": "26.54", "has_change": false, "change": "0.00", "has_loyalty": true },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004923", "receipt_date": "October 16, 2026", "receipt_time": "2:20 PM", "cashier": "Theo", "register": "1", "currency": "USD", "payment_method": "Cash", "payment_detail": "Paid at register 1", "points_earned": "0", "points_balance": "0", "receipt_url": "https://juniperandoak.com/r/R-004923", "thank_you_message": "Thanks for stopping by!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Chai latte","quantity":"2","unit_price":"4.40","amount":"8.80"},{"name":"Pain au chocolat","quantity":"1","unit_price":"3.60","amount":"3.60"},{"name":"Banana bread slice","quantity":"1","unit_price":"3.20","amount":"3.20"},{"name":"Cold brew","quantity":"1","unit_price":"4.50","amount":"4.50"},{"name":"Espresso","quantity":"2","unit_price":"3.00","amount":"6.00"}], "subtotal": "26.10", "has_discount": false, "discount": "0.00", "discount_label": "0% loyalty", "tax_rate": "8%", "tax": "2.09", "total": "28.19", "amount_paid": "30.00", "has_change": true, "change": "1.81", "has_loyalty": false },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004931", "receipt_date": "October 16, 2026", "receipt_time": "3:05 PM", "cashier": "Maya", "register": "2", "currency": "USD", "payment_method": "Contactless", "payment_detail": "Google Pay", "points_earned": "24", "points_balance": "58", "receipt_url": "https://juniperandoak.com/r/R-004931", "thank_you_message": "Thank you, see you soon!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Cappuccino","quantity":"1","unit_price":"3.90","amount":"3.90"},{"name":"Greek yogurt bowl","quantity":"1","unit_price":"6.80","amount":"6.80"},{"name":"Matcha latte","quantity":"1","unit_price":"4.80","amount":"4.80"},{"name":"Almond croissant","quantity":"2","unit_price":"3.80","amount":"7.60"},{"name":"Blueberry muffin","quantity":"1","unit_price":"3.40","amount":"3.40"}], "subtotal": "26.50", "has_discount": true, "discount": "2.65", "discount_label": "10% loyalty", "tax_rate": "8%", "tax": "1.91", "total": "25.76", "amount_paid": "25.76", "has_change": false, "change": "0.00", "has_loyalty": true },
{ "store_name": "Juniper & Oak Café", "store_address": "48 Market Street, Portland, OR 97204", "store_phone": "(503) 555-0142", "store_website": "juniperandoak.com", "receipt_number": "R-004940", "receipt_date": "October 16, 2026", "receipt_time": "4:12 PM", "cashier": "Theo", "register": "1", "currency": "USD", "payment_method": "Mastercard", "payment_detail": "Card ending 6127", "points_earned": "0", "points_balance": "0", "receipt_url": "https://juniperandoak.com/r/R-004940", "thank_you_message": "Thank you, enjoy your evening!", "return_policy": "Returns and exchanges within 7 days with this receipt.", "items": [{"name":"Smoked salmon bagel","quantity":"1","unit_price":"8.90","amount":"8.90"},{"name":"Avocado toast","quantity":"1","unit_price":"9.50","amount":"9.50"},{"name":"Oat flat white","quantity":"2","unit_price":"4.20","amount":"8.40"},{"name":"Iced tea","quantity":"1","unit_price":"3.50","amount":"3.50"},{"name":"Lemon tart","quantity":"1","unit_price":"4.90","amount":"4.90"}], "subtotal": "35.20", "has_discount": false, "discount": "0.00", "discount_label": "0% loyalty", "tax_rate": "8%", "tax": "2.82", "total": "38.02", "amount_paid": "38.02", "has_change": false, "change": "0.00", "has_loyalty": false }
]
}' Veelgestelde vragen over onze kwitantiesjablonen
Ga aan de slag met 20 gratis documenten per maand en onze kant-en-klare kwitantiesjablonen.