Latest News: MIDAS v4.28 Out Now | Refer-a-Friend | MIDAS Turns 15

MIDAS API Addon MIDAS API: add_invoice

Available in API 2.0+
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_xdecimalThe rate (charge) (without currency symbol - i.e. 10.00) of the corresponding item_x item to be added
tax_xpercentageThe tax rate to be charged against the corresponding item_x item to be added. If omitted, the global Payment Terms setting will be used
Optional ParametersPossible ValuesDescription
typeregular | deposit | cancel | creditThe type of invoice to be created. A value of "deposit" denotes a Deposit Invoice, a value of "cancel" denotes a Cancellation Invoice, and a value of "credit" denotes a Credit Note. If omitted, a regular invoice will be created
notesstringAdditional notes to appear on the invoice
internal_notesstringAdditional internal notes associated with the invoice
termnumberThe number of days allowed for the client to pay from the date of invoice. If omitted, the global Default Tax Amount setting will be used
paiddecimalThe amount paid againt the invoice (without currency symbol - i.e. 10.00)
creditdecimalThe amount of credit applied to the invoice (without currency symbol - i.e. 10.00)
refundeddecimalThe amount refunded against the invoice (without currency symbol - i.e. 10.00)
Example Response
{
	"invoice_added":"MIDAS00075"
}
Variables ReturnedDescription
invoice_addedThe Invoice number/reference of the newly created invoice