All Projects → Invoiced → invoice-generator-api

Invoiced / invoice-generator-api

Licence: other
A free API for generating invoice PDFs and e-Invoices.

Projects that are alternatives of or similar to invoice-generator-api

invoice
📝 PDF invoice generator
Stars: ✭ 76 (-78.29%)
Mutual labels:  invoice, invoice-pdf, invoice-generator, invoice-template
Manta
🎉 Flexible invoicing desktop app with beautiful & customizable templates.
Stars: ✭ 5,160 (+1374.29%)
Mutual labels:  invoice, invoice-pdf, invoice-generator, invoice-template
billwarrior
A Timewarrior report extension for generating invoices in LaTeX
Stars: ✭ 21 (-94%)
Mutual labels:  invoice-pdf, invoice-generator
xsender
Java library for sending XML files through SOAP - SUNAT
Stars: ✭ 15 (-95.71%)
Mutual labels:  invoice, ubl
Invoicenet
Deep neural network to extract intelligent information from invoice documents.
Stars: ✭ 1,886 (+438.86%)
Mutual labels:  invoice, invoice-pdf
Billing-System
A GUI Based Complete Store Billing System in java that generates Invoice of each sale.
Stars: ✭ 47 (-86.57%)
Mutual labels:  invoice-pdf, invoice-generator
InvoiScript
Generate simple PDF invoices with PHP
Stars: ✭ 16 (-95.43%)
Mutual labels:  invoice, invoice-pdf
Sypht Python Client
A python client for the Sypht API
Stars: ✭ 160 (-54.29%)
Mutual labels:  invoice
Cashier Btc
💰 Self-hosted Bitcoin payment gateway (฿)
Stars: ✭ 223 (-36.29%)
Mutual labels:  invoice
Openpapyrus
Sophisticated ERP, CRM, Point-Of-Sale, etc. Open source now. This system is developed since 1996.
Stars: ✭ 158 (-54.86%)
Mutual labels:  invoice
Trabalhando Remoto
Informações para quem trabalha ou quer trabalhar remoto
Stars: ✭ 2,072 (+492%)
Mutual labels:  invoice
UltimateCRM
A quick and easy way to manage your clients, invoices and projects all on one web application made with Laravel!
Stars: ✭ 87 (-75.14%)
Mutual labels:  invoice
Defterp
deftERP - Jakarta EE (Java EE 7 : JSF, JPA, EJB, CDI, Bean Validation)
Stars: ✭ 207 (-40.86%)
Mutual labels:  invoice
Crater Mobile
Crater Invoice App mobile app built with React Native
Stars: ✭ 164 (-53.14%)
Mutual labels:  invoice
UblSharp
C# / .NET / XML library for working with OASIS UBL 2.0/2.1 documents
Stars: ✭ 72 (-79.43%)
Mutual labels:  ubl
apex
Apex is a self hosted sales, purchase, inventory and accounting solution for small businesses.
Stars: ✭ 55 (-84.29%)
Mutual labels:  invoice
Dapper Invoice
A billable-time invoice featuring style over substance
Stars: ✭ 135 (-61.43%)
Mutual labels:  invoice
Invoiceneko
An Open Sourced Invoice System developed for anyone who needs to generate out an invoice and manage clients
Stars: ✭ 204 (-41.71%)
Mutual labels:  invoice
Representation-Learning-for-Information-Extraction
Pytorch implementation of Paper by Google Research - Representation Learning for Information Extraction from Form-like Documents.
Stars: ✭ 82 (-76.57%)
Mutual labels:  invoice
Pyafipws
Factura Electrónica AFIP y otros servicios web (proyecto software libre) — Interfases, tools and apps for Argentina's gov't. webservices (soap, com/dll simil-ocx, pdf, dbf, xml, json, etc.) #python
Stars: ✭ 198 (-43.43%)
Mutual labels:  invoice

Invoice Generator API

We created a simple API at Invoiced to generate invoice PDFs on the fly. This service has been used internally by us for some time. We believe this could be helpful in your project as well.

The API has a primary endpoint that returns a PDF given details of an invoice. We don't store any of your invoice data.

In addition to PDF, the API can also generate e-invoices in UBL (Universal Business Language) with the invoice PDF embedded. This is useful as the world shifts to e-invoicing because UBL invoices are tricky to generate.

Use Cases

  • Creating invoices for VAT compliance
  • Generate a PDF of an invoice that you have the details to (recipient, line items, etc)
  • Produce invoices for B2B buyers from an order or receipt
  • Selling products or services on credit terms
  • Creating e-invoices in UBL (Universal Business Language)

Table of Contents

Examples

Simple Invoice

curl https://invoice-generator.com \
  -d from="Invoiced, Inc." \
  -d to="Acme, Corp." \
  -d logo="https://invoiced.com/img/logo-invoice.png" \
  -d number=1 \
  -d date="Feb 9, 2015" \
  -d due_date="Feb 16, 2015" \
  -d items[0][name]="Starter plan monthly" \
  -d items[0][quantity]=1 \
  -d items[0][unit_cost]=99 \
  -d notes="Thanks for being an awesome customer!" \
  -d terms="Please pay by the due date." \
> invoice.pdf

VAT Invoice

Here's a simple cURL example for generating invoices with VAT:

curl https://invoice-generator.com \
  -d from="Invoiced, Inc.%0AVAT ID: 1234" \
  -d to="Jared%0AVAT ID: 4567" \
  -d logo="https://invoiced.com/img/logo-invoice.png" \
  -d number=1 \
  -d date="Feb 9, 2015" \
  -d payment_terms="Charged - Do Not Pay" \
  -d items[0][name]="Starter Plan Monthly" \
  -d items[0][quantity]=1 \
  -d items[0][unit_cost]=99 \
  -d tax_title="VAT" \
  -d fields[tax]="%" \
  -d tax=8 \
  -d notes="Thanks for being an awesome customer!" \
  -d terms="No need to submit payment. You will be auto-billed for this invoice." \
> invoice.vat.pdf

JSON Input

JSON input is also accepted with the Content-Type header set to application/json

curl https://invoice-generator.com \
  -H "Content-Type: application/json" \
  -d '{"from":"Invoiced, Inc.","to":"Acme, Corp.","logo":"https://invoiced.com/img/logo-invoice.png","number":1,"items":[{"name":"Starter plan","quantity":1,"unit_cost":99}],"notes":"Thanks for your business!"}' \
> invoice.pdf

Localization

It is possible to change the localization used to generate the invoice by supplying a locale in the Accept-Language header. The default locale is en-US.

curl https://invoice-generator.com \
  -H "Accept-Language: fr-FR" \
  -d from="Invoiced, Inc." \
  -d to="Acme Corp." \
  -d logo="https://invoiced.com/img/logo-invoice.png" \
  -d number=1 \
  -d currency=eur \
  -d date="Feb 9, 2015" \
  -d due_date="Feb 16, 2015" \
  -d items[0][name]="Starter plan monthly" \
  -d items[0][quantity]=1 \
  -d items[0][unit_cost]=99 \
> invoice.pdf

Supported Languages

We currently have translations available in English, French, German, Spanish, and Thai.

Custom Fields

curl https://invoice-generator.com \
  -d from="Invoiced, Inc." \
  -d to="My Customer" \
  -d ship_to="Shipping Address" \
  -d logo="https://invoiced.com/img/logo-invoice.png" \
  -d number=1 \
  -d date="Feb 9, 2015" \
  -d custom_fields[0][name]="My Custom Field" \
  -d custom_fields[0][value]="Some Value" \
  -d items[0][name]="Starter Plan Monthly" \
  -d items[0][quantity]=1 \
  -d items[0][unit_cost]=99 \
> invoice.custom_fields.pdf

E-invoice

Here's a simple cURL example for generating e-invoices in UBL XML:

curl https://invoice-generator.com/ubl \
  -d from="Invoiced, Inc.%0AVAT ID: 1234" \
  -d to="Jared%0AVAT ID: 4567" \
  -d logo="https://invoiced.com/img/logo-invoice.png" \
  -d number=1 \
  -d date="Feb 9, 2015" \
  -d date="Mar 9, 2015" \
  -d payment_terms="NET 30" \
  -d "items[0][name]"="Starter Plan Monthly" \
  -d "items[0][quantity]"=1 \
  -d "items[0][unit_cost]"=99 \
  -d tax_title="VAT" \
  -d "fields[tax]"="%" \
  -d tax=8 \
  -d notes="Thanks for being an awesome customer!" \
> invoice.xml

Sample Projects


API Reference

Create Invoice PDF

POST https://invoice-generator.com

Invoice Parameters

When a value is null or zero, the field will not be shown on the invoice. The exception to this are the required fields from, to, date, and items.

Parameter Description Default Value
logo URL of your logo null
from Your organization billing address and contact info null
to Entity being billed - multiple lines ok null
ship_to Shipping address - multiple lines ok null
number Invoice number null
currency ISO 4217 3-digit currency code USD
custom_fields Array of objects - see Custom Fields below []
date Invoice date current date
payment_terms Payment terms summary (i.e. NET 30) null
due_date Invoice due date null
items Array of objects - see Line Items below []
fields Object - see Subtotal Lines below {"tax":"%","discounts":false,"shipping":false}
discounts Subtotal discounts - numbers only 0
tax Tax - numbers only 0
shipping Shipping - numbers only 0
amount_paid Amount paid - numbers only 0
notes Notes - any extra information not included elsewhere null
terms Terms and conditions - all the details null

Line Item Parameters

Line items are represented as an array of objects. Here's an example:

{
  "items": [
    {
      "name": "Gizmo",
      "quantity": 10,
      "unit_cost": 99.99,
      "description": "The best gizmos there are around."
    },
    {
      "name": "Gizmo v2",
      "quantity": 5,
      "unit_cost": 199.99
    }
  ]
}

Subtotal Line Parameters

The fields object toggles the discounts, tax, and shipping subtotal lines. Each setting can have a value of %, true, or false. For example to add a percent tax rate and flat shipping to your invoice you would send this:

{
  "fields": {
    "tax": "%",
    "discounts": false,
    "shipping": true
  },
  "tax": 7,
  "shipping": 15
}

Custom Field Parameters

Custom fields allow you to add additional fields to the invoice details in the top-right. Here's an example:

{
  "custom_fields": [
    {
      "name": "Gizmo",
      "value": "PO-1234"
    }
    {
      "name": "Account Number",
      "value": "CUST-456"
    }
  ]
}

Invoice Template Parameters

These parameters control the titles of the fields on the invoice template. If localization is used, the default values are translated to the specified language. Any invoice template parameter given will override the localized default.

Parameter Default Value
header INVOICE
to_title Bill To
ship_to_title Ship To
invoice_number_title #
date_title Date
payment_terms_title Payment Terms
due_date_title Due Date
purchase_order_title Purchase Order
quantity_header Quantity
item_header Item
unit_cost_header Rate
amount_header Amount
subtotal_title Subtotal
discounts_title Discounts
tax_title Tax
shipping_title Shipping
total_title Total
amount_paid_title Amount Paid
balance_title Balance
terms_title Terms
notes_title Notes

Create E-invoice

POST https://invoice-generator.com/ubl

Parameters

Creating an invoice with universal business language uses the same parameters as the Create Invoice PDF endpoint.

Rate Limiting

The invoice-generator.com API is rate limited. With almost every use case this should not be an issue. If an API call does trigger rate limiting then we will respond with a 429 status code to let you know to try generating your invoice again later. If you frequently run into these limits then you might also consider using our paid service at invoiced.com.

Support

Have a feature request or bug report? We would love to hear your thoughts! You can create an issue on GitHub for any issues you encounter or feature requests.

Using invoice-generator.com is subject to the Privacy Policy and Terms of Use.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].