Seats

Manage seat-based licenses

Seat changes are billed at the end of the period (true-up model).

Add

await commet.seats.add({
  externalId: 'user_123',
  seatType: 'editor',
  count: 5,
})

Remove

await commet.seats.remove({
  externalId: 'user_123',
  seatType: 'editor',
  count: 2,
})

Set

Sets exact count - use when syncing from your system.

await commet.seats.set({
  externalId: 'user_123',
  seatType: 'editor',
  count: 10,
})

Get Balance

const balance = await commet.seats.getBalance({
  externalId: 'user_123',
  seatType: 'editor',
})

How is this guide?