Une facture de vente pour les entreprises qui vendent des produits. Une barre latérale vert profond réunit les coordonnées de votre entreprise, le client avec son adresse, la date et le numéro de la facture, à côté d’un tableau épuré des articles avec quantités, prix et montants, du total à payer en grands caractères et des coordonnées de paiement. Téléchargez le fichier Word pour ajouter les coordonnées de votre entreprise, puis générez une facture pour chaque vente.
Importez le modèle, puis envoyez les données structurées pour générer votre facture. 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": {
"Invoice No": "58-519-8945",
"Invoice Date": "03-01-2023",
"CUSTOMER NAME": "Wisozk Inc",
"STREET": "1569 Fair Oaks Way",
"CITY": "Philadelphia",
"ST": "Pennsylvania",
"ZIP CODE": "19184",
"Total": "$180",
"Items": [
{
"Name": "Table",
"Quantity": 1,
"Price": "$80",
"Amount": "$80"
},
{
"Name": "Chairs",
"Quantity": 4,
"Price": "$25",
"Amount": "$100"
}
]
}
}' 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] [CUSTOMER NAME]",
"data": [
{ "Invoice No": "58-519-8945", "Invoice Date": "03-01-2023", "CUSTOMER NAME": "Wisozk Inc", "STREET": "1569 Fair Oaks Way", "CITY": "Philadelphia", "ST": "Pennsylvania", "ZIP CODE": "19184", "Total": "$180", "Items": [{"Name":"Table","Quantity":1,"Price":"$80","Amount":"$80"},{"Name":"Chairs","Quantity":4,"Price":"$25","Amount":"$100"}] },
{ "Invoice No": "58-519-8946", "Invoice Date": "03-02-2023", "CUSTOMER NAME": "Hartley Interiors", "STREET": "42 Willow Lane", "CITY": "Columbus", "ST": "Ohio", "ZIP CODE": "43215", "Total": "$480", "Items": [{"Name":"Desk","Quantity":1,"Price":"$220","Amount":"$220"},{"Name":"Filing Cabinet","Quantity":2,"Price":"$130","Amount":"$260"}] },
{ "Invoice No": "58-519-8947", "Invoice Date": "03-03-2023", "CUSTOMER NAME": "Blue Harbor Cafe", "STREET": "8 Dockside Street", "CITY": "Portland", "ST": "Maine", "ZIP CODE": "04101", "Total": "$650", "Items": [{"Name":"Floor Lamp","Quantity":2,"Price":"$55","Amount":"$110"},{"Name":"Coffee Table","Quantity":3,"Price":"$180","Amount":"$540"}] },
{ "Invoice No": "58-519-8948", "Invoice Date": "03-04-2023", "CUSTOMER NAME": "Summit Dental Group", "STREET": "910 Ridge Road", "CITY": "Denver", "ST": "Colorado", "ZIP CODE": "80202", "Total": "$2,800", "Items": [{"Name":"Sofa","Quantity":3,"Price":"$640","Amount":"$1,920"},{"Name":"Desk","Quantity":4,"Price":"$220","Amount":"$880"}] },
{ "Invoice No": "58-519-8949", "Invoice Date": "03-05-2023", "CUSTOMER NAME": "Maple and Finch", "STREET": "77 Cedar Avenue", "CITY": "Madison", "ST": "Wisconsin", "ZIP CODE": "53703", "Total": "$310", "Items": [{"Name":"Stool","Quantity":1,"Price":"$35","Amount":"$35"},{"Name":"Floor Lamp","Quantity":5,"Price":"$55","Amount":"$275"}] },
{ "Invoice No": "58-519-8950", "Invoice Date": "03-06-2023", "CUSTOMER NAME": "Orion Coworking", "STREET": "255 Congress Avenue", "CITY": "Austin", "ST": "Texas", "ZIP CODE": "78701", "Total": "$4,020", "Items": [{"Name":"Bookshelf","Quantity":2,"Price":"$90","Amount":"$180"},{"Name":"Sofa","Quantity":6,"Price":"$640","Amount":"$3,840"}] },
{ "Invoice No": "58-519-8951", "Invoice Date": "03-07-2023", "CUSTOMER NAME": "Lakeside Academy", "STREET": "19 Shoreline Drive", "CITY": "Evanston", "ST": "Illinois", "ZIP CODE": "60201", "Total": "$295", "Items": [{"Name":"Whiteboard","Quantity":3,"Price":"$75","Amount":"$225"},{"Name":"Stool","Quantity":2,"Price":"$35","Amount":"$70"}] },
{ "Invoice No": "58-519-8952", "Invoice Date": "03-08-2023", "CUSTOMER NAME": "Verde Studio", "STREET": "630 Mission Street", "CITY": "San Francisco", "ST": "California", "ZIP CODE": "94105", "Total": "$310", "Items": [{"Name":"Monitor Stand","Quantity":1,"Price":"$40","Amount":"$40"},{"Name":"Bookshelf","Quantity":3,"Price":"$90","Amount":"$270"}] },
{ "Invoice No": "58-519-8953", "Invoice Date": "03-09-2023", "CUSTOMER NAME": "Northgate Clinic", "STREET": "14 Summit Way", "CITY": "Seattle", "ST": "Washington", "ZIP CODE": "98101", "Total": "$590", "Items": [{"Name":"Office Chair","Quantity":2,"Price":"$145","Amount":"$290"},{"Name":"Whiteboard","Quantity":4,"Price":"$75","Amount":"$300"}] },
{ "Invoice No": "58-519-8954", "Invoice Date": "03-10-2023", "CUSTOMER NAME": "Pinecrest Hotel", "STREET": "3 Orchard Court", "CITY": "Savannah", "ST": "Georgia", "ZIP CODE": "31401", "Total": "$590", "Items": [{"Name":"Filing Cabinet","Quantity":3,"Price":"$130","Amount":"$390"},{"Name":"Monitor Stand","Quantity":5,"Price":"$40","Amount":"$200"}] }
]
}' 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.