Une commande client pour les grossistes et les distributeurs. Elle indique le numéro de commande, le bon de commande du client et les conditions de paiement, les adresses de facturation et de livraison, les articles avec leurs codes, quantités et prix, et les totaux avec une remise de volume, des frais de port et une taxe facultatifs, plus l’acceptation du client. Téléchargez le fichier Word pour y ajouter vos conditions, puis générez une commande client pour chaque commande reçue.
Importez le modèle, puis envoyez les données structurées pour générer votre commande. 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": {
"Order Number": "SO-2027-3040",
"Order Date": "Mar 1, 2027",
"Customer PO": "PO-8812",
"Payment Terms": "Net 30",
"Ship Date": "Mar 8, 2027",
"Salesperson": "Jordan Reyes",
"Customer Name": "Summit Peak Outfitters",
"Billing Address": "320 Alpine Road",
"Billing City": "Boulder, CO 80302",
"Shipping Address": "320 Alpine Road",
"Shipping City": "Boulder, CO 80302",
"Items": [
{
"Code": "TT-210",
"Description": "Two-person trail tent, 3 season",
"Quantity": "24",
"Unit": "each",
"Price": "$189.00",
"Total": "$4,536.00"
},
{
"Code": "SB-330",
"Description": "Sleeping bag, 20 F, mummy",
"Quantity": "36",
"Unit": "each",
"Price": "$96.00",
"Total": "$3,456.00"
},
{
"Code": "BP-540",
"Description": "Hiking backpack, 55 L",
"Quantity": "18",
"Unit": "each",
"Price": "$134.00",
"Total": "$2,412.00"
},
{
"Code": "HL-220",
"Description": "Rechargeable headlamp, 400 lumen",
"Quantity": "60",
"Unit": "each",
"Price": "$29.00",
"Total": "$1,740.00"
},
{
"Code": "FK-050",
"Description": "First aid kit, 120 pieces",
"Quantity": "40",
"Unit": "each",
"Price": "$22.50",
"Total": "$900.00"
}
],
"Subtotal": "$13,044.00",
"Discount Applied": true,
"Discount Rate": "5%",
"Discount": "$652.20",
"Shipping": "$185.00",
"Tax Rate": "0%",
"Tax": "$0.00",
"Order Total": "$12,576.80",
"Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival."
}
}' 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 Order [Order Number]",
"data": [
{ "Order Number": "SO-2027-3040", "Order Date": "Mar 1, 2027", "Customer PO": "PO-8812", "Payment Terms": "Net 30", "Ship Date": "Mar 8, 2027", "Salesperson": "Jordan Reyes", "Customer Name": "Summit Peak Outfitters", "Billing Address": "320 Alpine Road", "Billing City": "Boulder, CO 80302", "Shipping Address": "320 Alpine Road", "Shipping City": "Boulder, CO 80302", "Items": [{"Code":"TT-210","Description":"Two-person trail tent, 3 season","Quantity":"24","Unit":"each","Price":"$189.00","Total":"$4,536.00"},{"Code":"SB-330","Description":"Sleeping bag, 20 F, mummy","Quantity":"36","Unit":"each","Price":"$96.00","Total":"$3,456.00"},{"Code":"BP-540","Description":"Hiking backpack, 55 L","Quantity":"18","Unit":"each","Price":"$134.00","Total":"$2,412.00"},{"Code":"HL-220","Description":"Rechargeable headlamp, 400 lumen","Quantity":"60","Unit":"each","Price":"$29.00","Total":"$1,740.00"},{"Code":"FK-050","Description":"First aid kit, 120 pieces","Quantity":"40","Unit":"each","Price":"$22.50","Total":"$900.00"}], "Subtotal": "$13,044.00", "Discount Applied": true, "Discount Rate": "5%", "Discount": "$652.20", "Shipping": "$185.00", "Tax Rate": "0%", "Tax": "$0.00", "Order Total": "$12,576.80", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3046", "Order Date": "Mar 3, 2027", "Customer PO": "4471", "Payment Terms": "Net 30", "Ship Date": "Mar 10, 2027", "Salesperson": "Maya Chen", "Customer Name": "Trailhead Sports", "Billing Address": "19 Main Street", "Billing City": "Bozeman, MT 59715", "Shipping Address": "19 Main Street", "Shipping City": "Bozeman, MT 59715", "Items": [{"Code":"RJ-905","Description":"Rain jacket, waterproof, adult","Quantity":"48","Unit":"each","Price":"$72.00","Total":"$3,456.00"},{"Code":"HB-145","Description":"Hiking boots, waterproof","Quantity":"30","Unit":"pair","Price":"$118.00","Total":"$3,540.00"},{"Code":"TP-480","Description":"Trekking poles, carbon, pair","Quantity":"40","Unit":"pair","Price":"$58.00","Total":"$2,320.00"},{"Code":"WB-115","Description":"Insulated water bottle, 32 oz","Quantity":"120","Unit":"each","Price":"$17.50","Total":"$2,100.00"},{"Code":"HL-220","Description":"Rechargeable headlamp, 400 lumen","Quantity":"50","Unit":"each","Price":"$29.00","Total":"$1,450.00"}], "Subtotal": "$12,866.00", "Discount Applied": false, "Discount Rate": "0%", "Discount": "$0.00", "Shipping": "$210.00", "Tax Rate": "0%", "Tax": "$0.00", "Order Total": "$13,076.00", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3052", "Order Date": "Mar 5, 2027", "Customer PO": "EC-3302", "Payment Terms": "2/10 Net 30", "Ship Date": "Mar 12, 2027", "Salesperson": "Jordan Reyes", "Customer Name": "Evergreen Camping Supply", "Billing Address": "905 Pine Ridge Road", "Billing City": "Spokane, WA 99201", "Shipping Address": "905 Pine Ridge Road", "Shipping City": "Spokane, WA 99201", "Items": [{"Code":"TT-210","Description":"Two-person trail tent, 3 season","Quantity":"30","Unit":"each","Price":"$189.00","Total":"$5,670.00"},{"Code":"CS-760","Description":"Camp stove, compact, with case","Quantity":"45","Unit":"each","Price":"$44.00","Total":"$1,980.00"},{"Code":"SB-330","Description":"Sleeping bag, 20 F, mummy","Quantity":"30","Unit":"each","Price":"$96.00","Total":"$2,880.00"},{"Code":"FK-050","Description":"First aid kit, 120 pieces","Quantity":"50","Unit":"each","Price":"$22.50","Total":"$1,125.00"},{"Code":"WB-115","Description":"Insulated water bottle, 32 oz","Quantity":"100","Unit":"each","Price":"$17.50","Total":"$1,750.00"}], "Subtotal": "$13,405.00", "Discount Applied": true, "Discount Rate": "8%", "Discount": "$1,072.40", "Shipping": "$240.00", "Tax Rate": "0%", "Tax": "$0.00", "Order Total": "$12,572.60", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3058", "Order Date": "Mar 7, 2027", "Customer PO": "RMR-0099", "Payment Terms": "Net 15", "Ship Date": "Mar 14, 2027", "Salesperson": "Samir Patel", "Customer Name": "Rocky Mountain Rentals", "Billing Address": "1200 Canyon Drive", "Billing City": "Estes Park, CO 80517", "Shipping Address": "1200 Canyon Drive", "Shipping City": "Estes Park, CO 80517", "Items": [{"Code":"BP-540","Description":"Hiking backpack, 55 L","Quantity":"20","Unit":"each","Price":"$134.00","Total":"$2,680.00"},{"Code":"TT-210","Description":"Two-person trail tent, 3 season","Quantity":"16","Unit":"each","Price":"$189.00","Total":"$3,024.00"},{"Code":"CS-760","Description":"Camp stove, compact, with case","Quantity":"20","Unit":"each","Price":"$44.00","Total":"$880.00"},{"Code":"SB-330","Description":"Sleeping bag, 20 F, mummy","Quantity":"24","Unit":"each","Price":"$96.00","Total":"$2,304.00"},{"Code":"TP-480","Description":"Trekking poles, carbon, pair","Quantity":"24","Unit":"pair","Price":"$58.00","Total":"$1,392.00"}], "Subtotal": "$10,280.00", "Discount Applied": false, "Discount Rate": "0%", "Discount": "$0.00", "Shipping": "$130.00", "Tax Rate": "6.5%", "Tax": "$668.20", "Order Total": "$11,078.20", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3064", "Order Date": "Mar 9, 2027", "Customer PO": "GS-2210", "Payment Terms": "Net 30", "Ship Date": "Mar 16, 2027", "Salesperson": "Maya Chen", "Customer Name": "The Gear Shed", "Billing Address": "48 Harbor Street", "Billing City": "Portland, ME 04101", "Shipping Address": "48 Harbor Street", "Shipping City": "Portland, ME 04101", "Items": [{"Code":"HB-145","Description":"Hiking boots, waterproof","Quantity":"24","Unit":"pair","Price":"$118.00","Total":"$2,832.00"},{"Code":"RJ-905","Description":"Rain jacket, waterproof, adult","Quantity":"36","Unit":"each","Price":"$72.00","Total":"$2,592.00"},{"Code":"WB-115","Description":"Insulated water bottle, 32 oz","Quantity":"90","Unit":"each","Price":"$17.50","Total":"$1,575.00"},{"Code":"HL-220","Description":"Rechargeable headlamp, 400 lumen","Quantity":"40","Unit":"each","Price":"$29.00","Total":"$1,160.00"},{"Code":"FK-050","Description":"First aid kit, 120 pieces","Quantity":"30","Unit":"each","Price":"$22.50","Total":"$675.00"}], "Subtotal": "$8,834.00", "Discount Applied": true, "Discount Rate": "5%", "Discount": "$441.70", "Shipping": "$290.00", "Tax Rate": "0%", "Tax": "$0.00", "Order Total": "$8,682.30", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3070", "Order Date": "Mar 11, 2027", "Customer PO": "CAC-614", "Payment Terms": "Net 45", "Ship Date": "Mar 18, 2027", "Salesperson": "Samir Patel", "Customer Name": "Cascade Adventure Co", "Billing Address": "77 Riverfront Way", "Billing City": "Bend, OR 97701", "Shipping Address": "77 Riverfront Way", "Shipping City": "Bend, OR 97701", "Items": [{"Code":"TT-210","Description":"Two-person trail tent, 3 season","Quantity":"40","Unit":"each","Price":"$189.00","Total":"$7,560.00"},{"Code":"BP-540","Description":"Hiking backpack, 55 L","Quantity":"30","Unit":"each","Price":"$134.00","Total":"$4,020.00"},{"Code":"SB-330","Description":"Sleeping bag, 20 F, mummy","Quantity":"40","Unit":"each","Price":"$96.00","Total":"$3,840.00"},{"Code":"TP-480","Description":"Trekking poles, carbon, pair","Quantity":"36","Unit":"pair","Price":"$58.00","Total":"$2,088.00"},{"Code":"CS-760","Description":"Camp stove, compact, with case","Quantity":"30","Unit":"each","Price":"$44.00","Total":"$1,320.00"}], "Subtotal": "$18,828.00", "Discount Applied": true, "Discount Rate": "10%", "Discount": "$1,882.80", "Shipping": "$320.00", "Tax Rate": "0%", "Tax": "$0.00", "Order Total": "$17,265.20", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3076", "Order Date": "Mar 13, 2027", "Customer PO": "BC-5578", "Payment Terms": "Net 30", "Ship Date": "Mar 20, 2027", "Salesperson": "Jordan Reyes", "Customer Name": "Basecamp Sporting Goods", "Billing Address": "15 Summit Avenue", "Billing City": "Salt Lake City, UT 84101", "Shipping Address": "15 Summit Avenue", "Shipping City": "Salt Lake City, UT 84101", "Items": [{"Code":"WB-115","Description":"Insulated water bottle, 32 oz","Quantity":"150","Unit":"each","Price":"$17.50","Total":"$2,625.00"},{"Code":"HL-220","Description":"Rechargeable headlamp, 400 lumen","Quantity":"80","Unit":"each","Price":"$29.00","Total":"$2,320.00"},{"Code":"FK-050","Description":"First aid kit, 120 pieces","Quantity":"60","Unit":"each","Price":"$22.50","Total":"$1,350.00"},{"Code":"RJ-905","Description":"Rain jacket, waterproof, adult","Quantity":"30","Unit":"each","Price":"$72.00","Total":"$2,160.00"},{"Code":"HB-145","Description":"Hiking boots, waterproof","Quantity":"20","Unit":"pair","Price":"$118.00","Total":"$2,360.00"}], "Subtotal": "$10,815.00", "Discount Applied": false, "Discount Rate": "0%", "Discount": "$0.00", "Shipping": "$175.00", "Tax Rate": "7.25%", "Tax": "$784.09", "Order Total": "$11,774.09", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3082", "Order Date": "Mar 15, 2027", "Customer PO": "NW-1090", "Payment Terms": "Net 30", "Ship Date": "Mar 22, 2027", "Salesperson": "Maya Chen", "Customer Name": "Northwoods Outfitters", "Billing Address": "602 Lakeshore Drive", "Billing City": "Duluth, MN 55802", "Shipping Address": "602 Lakeshore Drive", "Shipping City": "Duluth, MN 55802", "Items": [{"Code":"SB-330","Description":"Sleeping bag, 20 F, mummy","Quantity":"48","Unit":"each","Price":"$96.00","Total":"$4,608.00"},{"Code":"RJ-905","Description":"Rain jacket, waterproof, adult","Quantity":"40","Unit":"each","Price":"$72.00","Total":"$2,880.00"},{"Code":"HB-145","Description":"Hiking boots, waterproof","Quantity":"26","Unit":"pair","Price":"$118.00","Total":"$3,068.00"},{"Code":"CS-760","Description":"Camp stove, compact, with case","Quantity":"24","Unit":"each","Price":"$44.00","Total":"$1,056.00"},{"Code":"BP-540","Description":"Hiking backpack, 55 L","Quantity":"16","Unit":"each","Price":"$134.00","Total":"$2,144.00"}], "Subtotal": "$13,756.00", "Discount Applied": true, "Discount Rate": "6%", "Discount": "$825.36", "Shipping": "$265.00", "Tax Rate": "0%", "Tax": "$0.00", "Order Total": "$13,195.64", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3088", "Order Date": "Mar 17, 2027", "Customer PO": "DSA-207", "Payment Terms": "Net 15", "Ship Date": "Mar 24, 2027", "Salesperson": "Samir Patel", "Customer Name": "Desert Sky Adventures", "Billing Address": "31 Mesa Road", "Billing City": "Moab, UT 84532", "Shipping Address": "31 Mesa Road", "Shipping City": "Moab, UT 84532", "Items": [{"Code":"TT-210","Description":"Two-person trail tent, 3 season","Quantity":"14","Unit":"each","Price":"$189.00","Total":"$2,646.00"},{"Code":"WB-115","Description":"Insulated water bottle, 32 oz","Quantity":"60","Unit":"each","Price":"$17.50","Total":"$1,050.00"},{"Code":"HL-220","Description":"Rechargeable headlamp, 400 lumen","Quantity":"36","Unit":"each","Price":"$29.00","Total":"$1,044.00"},{"Code":"TP-480","Description":"Trekking poles, carbon, pair","Quantity":"20","Unit":"pair","Price":"$58.00","Total":"$1,160.00"},{"Code":"CS-760","Description":"Camp stove, compact, with case","Quantity":"16","Unit":"each","Price":"$44.00","Total":"$704.00"}], "Subtotal": "$6,604.00", "Discount Applied": false, "Discount Rate": "0%", "Discount": "$0.00", "Shipping": "$120.00", "Tax Rate": "7.25%", "Tax": "$478.79", "Order Total": "$7,202.79", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." },
{ "Order Number": "SO-2027-3094", "Order Date": "Mar 19, 2027", "Customer PO": "LPP-3345", "Payment Terms": "Net 30", "Ship Date": "Mar 26, 2027", "Salesperson": "Jordan Reyes", "Customer Name": "Lakeside Paddle and Pack", "Billing Address": "88 Shoreline Drive", "Billing City": "Burlington, VT 05401", "Shipping Address": "88 Shoreline Drive", "Shipping City": "Burlington, VT 05401", "Items": [{"Code":"BP-540","Description":"Hiking backpack, 55 L","Quantity":"22","Unit":"each","Price":"$134.00","Total":"$2,948.00"},{"Code":"RJ-905","Description":"Rain jacket, waterproof, adult","Quantity":"28","Unit":"each","Price":"$72.00","Total":"$2,016.00"},{"Code":"SB-330","Description":"Sleeping bag, 20 F, mummy","Quantity":"28","Unit":"each","Price":"$96.00","Total":"$2,688.00"},{"Code":"FK-050","Description":"First aid kit, 120 pieces","Quantity":"36","Unit":"each","Price":"$22.50","Total":"$810.00"},{"Code":"WB-115","Description":"Insulated water bottle, 32 oz","Quantity":"80","Unit":"each","Price":"$17.50","Total":"$1,400.00"}], "Subtotal": "$9,862.00", "Discount Applied": true, "Discount Rate": "5%", "Discount": "$493.10", "Shipping": "$205.00", "Tax Rate": "0%", "Tax": "$0.00", "Order Total": "$9,573.90", "Notes": "Ship in one delivery to the receiving dock, Monday to Friday between 8 AM and 4 PM. Call the buyer 24 hours before arrival." }
]
}' Questions fréquentes sur nos modèles de commandes
Démarrez avec 20 documents gratuits par mois et nos modèles de commandes prêts à l'emploi.