-
Notifications
You must be signed in to change notification settings - Fork 0
Invoices
José Ignacio Amelivia Santiago edited this page May 27, 2021
·
1 revision
List All Invoices reference on the official TravelPerk documentation.
This function will return a list of all invoices.
# Retrieve all invoices without pagination
invoices = travelperk.expenses().invoices().query().get()
#Retrieve an invoices paginated response
invoices = travelperk.expenses().invoices().query().set_offset(50).set_limit(10).get()
Retrieve an invoice reference on the official TravelPerk documentation.
Given the serial number, this function will get the contents of a single invoice.
invoice = travelperk.expenses().invoices().get('your-invoice-serial-number')
Retrieve invoice PDF reference on the official TravelPerk documentation.
Given the serial number, this function will get the contents of a single invoice as a PDF file.
invoice = travelperk.expenses().invoices().pdf('your-invoice-serial-number')
List all invoice lines reference on the official TravelPerk documentation.
This function will return a list of all invoice lines.
# Retrieve all invoice lines without pagination
invoices = travelperk.expenses().invoices().lines_query().get()
#Retrieve an invoice lines paginated response
invoices = travelperk.expenses().invoices().linesQuery().set_offset(
50
).set_limit(
10
).get()
Will return all possible billing periods.
travelperk.expenses().invoices().billing_periods()
Will return all possible statuses.
travelperk.expenses().invoices().statuses()
Will return all possible sorting values.
travelperk.expenses().invoices().sorting()