Invoices

Headers

Some properties have configured headers for their invoices. For them we have this function that shows what the id of the header we want.

fetch_headers_invoice(token, lcode)

Add a invoice

To add a new invoice, we’ll use

add_invoice(token, lcode, rid)

if you want to add a header to the invoice

add_invoice(token, lcode, rid, header_id)

header_id being the id code of the selected header

Get the invoices

To collect a list of all invoices associated with a reservation we will use

fetch_invoices(token, lcode, rid)