This method retrieves information about an invoice in one account.
Syntax
invoice_obj = getInvoice(username, password [, customer_number], reference_no, with_vat)
Return value
invoice_obj, the method returns a struct of type invoice_obj with information about the invoice.
Parameters
- username
string
Username for LoopiaAPI. - password
string
Password for LoopiaAPI. - customer_number
string
Customer ID for the account. Used only by resellers who work with the customer’s account. - reference_no
string
Invoice number. - with_vat
boolean
1 if the amount should include VAT, 0 otherwise.