List Invoices and Get Invoice Details
Explore how to use FreshBooks API to list all invoices in your account and retrieve detailed information about a specific invoice. Understand endpoint usage, query parameters, and response handling to effectively manage invoice data within your JavaScript applications.
We'll cover the following...
We'll cover the following...
In this lesson, we’ll see how we can use FreshBooks API to list all invoices in our account and retrieve detailed information about a single invoice. We use the following endpoints:
- List all invoices:
/accounting/account/{ACCOUNT_ID}/invoices/invoices - Get a single invoice:
/accounting/account/{ACCOUNT_ID}/invoices/invoices/{INVOICE_ID}
List all invoices
This API call returns all the invoices against the account ID given in the URL.
Request parameters
This endpoint does not take body parameters. However, we can apply some filters by using the include[] query parameter. Let’s see some of the values we can use ...