MIDAS API Addon MIDAS API: get_invoice

Retrieves a specific invoice
Required ParametersPossible ValuesDescription
invoiceInvoice ReferenceInvoice Reference
Example Response
↓ Show
{
	"client":"MIDAS (MIDAS2)",
	"date":"5/11/2012 @ 10:00",
	"items":[
		{
		"description":"Room 1 (6/11/2012 @ 19:30 - 21:30)",
		"qty":"2.00",
		"rate":"23.50",
		"tax_rate":"20.00",
		"tax_amount":"4.70"
		},
		{
		"description":"Room 2 (13/11/2012 @ 19:30 - 21:30)",
		"qty":"2.00",
		"rate":"23.50",
		"tax_rate":"20.00",
		"tax_amount":"4.70"
		}
		],
	"total":"188.00",
	"paid":"0.00",
	"history":[
		{
		"action":"Created",
		"date":"5/11/2012 @ 08:45",
		"user":"MIDAS Administrator"
		},
		{
		"action":"Modified",
		"date":"5/11/2012 @ 09:42",
		"user":"MIDAS Administrator"
		},
		{
		"action":"Emailed",
		"date":"5/11/2012 @ 10:00",
		"user":"MIDAS Administrator"
		}
	]
}
Variables ReturnedDescription
clientClient
dateInvoice Date (or "Invoice Not Sent if invoice hasn't been emailed/printed)
itemsInvoice items
descriptionThe item's description
qtyThe item's quantity
rateThe item's rate (charge)
tax_rateThe percentage tax applied to the item
tax_amountThe amount of tax applied to the item
totalInvoice total (ex tax)
paidAmount paid
historyInvoice history
actionThe action performed. This will be one of the following:
"Created", "Modified", "Printed", "Emailed", "Payment Received", "Payment Overdue", "Paid In Full"
dateThe date/time the action occurred
userThe user who performed the action