v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03101355448.4 KB
OpenMeter Customers

List credit transactions

List credit transactions for a customer.

Returns an immutable, chronological record of credit movements: funded credits and consumed credits. Transactions are returned in reverse chronological order by default.

get/openmeter/customers/{customerId}/credits/transactions

Path parameters

customerIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH

Query parameters

sizeinteger

The number of items to include per page.

afterstring

Request the next page of data, starting with the item after this parameter.

beforestring

Request the previous page of data, starting with the item before this parameter.

type'funded' | 'consumed' | 'expired' | 'voided'

The type of the credit transaction.

  • funded: Credit granted and available for consumption.
  • consumed: Credit consumed by usage or fees.
  • expired: Credit removed because it expired before being used.
  • voided: Credit removed because the grant was voided before being used.

Filter credit transactions returned in the response.

{
  "currency": "USD"
}

Response

Cursor paginated response.

Example response

{
  "data": [
    {
      "id": "01G65Z755AFWAKHE12NY0CQ9FH",
      "labels": {
        "env": "test"
      },
      "created_at": "2023-01-01T01:01:01.001Z",
      "booked_at": "2023-01-01T01:01:01.001Z",
      "currency": "USD"
    }
  ],
  "meta": {
    "page": {
      "size": 10
    }
  }
}