Un bon spa pour les spas, les salons et les studios de bien-être. Il s’imprime à taille réelle avec le soin en grands caractères italiques, la durée et la valeur, une courte liste de ce qui est inclus, un message personnel facultatif et un talon avec le QR code, le code du bon et la date d’expiration, suivis de trois soins complémentaires, de trois codes promo pour les prochaines visites et des conditions, pour remplir la page. Téléchargez le fichier Word pour l’adapter à votre carte de soins, puis générez un bon pour chaque cadeau vendu.
Importez le modèle, puis envoyez les données structurées pour générer votre bon. Remplacez YOUR_API_KEY par votre clé unique et YOUR_TEMPLATE_ID par l'ID de votre modèle.
Envoyez un tableau d'objets JSON et recevez un document par objet, dans une archive ZIP. Utilisez le paramètre output_name pour nommer chaque fichier avec les balises de fusion de votre modèle.
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": {
"addon_1_name": "Hot stone upgrade",
"addon_1_detail": "Warm basalt stones on your back and shoulders for the last 20 minutes.",
"addon_1_price": "35",
"addon_2_name": "Aromatherapy oils",
"addon_2_detail": "Choose lavender, eucalyptus or citrus for your treatment.",
"addon_2_price": "15",
"addon_3_name": "Scalp massage",
"addon_3_detail": "A 15-minute scalp and neck massage with warm oil.",
"addon_3_price": "25",
"coupon_1_offer": "10% off your next visit",
"coupon_1_code": "RETURN1-2700",
"coupon_1_note": "On any treatment of 60 minutes or more",
"coupon_2_offer": "Free hot towel upgrade",
"coupon_2_code": "RETURN2-2700",
"coupon_2_note": "With any massage booked for yourself",
"coupon_3_offer": "Bring a friend, save 15%",
"coupon_3_code": "RETURN3-2700",
"coupon_3_note": "Valid for a friend’s first treatment",
"spa_name": "Willow and Stone Spa",
"spa_address": "14 Harbor Lane, Portland, ME 04101",
"booking_phone": "(207) 555-0138",
"treatment": "Signature massage",
"duration": "90 minutes",
"value": "165",
"includes": [
"A full-body massage with warm oils",
"Aromatherapy and a hot towel finish",
"Herbal tea in the quiet room"
],
"recipient": "Emily Carter",
"message": true,
"message_text": "Happy anniversary. Relax and enjoy.",
"sender": "Daniel",
"voucher_code": "WS-2700-K7QX2",
"expiry": "Jan 15, 2028",
"terms": [
"Please book at least 48 hours ahead and show this voucher on arrival.",
"The voucher can be used once and is not refundable or exchangeable for cash.",
"Late arrivals may have a shorter treatment. Please arrive 15 minutes early."
]
}
}' 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": "Spa Voucher [voucher_code]",
"data": [
{ "addon_1_name": "Hot stone upgrade", "addon_1_detail": "Warm basalt stones on your back and shoulders for the last 20 minutes.", "addon_1_price": "35", "addon_2_name": "Aromatherapy oils", "addon_2_detail": "Choose lavender, eucalyptus or citrus for your treatment.", "addon_2_price": "15", "addon_3_name": "Scalp massage", "addon_3_detail": "A 15-minute scalp and neck massage with warm oil.", "addon_3_price": "25", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-2700", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-2700", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-2700", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Signature massage", "duration": "90 minutes", "value": "165", "includes": ["A full-body massage with warm oils","Aromatherapy and a hot towel finish","Herbal tea in the quiet room"], "recipient": "Emily Carter", "message": true, "message_text": "Happy anniversary. Relax and enjoy.", "sender": "Daniel", "voucher_code": "WS-2700-K7QX2", "expiry": "Jan 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Eye and lip treatment", "addon_1_detail": "A cooling mask for the delicate skin around the eyes and lips.", "addon_1_price": "28", "addon_2_name": "Hand and arm massage", "addon_2_detail": "A 15-minute massage with a rich shea butter cream.", "addon_2_price": "22", "addon_3_name": "LED light therapy", "addon_3_detail": "A calming 15-minute light session after your facial.", "addon_3_price": "30", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-2761", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-2761", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-2761", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Renewing facial", "duration": "60 minutes", "value": "120", "includes": ["Deep cleansing and gentle exfoliation","A hydrating mask and neck massage","Complimentary skin consultation"], "recipient": "Jonas Weber", "message": false, "message_text": "Thank you for everything this year.", "sender": "Daniel", "voucher_code": "WS-2761-7QX2M", "expiry": "Feb 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Sauna and steam", "addon_1_detail": "Two hours in the sauna and steam room before your visit.", "addon_1_price": "25", "addon_2_name": "Champagne and fruit", "addon_2_detail": "A glass of sparkling wine and a fruit plate in the quiet room.", "addon_2_price": "30", "addon_3_name": "Foot ritual", "addon_3_detail": "A warm foot soak and a 20-minute foot massage.", "addon_3_price": "32", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-2822", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-2822", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-2822", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Couples retreat", "duration": "2 hours", "value": "340", "includes": ["Side-by-side massages for two","A private soaking tub with flowers","Sparkling cider and chocolates"], "recipient": "Priya Raman", "message": true, "message_text": "You deserve a day off.", "sender": "Sofia", "voucher_code": "WS-2822-QX2M9", "expiry": "Mar 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Paraffin hand dip", "addon_1_detail": "A warm paraffin treatment that softens hands and nails.", "addon_1_price": "18", "addon_2_name": "Detox tea set", "addon_2_detail": "A pot of herbal tea and a small take-home blend.", "addon_2_price": "12", "addon_3_name": "Extra 30 minutes", "addon_3_detail": "Extend your treatment by half an hour with the same therapist.", "addon_3_price": "60", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-2883", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-2883", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-2883", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Hot stone therapy", "duration": "75 minutes", "value": "145", "includes": ["Heated basalt stones and warm oil","Focus on the back and shoulders","Use of the sauna before your visit"], "recipient": "Marcus Hale", "message": false, "message_text": "Congratulations on the new job.", "sender": "Daniel", "voucher_code": "WS-2883-K7QX2", "expiry": "Apr 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Hot stone upgrade", "addon_1_detail": "Warm basalt stones on your back and shoulders for the last 20 minutes.", "addon_1_price": "35", "addon_2_name": "Aromatherapy oils", "addon_2_detail": "Choose lavender, eucalyptus or citrus for your treatment.", "addon_2_price": "15", "addon_3_name": "Scalp massage", "addon_3_detail": "A 15-minute scalp and neck massage with warm oil.", "addon_3_price": "25", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-2944", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-2944", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-2944", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Spa day for one", "duration": "4 hours", "value": "280", "includes": ["A 60-minute massage of your choice","A light lunch in the garden room","Full day use of the pools and sauna"], "recipient": "Hannah Doyle", "message": true, "message_text": "Happy birthday, with love.", "sender": "Tomas", "voucher_code": "WS-2944-7QX2M", "expiry": "May 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Eye and lip treatment", "addon_1_detail": "A cooling mask for the delicate skin around the eyes and lips.", "addon_1_price": "28", "addon_2_name": "Hand and arm massage", "addon_2_detail": "A 15-minute massage with a rich shea butter cream.", "addon_2_price": "22", "addon_3_name": "LED light therapy", "addon_3_detail": "A calming 15-minute light session after your facial.", "addon_3_price": "30", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-3005", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-3005", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-3005", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Mani and pedi", "duration": "90 minutes", "value": "95", "includes": ["A classic manicure and pedicure","Paraffin hand treatment","Choice of 40 polish colors"], "recipient": "Amara Nwosu", "message": false, "message_text": "Happy anniversary. Relax and enjoy.", "sender": "Daniel", "voucher_code": "WS-3005-QX2M9", "expiry": "Jun 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Sauna and steam", "addon_1_detail": "Two hours in the sauna and steam room before your visit.", "addon_1_price": "25", "addon_2_name": "Champagne and fruit", "addon_2_detail": "A glass of sparkling wine and a fruit plate in the quiet room.", "addon_2_price": "30", "addon_3_name": "Foot ritual", "addon_3_detail": "A warm foot soak and a 20-minute foot massage.", "addon_3_price": "32", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-3066", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-3066", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-3066", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Body glow wrap", "duration": "60 minutes", "value": "130", "includes": ["A sea salt scrub and a seaweed wrap","A scalp massage while you rest","Moisturizing finish"], "recipient": "Lucas Moreau", "message": true, "message_text": "Thank you for everything this year.", "sender": "Mia", "voucher_code": "WS-3066-K7QX2", "expiry": "Jul 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Paraffin hand dip", "addon_1_detail": "A warm paraffin treatment that softens hands and nails.", "addon_1_price": "18", "addon_2_name": "Detox tea set", "addon_2_detail": "A pot of herbal tea and a small take-home blend.", "addon_2_price": "12", "addon_3_name": "Extra 30 minutes", "addon_3_detail": "Extend your treatment by half an hour with the same therapist.", "addon_3_price": "60", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-3127", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-3127", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-3127", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Prenatal massage", "duration": "60 minutes", "value": "110", "includes": ["A gentle massage with side-lying support","Pregnancy-safe oils","Comfortable positioning with pillows"], "recipient": "Ava Thompson", "message": false, "message_text": "You deserve a day off.", "sender": "Daniel", "voucher_code": "WS-3127-7QX2M", "expiry": "Aug 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Hot stone upgrade", "addon_1_detail": "Warm basalt stones on your back and shoulders for the last 20 minutes.", "addon_1_price": "35", "addon_2_name": "Aromatherapy oils", "addon_2_detail": "Choose lavender, eucalyptus or citrus for your treatment.", "addon_2_price": "15", "addon_3_name": "Scalp massage", "addon_3_detail": "A 15-minute scalp and neck massage with warm oil.", "addon_3_price": "25", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-3188", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-3188", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-3188", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Detox package", "duration": "3 hours", "value": "235", "includes": ["A dry brush, a mud wrap and a massage","A green juice and a light snack","Use of the steam room"], "recipient": "Noah Kowalski", "message": true, "message_text": "Congratulations on the new job.", "sender": "Layla", "voucher_code": "WS-3188-QX2M9", "expiry": "Sep 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] },
{ "addon_1_name": "Eye and lip treatment", "addon_1_detail": "A cooling mask for the delicate skin around the eyes and lips.", "addon_1_price": "28", "addon_2_name": "Hand and arm massage", "addon_2_detail": "A 15-minute massage with a rich shea butter cream.", "addon_2_price": "22", "addon_3_name": "LED light therapy", "addon_3_detail": "A calming 15-minute light session after your facial.", "addon_3_price": "30", "coupon_1_offer": "10% off your next visit", "coupon_1_code": "RETURN1-3249", "coupon_1_note": "On any treatment of 60 minutes or more", "coupon_2_offer": "Free hot towel upgrade", "coupon_2_code": "RETURN2-3249", "coupon_2_note": "With any massage booked for yourself", "coupon_3_offer": "Bring a friend, save 15%", "coupon_3_code": "RETURN3-3249", "coupon_3_note": "Valid for a friend’s first treatment", "spa_name": "Willow and Stone Spa", "spa_address": "14 Harbor Lane, Portland, ME 04101", "booking_phone": "(207) 555-0138", "treatment": "Calm and clear", "duration": "2 hours", "value": "205", "includes": ["A facial and a 45-minute massage","A scalp and hand treatment","Tea and a take-home gift"], "recipient": "Chloe Beaumont", "message": false, "message_text": "Happy birthday, with love.", "sender": "Daniel", "voucher_code": "WS-3249-K7QX2", "expiry": "Oct 15, 2028", "terms": ["Please book at least 48 hours ahead and show this voucher on arrival.","The voucher can be used once and is not refundable or exchangeable for cash.","Late arrivals may have a shorter treatment. Please arrive 15 minutes early."] }
]
}' Questions fréquentes sur nos modèles de bons
Démarrez avec 20 documents gratuits par mois et nos modèles de bons prêts à l'emploi.