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"
		},
		{
		"description":"Room 2 (13/11/2012 @ 19:30 - 21:30)",
		"qty":"2.00",
		"rate":"23.50"
		}
		],
	"total":"94.00",
	"discount":"0.00",
	"tax_rate":"20.00",
	"tax_amount":"18.80",
	"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)
totalInvoice total (ex tax)
discountAn amount to subtract from the above total
tax_rateTax rate (percentage)
tax_amountTax amount
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