> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sleetpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Seats

> Per-seat billing, assigning seats to people and checking access.

A seat-based product is billed `price x seats`. The buyer picks the quantity at checkout and it is stored on the order or subscription.

## Change the quantity

```ts theme={null}
await sleetpay.subscriptions.changeSeats(subscriptionId, 8);                      // bills added seats pro rata now
await sleetpay.subscriptions.changeSeats(subscriptionId, 8, "do_not_bill");       // no charge for the change
```

Added seats are billed pro rata for the rest of the period. Removing seats takes effect immediately, refunds nothing, and the next renewal bills the smaller number. You cannot go below the seats currently assigned. For card-billed subscriptions the quantity changes at Stripe first, and a declined card leaves it unchanged.

## Assign seats to people

```ts theme={null}
await sleetpay.seats.assign({ subscriptionId, email: "ada@acme.com" }); // idempotent per email
await sleetpay.seats.list({ subscriptionId });
await sleetpay.seats.revoke(seatId);
```

Pass exactly one of `subscriptionId` or `orderId`. Assignment is capped by the seats paid for and answers `409` when full. Buyers can do the same in their portal.

## Entitlement check

```ts theme={null}
const { items } = await sleetpay.seats.list({ email: "ada@acme.com" });
const hasAccess = items.length > 0;
```

This returns every seat that person holds on a live subscription (active or past due) or a paid order. What a seat unlocks in your app is up to you.

## Events

`customer_seat.assigned` and `customer_seat.revoked`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.