Skip to main content
GET
List customer invoices
API v2 is in beta. Endpoints return the X-Lago-Endpoint-Status: beta header.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_external_id
string
required

Customer external identifier.

Example:

"external_123"

Query Parameters

limit
integer
default:20

Maximum number of records per page. Values outside the supported range return 400.

Required range: 1 <= x <= 100
Example:

20

after
string

Opaque next_cursor from a previous response. Returns the next page. Cannot be combined with before or include_total_count=true. Keep the same filters when paging.

Example:

"eyJ2IjoxLCJvIjp7InQiOiJ0YXhlcyIsInMiOiJjcmVhdGVkX2F0OmRlc2MsaWQ6ZGVzYyJ9LCJrIjpbIjIwMjItMDQtMjlUMDg6NTk6NTEuMDAwMDAwWiIsIjFhOTAxYTkwLTFhOTAtMWE5MC0xYTkwLTFhOTAxYTkwMWE5MCJdfQ"

before
string

Opaque prev_cursor from a previous response. Returns the previous page in the same list order. Cannot be combined with after or include_total_count=true. Keep the same filters when paging.

Example:

"eyJ2IjoxLCJvIjp7InQiOiJ0YXhlcyIsInMiOiJjcmVhdGVkX2F0OmRlc2MsaWQ6ZGVzYyJ9LCJrIjpbIjIwMjItMDQtMjlUMDg6NTk6NTEuMDAwMDAwWiIsIjFhOTAxYTkwLTFhOTAtMWE5MC0xYTkwLTFhOTAxYTkwMWE5MCJdfQ"

include_total_count
boolean
default:false

Requests the total number of matching records. Supported only on the first page, without after or before. The count can be estimated; total_count_estimated is then present and true.

Example:

true

created_at_from
string

Inclusive lower bound on the creation time, as an ISO 8601 date or timestamp. A date starts at midnight UTC. Invalid values return 422.

Example:

"2022-04-01T00:00:00Z"

created_at_to
string

Inclusive upper bound on the creation time, as an ISO 8601 date or timestamp. A date includes that whole UTC day. Invalid values return 422.

Example:

"2022-04-30T23:59:59Z"

invoice_type
enum<string>

Invoice type. Type of catalog invoice to list.

Available options:
contract,
advance_fees,
credit_purchase
Example:

"contract"

billing_entity_codes[]
string[]

Billing entity codes[]. Billing entity codes.

Billing entity code.

payment_status[]
enum<string>[]

Payment statuses.

Payment status.

Available options:
pending,
succeeded,
failed
status[]
enum<string>[]

Invoice statuses.

Invoice status.

Available options:
draft,
finalized,
voided,
failed,
pending
currency
string

Currency as an ISO 4217 code.

Example:

"example"

purchase_order_number
string

Purchase order number.

Example:

"example"

search_term
string

Search term.

Example:

"example"

partially_paid
boolean

Partially paid.

Example:

false

payment_dispute_lost
boolean

Payment dispute lost.

Example:

false

payment_overdue
boolean

Payment overdue.

Example:

false

amount_from
integer

Amount from. Invoice total amount bound, in cents.

Example:

1000

amount_to
integer

Amount to. Invoice total amount bound, in cents.

Example:

1000

issuing_date_from
string<date>

Issuing date from. Inclusive issuing date bound.

Example:

"2022-04-29"

issuing_date_to
string<date>

Issuing date to. Inclusive issuing date bound.

Example:

"2022-04-29"

settlements[]
enum<string>[]

Settlements[]. Settlement types.

Settlement type.

Available options:
payment,
credit_note

Response

Successful response

invoices list.

invoices
object[]
required

Records in this response.

meta
object
required