generate_invoice
Create professional invoices via REST API with customizable buyer, seller, service details, tax calculations, and multi-language support.
Instructions
Quickly generate invoices through a REST API endpoint
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Represents the invoice number | |
| buyer_company_name | Yes | The company name of the buyer entity. It can also be just a simple name of a person in case the buyer is not a company. | |
| buyer_tax_number | No | The tax number of the buyer's company. This field is not mandatory. | |
| buyer_vat_number | No | The VAT number of the buyer's company. This field is not mandatory. | |
| buyer_address | No | The address of the buyer entity. This field is not mandatory. | |
| seller_company_name | Yes | The company name of the seller entity. This can be a person's name as well, in case the seller is not a company. | |
| seller_tax_number | No | The tax number of the seller's company. This field is not mandatory. | |
| seller_vat_number | No | The VAT number of the seller's company. This field is not mandatory. | |
| seller_address | No | The address of the seller. This field is not mandatory. | |
| seller_bank_name | No | The bank name of the account of the seller. This field is not mandatory. | |
| seller_bank_account | No | The bank account of the seller, where the payment will be made. This field is not mandatory. | |
| services | Yes | A JSON representing the services, and their prices that will be written on the invoice. The JSON is using the following format: [{\\\\\\\"name\\\\\\\": \\\\\\\"My Service\\\\\\\", \\\\\\\"price\\\\\\\": \\\\\\\"30\\\\\\\", \\\\\\\"units\\\\\\\": \\\\\\\"Hours\\\\\\\", \\\\\\\"discount\\\\\\\": \\\\\\\"1000\\\\\\\", \\\\\\\"quantity\\\\\\\": \\\\\\\"1000\\\\\\\"}] The JSON is an array. Each element of the array represents a service. Each service is a JSON object with the following properties: nam | |
| tax | Yes | The tax percentage aplied to the invoice. | 20 |
| shipping | No | The amount to be paid for shipping. This field is not mandatory. | 30 |
| service_fee | No | A service fee to add on the invoice. This field is not mandatory. | 10 |
| currency | Yes | The currency in which the prices will be shown on the invoices. It can be any 3 letter currency code. If the code is not recognized then it will be simply displayed directly. | |
| date | Yes | The date of the invoice | |
| due_date | No | The due date of the invoice. This field is not mandatory. | |
| logo | No | A logo to display on the top left corner of the invoice. This field is not mandatory. | |
| locale | No | The language of the invoice. Accepted languages are: 'en' => 'English', 'nl' => 'Dutch', 'de' => 'German', 'es' => 'Spanish', 'fr' => 'French', 'it' => 'Italian', 'pl' => 'Polish', 'pt_BR' => 'Brazilian Portuguese', 'ro' => 'Romanian', |