Invoice Line Items

List usage events for an invoice line

Trace a usage invoice line back to the billing entries, meter matches, and events that produced it (REV-6228). FK-driven; does not re-rate from live prices.

GET/invoice-line-items/{id}/usage-events

Trace a usage invoice line back to the billing entries, meter matches, and events that produced it (REV-6228). FK-driven; does not re-rate from live prices.


Common errors

  • 400 invalid_request — malformed payload or failed validation.
  • 401 authentication_error — missing, invalid, expired, or revoked credential. Codes: authentication_failed, invalid_api_key, expired_api_key, api_key_revoked, session_invalid, merchant_required. Carries a WWW-Authenticate: Bearer challenge.
  • 404 resource_missing — the referenced resource does not exist or is not visible to your key.

Pagination

Offset-based with limit (default 25, max 100) and offset. The response pagination block includes total and hasMore. See the pagination guide for SDK auto-paging helpers.

x-api-key<token>

Your RevKeen merchant API key. Create and manage keys in Dashboard → Settings → Developer. Use rk_sandbox_* for staging/test and rk_live_* for production. The same key may be sent as Authorization: Bearer <key> if that suits your HTTP client better. A missing, invalid, expired, or revoked key returns 401 with a WWW-Authenticate: Bearer challenge; a valid key without the required scope returns 403.

In: header

Path Parameters

id*string

Invoice line item ID

Formatuuid

Query Parameters

starting_after?string

Cursor: return entries with id greater than this value

Formatuuid
limit?string

Max billed entries to return (default 50, max 100)

include_excluded?string

When true, also return excluded-but-considered decisions for the line period

Response Body

application/json

application/json

application/json

application/json

application/json

Stuck on an error response? Ask the RevKeen assistant to explain it.
curl -X GET "https://api.revkeen.com/v2/invoice-line-items/11111111-1111-4111-8111-111111111111/usage-events?starting_after=11111111-1111-4111-8111-111111111111&limit=50" \
  -H "x-api-key: $REVKEEN_API_KEY"

Synthetic documentation data, validated against the response schema; not a live API result.

{  "object": "list",  "data": [    {      "outcome": "matched",      "exclusion_reason": "string",      "entry": {        "id": "00000000-0000-4000-8000-000000000001",        "amount_minor": 0,        "precise_amount_minor": "string",        "quantity": "string",        "currency": "string",        "rating_version": 0,        "price_id": "00000000-0000-4000-8000-000000000001",        "price_terms_hash": "string"      },      "match": {        "id": "00000000-0000-4000-8000-000000000001",        "meter_id": "00000000-0000-4000-8000-000000000001",        "meter_definition_version": 0,        "aggregation": "string",        "resolved_quantity": "string",        "unit_of_measure_code": "string"      },      "event": {        "id": "00000000-0000-4000-8000-000000000001",        "event_name": "string",        "event_time": "2019-08-24T14:15:22Z",        "quantity": "string",        "idempotency_key": "string"      }    }  ],  "has_more": true,  "url": "https://example.com/webhooks/revkeen",  "line": {    "id": "00000000-0000-4000-8000-000000000001",    "invoice_id": "00000000-0000-4000-8000-000000000001",    "meter_id": "1e13adc1-9ac9-453b-b100-17d2f2da2eb8",    "usage_record_id": "90a89d16-1c16-4b07-9de4-90b4d3111430",    "unit_amount_minor": 0,    "total_amount_minor": 0,    "currency": "string",    "usage_quantity": "string",    "billed_amount_minor_sum": 0  }}

Put this endpoint to work