Une facture épurée d’une page pour les entreprises de déménagement et de transport. Elle comporte un bloc client, le numéro et la date de la facture, un tableau avec la prestation, la quantité et le montant, le total, et vos coordonnées en bas de page. Téléchargez le fichier Word pour l’adapter à votre identité visuelle, puis générez une facture pour chaque déménagement à partir de vos propres données.
Importez le modèle, puis envoyez les données structurées pour obtenir le document final. Pensez à remplacer 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.
Importez un tableur Excel et chaque ligne devient un document, les en-têtes de colonnes correspondant à vos balises de fusion. Utilisez le paramètre sheet pour lire une feuille précise du fichier Excel.
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": {
"Invoice No": "92-469-9162",
"Company Name": "Glover Inc",
"Street Address": "43 Cardinal Junction",
"City": "Las Vegas",
"State": "Nevada",
"Zip Code": "89145",
"Invoice Date": "3/12/2024",
"Phone": "(702) 7086472",
"Description": "Local move, two movers and a truck, per hour",
"Quantity": 6,
"Amount": "$810.00",
"Total": "$810.00"
}
}' 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": "Invoice [Invoice No] [Company Name]",
"data": [
{ "Invoice No": "92-469-9162", "Company Name": "Glover Inc", "Street Address": "43 Cardinal Junction", "City": "Las Vegas", "State": "Nevada", "Zip Code": "89145", "Invoice Date": "3/12/2024", "Phone": "(702) 7086472", "Description": "Local move, two movers and a truck, per hour", "Quantity": 6, "Amount": "$810.00", "Total": "$810.00" },
{ "Invoice No": "12-795-0059", "Company Name": "Maggio-Greenfelder", "Street Address": "364 Bluejay Lane", "City": "Oklahoma City", "State": "Oklahoma", "Zip Code": "73124", "Invoice Date": "5/9/2024", "Phone": "(405) 2902438", "Description": "Packing materials, medium boxes", "Quantity": 40, "Amount": "$140.00", "Total": "$140.00" },
{ "Invoice No": "82-761-2774", "Company Name": "Champlin Group", "Street Address": "6 Eagle Crest Trail", "City": "Suffolk", "State": "Virginia", "Zip Code": "23436", "Invoice Date": "12/2/2023", "Phone": "(757) 7613025", "Description": "Packing service, per hour", "Quantity": 5, "Amount": "$325.00", "Total": "$325.00" },
{ "Invoice No": "14-584-6043", "Company Name": "Kulas, Ruecker and Weissnat", "Street Address": "08629 Shopko Terrace", "City": "San Diego", "State": "California", "Zip Code": "92115", "Invoice Date": "2/19/2024", "Phone": "(619) 7822845", "Description": "Long-distance move, per 100 miles", "Quantity": 3, "Amount": "$1,230.00", "Total": "$1,230.00" },
{ "Invoice No": "12-989-3595", "Company Name": "Streich LLC", "Street Address": "8002 Bashford Avenue", "City": "Chicago", "State": "Illinois", "Zip Code": "60652", "Invoice Date": "5/11/2024", "Phone": "(773) 7504713", "Description": "Furniture assembly, per hour", "Quantity": 4, "Amount": "$220.00", "Total": "$220.00" },
{ "Invoice No": "44-199-6289", "Company Name": "Hettinger, Kuphal and Kemmer", "Street Address": "7 Ronald Regan Alley", "City": "Brooklyn", "State": "New York", "Zip Code": "11210", "Invoice Date": "5/1/2024", "Phone": "(347) 6442696", "Description": "Piano transport", "Quantity": 1, "Amount": "$350.00", "Total": "$350.00" },
{ "Invoice No": "55-597-3725", "Company Name": "Quigley, Block and Nader", "Street Address": "56292 Armistice Place", "City": "New Orleans", "State": "Louisiana", "Zip Code": "70124", "Invoice Date": "4/15/2024", "Phone": "(985) 2603330", "Description": "Storage unit rental, per week", "Quantity": 6, "Amount": "$270.00", "Total": "$270.00" },
{ "Invoice No": "08-366-7756", "Company Name": "Muller-Hoppe", "Street Address": "39771 Pankratz Terrace", "City": "Long Beach", "State": "California", "Zip Code": "90810", "Invoice Date": "7/18/2024", "Phone": "(323) 6297164", "Description": "Local move, three movers and a truck, per hour", "Quantity": 8, "Amount": "$1,480.00", "Total": "$1,480.00" },
{ "Invoice No": "53-010-9107", "Company Name": "Russel Group", "Street Address": "9 Sherman Junction", "City": "Elizabeth", "State": "New Jersey", "Zip Code": "07208", "Invoice Date": "4/18/2024", "Phone": "(908) 5920507", "Description": "Heavy item surcharge", "Quantity": 2, "Amount": "$150.00", "Total": "$150.00" },
{ "Invoice No": "87-578-3087", "Company Name": "McKenzie, Jast and Jacobs", "Street Address": "46961 1st Point", "City": "Toledo", "State": "Ohio", "Zip Code": "43635", "Invoice Date": "9/18/2024", "Phone": "(419) 5024200", "Description": "Packing materials, large boxes", "Quantity": 25, "Amount": "$118.75", "Total": "$118.75" }
]
}' 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=@Moving Company Invoice Batch.xlsx' \
-F 'output_format=.pdf' \
-F 'single_file=false' \
-F 'output_name=Invoice [Invoice No] [Company Name]' Questions fréquentes sur nos modèles de factures
Démarrez avec 20 documents gratuits par mois et nos modèles de factures prêts à l'emploi.