List Invoice Items

View as Markdown

List invoice items for an account with pagination.

Surfaces floating/pending invoice items (e.g. usage charges not yet swept into a renewal invoice) that were previously only reachable by their id. Works for both User and API Key authentication; account access is validated by the endpoint dependency.

Authentication

AuthorizationBearer

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

Path parameters

account_idstringRequired

Query parameters

customer_idstring or nullOptional

Filter by customer ID (cus_…).

subscription_idstring or nullOptional

Filter by subscription ID (sub_…).

statusenum or nullOptional

Filter by attachment state: ‘floating’ (unbilled, invoice_id is null) or ‘attached’ (swept onto an invoice).

Allowed values:
limitintegerOptional1-100Defaults to 50
Number of items per page
offsetintegerOptional>=0Defaults to 0
Number of items to skip
filterstringOptionalDefaults to {}

Filter conditions as key-value pairs or advanced filter objects (JSON string)

sortBystring or nullOptional
Field to sort by
sortOrderintegerOptionalDefaults to -1

Sort order: 1 for ascending, -1 for descending

searchstring or nullOptional

Keyword-based search across multiple fields

Response

Successful Response
itemslist of objects
totalinteger
has_moreboolean

Errors

422
Unprocessable Entity Error