Skip to main content
GET
List customer credit notes
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

search_term
string

Search term.

Example:

"example"

currency
string

Currency as an ISO 4217 code.

Example:

"example"

invoice_number
string

Invoice number.

Example:

"example"

purchase_order_number
string

Purchase order number.

Example:

"example"

credit_status
enum<string>

Credit status.

Available options:
available,
consumed,
voided
Example:

"available"

refund_status
enum<string>

Refund status.

Available options:
pending,
succeeded,
failed
Example:

"pending"

reason
enum<string>

Reason. Reason for issuing the credit note.

Available options:
duplicated_charge,
product_unsatisfactory,
order_change,
order_cancellation,
fraudulent_charge,
other
Example:

"duplicated_charge"

self_billed
boolean

Self billed. Whether the invoice is self-billed.

Example:

false

issuing_date_from
string<date>

Issuing date from. Issuing date bound.

Example:

"2022-04-29"

issuing_date_to
string<date>

Issuing date to. Issuing date bound.

Example:

"2022-04-29"

amount_from
integer

Amount from. Credit note amount bound, in cents.

Example:

100

amount_to
integer

Amount to. Credit note amount bound, in cents.

Example:

100

billing_entity_codes[]
string[]

Billing entity codes[]. Billing entities.

Billing entity code.

types[]
enum<string>[]

Types[]. Amount types to include.

Credit note amount type.

Available options:
credit,
refund,
offset

Response

Successful response

credit notes list.

credit_notes
object[]
required

Records in this response.

meta
object
required