Skip to main content
POST
List seat balances

Authorizations

Authorization
string
header
required

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

Body

application/json

List seat-level balances for commits and credits.

customer_id
string<uuid>
required

The customer ID to retrieve seat balances for

contract_id
string<uuid>
required

The contract ID to retrieve seat balances for

subscription_ids
string<uuid>[]

Optional filter to only include seats from specific subscriptions. If subscriptions ids are not mapped to SEAT_BASED subscriptions, error will be returned.

seat_ids
string[]

Optional filter to only include specific seats.

skip_missing_seat_ids
boolean
default:false

When true, any seat_ids not found in contract subscriptions will be silently omitted from the response instead of returning a 400 error.

include_credits_and_commits
boolean
default:false

Include credits and commits in the response

include_ledgers
boolean
default:false

Include ledger entries for each commit and commit. include_credits_and_commits must be set to true for include_ledgers=true to apply.

starting_at
string<date-time>

Include only commits or credits with access effective on or after this date (cannot be used with covering_date).

effective_before
string<date-time>

Include only commits or credits with access effective on or before this date (cannot be used with covering_date).

covering_date
string<date-time>

Include only commits or credits with access that cover this specific date (cannot be used with starting_at or ending_before).

limit
integer

Maximum number of seats to return. Range: 1-100. Default: 25. When include_credits_and_commits = true, if the total commits/credits across all seats exceeds 100, a limit of 100 applies to the total credits and commits. Seats are included greedily to maximize the number of seats returned. Example: if seat 1 has 98 commits and seat 2 has 10 commits, both seats will be returned (total: 108 commits). Each returned seat includes all of its associated credits and commits.

cursor
string

Page token from a previous response to retrieve the next page

Response

Success

data
object[]
required
pagination
object
required