MIDAS API
Available in API 2.0+

add_invoice

Creates a new invoice
Required ParametersPossible ValuesDescription
clientClient IDThe numeric ID of the existing client that the invoice being added for
item_xstringThe item to be invoiced. Increment x to each new item to appear on the invoice. For example, to create an invoice with two items, the first item to appear on the invoice should be passed as item_1, the second as item_2, and so forth
qty_xnumberThe quantity of the corresponding item_x item to be added
rate_xnumberThe rate (charge) (without currency symbol - i.e. 10.00) of the corresponding item_x item to be added
Optional ParametersPossible ValuesDescription
notesstringsAdditional notes to appear on the invoice
discountnumber[MIDAS v4.12+] An amount to subtract from the pre-tax invoice total
taxnumberThe percentage rate of tax to be applied to the invoice. If this parameter is omitted, the default tax rate will be applied
Example Response
{
	"invoice_added":"MIDAS00075"
}
Variables ReturnedDescription
invoice_addedThe Invoice number/reference of the newly created invoice