API Documentation

Our API url is below. You should send all your requests to this API url to create invoices. You should send invoice details and other details like invoice customization, delivery options etc.. to this API url as described in documentation. There are also example API calls at the bottom of the page.

https://invoiceapi.net/api/invoice

1) Information taken automatically from your account:

Data Taken From
Sender Name The company name you used on registration. You need to contact support@invoiceapi.net, if you need to change it.
Sender Address The company address you used on registration. You need to contact support@invoiceapi.net, if you need to change it.
Company Logo The company logo you should set on your dashboard. Without uploading your company logo, API will not work.

2) Required parameters that must be send withevery request:

Parameter Description
token This is your token. You can find your token on your dashboard.
invoiceid The id or reference of your invoice. It will be displayed as Reference: 'parameter'. So if you send 123456 as the invoice id, it will be displayed as Reference: 123456 on the invoice.
vat The VAT that will be added to subtotal. This needs to be send as integer. For example if the VAT rate is %20, you should send 20. If no vat is applicable, you must send 0.
to This is the recipient company or person information. You must put comma for every new line you need. Try not to exceed 4 lines for a better visual. For example if you send:
ABC Company,Example Street 432 District,Tax id: IE4383294,Ireland
it will print 4 lines of data. Do NOT use comma in the address for any other reason except seperating lines.
items This is the items or products that will be invoiced. Each different item must be seperated with // string and for each item there must be at least 3 entries seperated with comma. For example:
Product1,2,49.90//Product2,1,99.90
The first paramter you send seperated with comma is the product name, the second is quantity and third one is price without VAT.If you need to add a product description, you must send 4 parameters and second parameter must be the description: For example:
Product1,Silicon Cover Case,2,49.90//Product2,Electronic Component,1,99.90
You can add as many items as you like seperated with // and each item must have 3 parameters seperated with comma(if you need to add product information it must have 4 parameters).

3) Optional Parameters:

Parameter Description
currency The currency symbol that will be used. Default is $. You can use any symbol or string like €, INR, PKR etc..
symbolalignment The alignment of the currency symbol. Default is 'left'. You can use 'left' or 'right'.
language The language of the invoice. Default is 'en' (English). You can use one of these according to subscribed plan: en, fr, es, de, it, pt, et, nl, lt, pl, ro, sv, tr
title The title of the invoice. Default is 'Sale Invoice'
color Color scheme of the invoice. You can set this to your company's color. Default is: '007fff' You can send any color hex code without the '#'.
discount The discount in percentage. You must send an integer. If you are going to apply %10 discount to subtotal, you should send 10.
invoicedate The date of the invoice. You can send any string like 26.05.2021, 05/26/2021, 26th May 2021 etc.. Default is current date in GMT
invoicetime The time of the invoice. You can send any string like 12:03, 12:03 PM, 12.03.59 etc.. Default is current time in GMT
invoiceduedate The due date of the invoice. You can send any string like 26.05.2021, 05/26/2021, 26th May 2021 etc..
badge The badge on the invoice. You can send any string. For example: 'Paid'
notetitle If you need to add an informational text, this is the title of it.For example: 'Attention'
notetext If you need to add an informational text, this is the body of it.For example: 'You can't return your product without an invoice.'
extrafromline The from section of your invoice is taken automatically from your registration info(Company name, address). If you need to add an additional line to 'from' section, you can use this. For example 'Tax id:IE3847548'. You can send any string.
deliver If you need to send the generated invoice to an email address, you must send the email address with this parameter. For example: 'test@example.com'
testmode Default is 2 (disabled). If you send 1, your invoice count will not increase. Test mode's total will always be ZERO and it will have a TEST MODE badge.Delivery will not work with test invoices and test invoices will be deleted after 1 week.

API Request Example

https://invoiceapi.net/api/invoice.php?token=YOUR_TOKEN&to=ABC Company,High Street No:21,Tax Number:IE43894384&vat=18&invoiceid=123456&color=F49907&extrafromline=London / UK&badge=Paid& notetitle=Warning& notetext=You can't return an item without an invoice.&items=Item No 1,Monthly Payment of Pro Subscription,1,49.99//Service Fee,1,9.99& currency=€&language=en&discount=25

Example Request Result

Invoice API

© 2021 invoiceapi.net - All rights reserved

Privacy Policy Terms Of Use