Skip to navigation

List event lineages

Lists where events went in billing, latest received first, each in the same shape as an event’s lineage. Filter by customer, invoice, invoiceLine, usageLine, eventName or status; without one of the first five, set a timestamp window of at most 92 days. When held transparency is enabled, the default list excludes waiting and outdated holds, including broad status=notCounted reads. Select waiting holds with status=notCounted&outcome=held, or outdated holds with status=notCounted&outcome=outdated. Pass include=summary for counts over every selected event, including not-counted events by reason; with usageLine as well, the summary explains that usage line. The timestamp window is of event timestamps, from 2026-08-05: an event received since then with an earlier timestamp is only retrieved by its ID.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the event_lineage=v1 beta. Send this header to use it.

Allowed values:

Query parameters

cursorstringOptional

The nextCursor of the previous page. Omit it for the first page.

customerstringOptional1-255 characters

Only this customer’s events: its cus_ ID, your externalId, or one of its aliases.

eventNamestringOptional1-255 characters

The event’s name, such as ticket.closed.

includeenumOptional

Pass summary to add summary, counts over every event the filters select, not only this page.

Allowed values:
invoicestringOptional1-255 characters

Only events counted on this invoice, by its inv_ ID.

invoiceLinestringOptional1-255 characters

Only events counted on this invoice line, by its invl_ ID.

limitintegerOptional1-100Defaults to 10
How many objects to return, 1 to 100. Defaults to 10.
outcomeenumOptional

With status=notCounted, only events not counted for this reason, as notCounted.type gives it, voided events left out. held selects waiting holds; outdated selects holds recorded as outdated and requires held transparency to be enabled. Other or omitted outcomes select ordinary usage when enabled. More values may be added.

statusenumOptional

Only events with this lineage status, or with voided, only voided events. With held transparency enabled, omitted status and broad notCounted select ordinary non-held usage; only an explicit held or outdated outcome selects holds. invoice, invoiceLine and usageLine select counted events only.

Allowed values:
timestamp[gte]datetimeOptional

Inclusive start of the window of event timestamps, no earlier than 2026-08-05. Required with timestamp[lt] unless customer, invoice, invoiceLine, usageLine or eventName is set, and at most 92 days before it.

timestamp[lt]datetimeOptional

Exclusive end of the window of event timestamps. Without it, timestamp has no upper bound, and the list stops at the events Paid had received when the first page was requested.

usageLinestringOptional1-255 characters

Only events counted on this usage line, by the ul_ ID an event’s lineage returns in usage. With include=summary, summary.usageLine explains the line.

Response

200
objectenum

The type of object. Always list.

Allowed values:
datalist of objects

The events’ lineages on this page, latest received first. In a list, credits is what each event spent within the filters, and creditGrant is null; retrieve one event’s lineage for its grants.

hasMoreboolean
Whether another page follows this one.
nextCursorstring or null

Send it as cursor to get the next page. Null on the last page.

summaryobject
Counts over every event the filters select.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error