Skip to navigation

Retrieve an event's lineage

Returns where one event went in billing: the usage lines it counted on and what it added to each, the invoice and invoice line that bill them, and the credits it spent. When it counted on no line, notCounted says why. Lineage covers events received from 2026-08-05. {event} takes the event’s evt_ ID. With held transparency enabled, a known held or outdated event is retrieved directly, without a view selector; its stored customer can be null.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

eventstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.

Headers

Paid-BetaenumRequired

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

Allowed values:

Response

200
objectenum

The type of object. Always eventLineage.

Allowed values:
asOfdatetime

When the lineage was read; billing may add to it later.

creditslist of objects
Every credit spend the event caused.
customerstring or null1-255 characters

The customer’s cus_ ID; null when billing never resolved one.

eventstring1-255 characters

The event’s evt_ ID.

eventNamestring1-255 characters

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

historylist of objects or null

What happened to the event, oldest first: its receipt, each refusal, skip, hold and replay, where it counted and stopped counting, its credit spends and its invoices, and its void with the credits it gave back. Refusals, skips, holds and replays are recorded from November 3, 2026, so an older event’s history may leave out retries before it counted. Null in a list; retrieve the event’s lineage for its history.

livemodeboolean

true for an object on a live account, false on a test account.

notCountedobject
Why the event counted on no usage line.
partialFailureobject or null
Why billing refused the event on an order line.
receivedAtdatetime

When Paid received the event. Lineage covers events received from 2026-08-05.

statusenum

counted once it counted on a usage line, notCounted when it hasn’t (notCounted says why, including processing while billing is still working on it). A meter’s event with no product is notCounted: skipped, or notProcessed when received before not-counted outcomes began being recorded on 2026-11-02. More values may be added.

Allowed values:
timestampdatetime

When the event occurred, as billing dates it: the event’s timestamp, else, for a signal sent through the legacy API, a valid data.historicalTimestamp, else its receipt. The list’s timestamp[gte] and timestamp[lt] filter on it.

usagelist of objects
Every usage line the event counted on.
voidedboolean

Whether the event was voided. A voided event keeps its lineage: history says when, by whom and why, and what credits went back.

Errors

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