Search⌘ K
AI Features

Retrieve Invoices

Explore how to retrieve and search invoices with the Square API in Python. Learn to list invoices by location, limit results, and find invoices by customer or multiple locations. This lesson helps you manage invoice data effectively for business operations.

We'll cover the following...

List invoices

For a given location, this endpoint returns a list of invoices. The following code demonstrates the simplest implementation of this endpoint:

Python
result = client.invoices.list_invoices(
location_id = "{{LOCATION_ID}}"
)
if result.is_success():
pprint(result.body)
elif result.is_error():
pprint(result.errors)

We can also provide ...