A sales contract for goods. It has a table with the item, quantity, unit price and total price for up to four goods, the total amount, delivery and shipping terms, and the warranty, inspection, risk of loss, termination, limitation of liability and governing law clauses, with a signature block for the seller and the customer. Download the Word file to adapt the clauses to your business and local rules, then generate a contract for every order from your own data.
Upload the contract template, then send the structured data to get the finished document. Make sure to 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": {
"Effective Date": "6/8/2024",
"Seller Name": "Konopelski-Sporer",
"Seller Address": "6123 Autumn Leaf Trail",
"Customer Name": "Micah Pilkington",
"Customer Address": "87132 Stone Corner Street",
"Item 3": "Laptop stand",
"Quantity 3": 10,
"Price Per Unit 3": "$34.50",
"Total Price 3": "$345.00",
"Item 4": "LED desk lamp",
"Quantity 4": 6,
"Price Per Unit 4": "$27.90",
"Total Price 4": "$167.40",
"Item 1": "Office desk, 140 cm",
"Quantity 1": 4,
"Price Per Unit 1": "$245.00",
"Total Price 1": "$980.00",
"Item 2": "Ergonomic chair",
"Quantity 2": 4,
"Price Per Unit 2": "$189.00",
"Total Price 2": "$756.00",
"Total Amount": "$2,248.40",
"Delivery Location": "Austin, Texas",
"Shipping Responsible": "the Seller",
"Notice": 30,
"Governing Country": "Canada"
}
}' 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 Contract [Customer Name]",
"data": [
{ "Effective Date": "6/8/2024", "Seller Name": "Konopelski-Sporer", "Seller Address": "6123 Autumn Leaf Trail", "Customer Name": "Micah Pilkington", "Customer Address": "87132 Stone Corner Street", "Item 3": "Laptop stand", "Quantity 3": 10, "Price Per Unit 3": "$34.50", "Total Price 3": "$345.00", "Item 4": "LED desk lamp", "Quantity 4": 6, "Price Per Unit 4": "$27.90", "Total Price 4": "$167.40", "Item 1": "Office desk, 140 cm", "Quantity 1": 4, "Price Per Unit 1": "$245.00", "Total Price 1": "$980.00", "Item 2": "Ergonomic chair", "Quantity 2": 4, "Price Per Unit 2": "$189.00", "Total Price 2": "$756.00", "Total Amount": "$2,248.40", "Delivery Location": "Austin, Texas", "Shipping Responsible": "the Seller", "Notice": 30, "Governing Country": "Canada" },
{ "Effective Date": "11/2/2024", "Seller Name": "Lubowitz, Armstrong and Spencer", "Seller Address": "1 Gulseth Drive", "Customer Name": "Benetta Roderigo", "Customer Address": "475 3rd Drive", "Item 3": "27-inch monitor", "Quantity 3": 12, "Price Per Unit 3": "$289.00", "Total Price 3": "$3,468.00", "Item 4": "USB-C dock", "Quantity 4": 5, "Price Per Unit 4": "$129.00", "Total Price 4": "$645.00", "Item 1": "Wireless keyboard", "Quantity 1": 2, "Price Per Unit 1": "$39.00", "Total Price 1": "$78.00", "Item 2": "Wireless mouse", "Quantity 2": 2, "Price Per Unit 2": "$19.50", "Total Price 2": "$39.00", "Total Amount": "$4,230.00", "Delivery Location": "Denver, Colorado", "Shipping Responsible": "the Customer", "Notice": 15, "Governing Country": "United Kingdom" },
{ "Effective Date": "8/12/2024", "Seller Name": "Weimann-Ebert", "Seller Address": "769 Dawn Terrace", "Customer Name": "Emogene Dudenie", "Customer Address": "1 Northport Hill", "Item 3": "Whiteboard, 120 cm", "Quantity 3": 5, "Price Per Unit 3": "$68.00", "Total Price 3": "$340.00", "Item 4": "Copy paper, 5 reams", "Quantity 4": 8, "Price Per Unit 4": "$24.50", "Total Price 4": "$196.00", "Item 1": "Standing desk riser", "Quantity 1": 10, "Price Per Unit 1": "$175.00", "Total Price 1": "$1,750.00", "Item 2": "File cabinet", "Quantity 2": 10, "Price Per Unit 2": "$132.00", "Total Price 2": "$1,320.00", "Total Amount": "$3,606.00", "Delivery Location": "Portland, Oregon", "Shipping Responsible": "the Seller", "Notice": 30, "Governing Country": "Ireland" },
{ "Effective Date": "12/30/2023", "Seller Name": "Weber LLC", "Seller Address": "9681 Schmedeman Road", "Customer Name": "Gregoire Standering", "Customer Address": "55 Huxley Alley", "Item 3": "Webcam, 1080p", "Quantity 3": 4, "Price Per Unit 3": "$54.00", "Total Price 3": "$216.00", "Item 4": "USB headset", "Quantity 4": 12, "Price Per Unit 4": "$62.00", "Total Price 4": "$744.00", "Item 1": "Black toner", "Quantity 1": 6, "Price Per Unit 1": "$79.00", "Total Price 1": "$474.00", "Item 2": "Conference phone", "Quantity 2": 3, "Price Per Unit 2": "$149.00", "Total Price 2": "$447.00", "Total Amount": "$1,881.00", "Delivery Location": "Columbus, Ohio", "Shipping Responsible": "the Customer", "Notice": 60, "Governing Country": "Australia" },
{ "Effective Date": "11/30/2023", "Seller Name": "Pfeffer, Pagac and Mayer", "Seller Address": "08865 Merchant Way", "Customer Name": "Victoir L’Hommeau", "Customer Address": "1 Weeping Birch Avenue", "Item 3": "Cross-cut shredder", "Quantity 3": 20, "Price Per Unit 3": "$118.00", "Total Price 3": "$2,360.00", "Item 4": "Label printer", "Quantity 4": 3, "Price Per Unit 4": "$89.00", "Total Price 4": "$267.00", "Item 1": "6-outlet power strip", "Quantity 1": 1, "Price Per Unit 1": "$16.50", "Total Price 1": "$16.50", "Item 2": "8-port switch", "Quantity 2": 8, "Price Per Unit 2": "$49.00", "Total Price 2": "$392.00", "Total Amount": "$3,035.50", "Delivery Location": "Atlanta, Georgia", "Shipping Responsible": "the Seller", "Notice": 30, "Governing Country": "Germany" },
{ "Effective Date": "11/26/2023", "Seller Name": "Nitzsche-McClure", "Seller Address": "19 Schmedeman Road", "Customer Name": "Georgeanna Ellcock", "Customer Address": "38 Roth Drive", "Item 3": "Laptop stand", "Quantity 3": 6, "Price Per Unit 3": "$34.50", "Total Price 3": "$207.00", "Item 4": "LED desk lamp", "Quantity 4": 10, "Price Per Unit 4": "$27.90", "Total Price 4": "$279.00", "Item 1": "Office desk, 140 cm", "Quantity 1": 5, "Price Per Unit 1": "$245.00", "Total Price 1": "$1,225.00", "Item 2": "Ergonomic chair", "Quantity 2": 5, "Price Per Unit 2": "$189.00", "Total Price 2": "$945.00", "Total Amount": "$2,656.00", "Delivery Location": "Seattle, Washington", "Shipping Responsible": "the Seller", "Notice": 45, "Governing Country": "France" },
{ "Effective Date": "2/6/2024", "Seller Name": "Hickle, Grant and Williamson", "Seller Address": "68949 Barnett Road", "Customer Name": "Wallache Shoutt", "Customer Address": "0154 Donald Street", "Item 3": "27-inch monitor", "Quantity 3": 2, "Price Per Unit 3": "$289.00", "Total Price 3": "$578.00", "Item 4": "USB-C dock", "Quantity 4": 15, "Price Per Unit 4": "$129.00", "Total Price 4": "$1,935.00", "Item 1": "Wireless keyboard", "Quantity 1": 3, "Price Per Unit 1": "$39.00", "Total Price 1": "$117.00", "Item 2": "Wireless mouse", "Quantity 2": 6, "Price Per Unit 2": "$19.50", "Total Price 2": "$117.00", "Total Amount": "$2,747.00", "Delivery Location": "Phoenix, Arizona", "Shipping Responsible": "the Customer", "Notice": 30, "Governing Country": "Netherlands" },
{ "Effective Date": "11/18/2024", "Seller Name": "Bailey LLC", "Seller Address": "0264 Marquette Place", "Customer Name": "Starr Hambelton", "Customer Address": "867 5th Trail", "Item 3": "Whiteboard, 120 cm", "Quantity 3": 10, "Price Per Unit 3": "$68.00", "Total Price 3": "$680.00", "Item 4": "Copy paper, 5 reams", "Quantity 4": 4, "Price Per Unit 4": "$24.50", "Total Price 4": "$98.00", "Item 1": "Standing desk riser", "Quantity 1": 8, "Price Per Unit 1": "$175.00", "Total Price 1": "$1,400.00", "Item 2": "File cabinet", "Quantity 2": 2, "Price Per Unit 2": "$132.00", "Total Price 2": "$264.00", "Total Amount": "$2,442.00", "Delivery Location": "Nashville, Tennessee", "Shipping Responsible": "the Seller", "Notice": 15, "Governing Country": "New Zealand" },
{ "Effective Date": "6/16/2024", "Seller Name": "Dicki LLC", "Seller Address": "27764 Killdeer Crossing", "Customer Name": "Theo Orwin", "Customer Address": "0906 Buena Vista Drive", "Item 3": "Webcam, 1080p", "Quantity 3": 3, "Price Per Unit 3": "$54.00", "Total Price 3": "$162.00", "Item 4": "USB headset", "Quantity 4": 6, "Price Per Unit 4": "$62.00", "Total Price 4": "$372.00", "Item 1": "Black toner", "Quantity 1": 2, "Price Per Unit 1": "$79.00", "Total Price 1": "$158.00", "Item 2": "Conference phone", "Quantity 2": 12, "Price Per Unit 2": "$149.00", "Total Price 2": "$1,788.00", "Total Amount": "$2,480.00", "Delivery Location": "Raleigh, North Carolina", "Shipping Responsible": "the Customer", "Notice": 30, "Governing Country": "Singapore" },
{ "Effective Date": "4/26/2024", "Seller Name": "Langosh LLC", "Seller Address": "643 Huxley Terrace", "Customer Name": "Kissie Eadmeades", "Customer Address": "848 Toban Hill", "Item 3": "Cross-cut shredder", "Quantity 3": 8, "Price Per Unit 3": "$118.00", "Total Price 3": "$944.00", "Item 4": "Label printer", "Quantity 4": 2, "Price Per Unit 4": "$89.00", "Total Price 4": "$178.00", "Item 1": "6-outlet power strip", "Quantity 1": 6, "Price Per Unit 1": "$16.50", "Total Price 1": "$99.00", "Item 2": "8-port switch", "Quantity 2": 6, "Price Per Unit 2": "$49.00", "Total Price 2": "$294.00", "Total Amount": "$1,515.00", "Delivery Location": "Tampa, Florida", "Shipping Responsible": "the Seller", "Notice": 60, "Governing Country": "United States" }
]
}' 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=@Sales Contract Batch.xlsx' \
-F 'output_format=.pdf' \
-F 'single_file=false' \
-F 'output_name=Sales Contract [Customer Name]' Questions frequently asked about our contract templates
Get started with 20 free documents per month and our ready-to-use contract templates.