Skip to main content

Get all invoices

Route

GET
/api/v1/invoices?page=2&per_page=20&external_customer_id=hooli_1234

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request GET "$LAGO_URL/api/v1/invoices?page=2&per_page=20&external_customer_id=hooli_1234" \
--header "Authorization: Bearer $API_KEY"

Arguments

AttributesTypeDescription
per_pageString      OptionalNumber of records per page.
pageString      OptionalPage number
issuing_date_fromString      OptionalFilter results by FROM date.
Format example: 2022-02-15
issuing_date_toString      OptionalFilter results by TO date.
Format example: 2022-02-15
external_customer_idString      OptionalFilter results by CUSTOMER unique identifier in your application
statusString      OptionalFilter results by status (draft or finalized)
payment_statusString      OptionalFilter results by payment status (pending, failed or succeeded)

Responses

Invoices were successfully found.

Returns a list of invoice objects.