Skip to navigation

Seats

A seat gives one person a seat on an order: a named assignment of a seat price to a customer unit, usually one with kind: "user". You can bill the seats your customer bought, or only the seats in use, and a seat can carry its own credits, so each person has an allowance before they draw on the company’s shared balance. Because the seat holder is a customer unit, the same identity carries their seat, their usage and their credits.

Use a seat to:

  • Sell a fixed number of licences with a seat price that bills the seats purchased on the order.
  • Bill only the seats in use with a seat price that bills every active seat, so new hires need no order change.
  • Give each person an allowance of credits with a seat price that grants credits to each seat.

Seats are in the seats=v1 private beta: send Paid-Beta: seats=v1 with each request.

How seats work

  1. A seat price is a recurring price with seats. Its seats.quantity decides what’s billed: the seats purchased on the order, or the seats assigned.
  2. An order line puts the seat price on the customer. Its quantity is the number of seats bought, or, for assigned seats, the minimum billed.
  3. A seat assigns that line to one person. You reassign it when someone leaves and deactivate it when the seat is no longer needed. Seats are never deleted, because invoices and credit transactions refer to them.
seats.quantityBilled each periodSeat limit
purchasedThe order line’s quantity, however many seats are assigned.Active seats can’t exceed the line’s quantity.
assignedEvery active seat, or the line’s quantity if that’s higher.None, unless quantityLimits.maximum sets one.

Sell seats

Adatum sells its video analysis product to Brightrail at $30.00 a month for each analyst seat in use, with at least 20 billed, and gives each seat 1,000 analysis credits a month. Price amounts are decimal strings in minor units, so "3000" is $30.00:

POST /v1/prices
{
"product": "video_analysis",
"name": "Analyst seat",
"currency": "usd",
"type": "recurring",
"recurring": {
"interval": "month",
"unit": "seat",
"seats": { "quantity": "assigned" },
"pricing": { "type": "perUnit", "perUnit": { "unitAmount": "3000" } },
"grants": [
{ "creditCurrency": "analysis_credits", "amountPerUnit": "1000", "recipient": "seat" }
]
}
}

Brightrail’s order puts it on a line with "quantity": 20, the minimum billed. A seat price that bills purchased seats instead uses the line’s quantity as the number bought.

Assign a seat

Brightrail’s order is active, and Maya Chen joins the analytics team. Assign her a seat:

Create a seat on the order for the person’s customer unit. Send price as well when the order has more than one seat line.

{
"customerUnit": "cu_6Jq3Rt"
}

customerUnit takes the unit’s cu_ ID, your own ID for the unit, or a unit alias such as the person’s email. Store the cu_ ID where you can.

Assignment rules

  • One seat per person per product. A unit can hold only one active seat for a product.
  • The person must be billable. The unit must belong to the order’s customer, be active, and be billable.
  • Purchased seats are capped. Assigning more seats than the line’s quantity fails. To buy more, amend the order with updateQuantity. Lowering the quantity below the active seats fails until you deactivate some. Purchased seats can be assigned on a draft order, up to its quantity.
  • Assigned seats need an active order. Each one is billable, so they can’t be created on a draft. If the line has no quantity, quantityLimits.minimum is the minimum billed.
  • Seats end with their line. Ending the order or the seat line deactivates its seats, and a unit that holds an active seat can’t be archived.

How it bills

Purchased. Halberd LLP buys 25 reviewer seats from Clausebase at $40.00 a month. Each month’s invoice charges 25 × $40.00 = $1,000.00 in advance, whether 12 or 25 seats are assigned.

Assigned. At the start of each period, Paid bills the active seats, or the minimum if that’s higher. That count is the period’s paid-for count. When active seats rise above it, each extra seat is charged by day from the day it’s assigned, counting that day, on the next invoice, and the paid-for count goes up. Deactivating a seat credits nothing, but frees a paid-for slot that a new seat can take this period at no extra charge.

Brightrail has 42 active analyst seats on 1 November. November has 30 days:

DateActive seatsPaid-for countCharge
1 November424242 × $30.00 = $1,260.00 on November’s invoice, in advance
16 November, 5 assigned47475 × $30.00 × 15 ÷ 30 = $75.00 on December’s invoice (16 to 30 November is 15 days)
20 November, 2 deactivated4547Nothing credited
25 November, 2 assigned4747Nothing: they take the 2 freed slots

December’s invoice charges the $75.00 for November and December’s seats in advance at the active count on 1 December.

Credits per seat

A grants entry with recipient: "seat" on the seat price gives each active seat its own credits every interval, in its own balance. A seat assigned mid-interval gets a share prorated by day, and purchased seats that aren’t assigned get nothing. A price can also have an entry with recipient: "customer", for a shared team balance alongside the per-seat ones.

Events that name the seat holder in customerUnit, or a unit under them, spend the seat’s credits first, then the customer’s shared balance, then overage. In Brightrail’s November:

SeatCredits granted for November
Active on 1 November1,000
Assigned on 16 November1,000 × 15 ÷ 30 = 500
Assigned on 25 November (25 to 30 November is 6 days)1,000 × 6 ÷ 30 = 200

Maya uses 1,180 analysis credits in November: 1,000 from her seat, then 180 from Brightrail’s shared balance.

Retrieve a seat to see what’s left in credits, or list credit balances with holder=seat for the full balance.

Reassign or free a seat

Update a seat with a new customerUnit to hand it to someone else, such as a leaver’s replacement. It keeps its billing and its credits.

Deactivate a seat to free it. It stays readable with status: "inactive", nothing is credited for the rest of the period, and any credits left on it are forfeited. An inactive seat can’t be updated or reactivated: assign a new seat instead. List seats returns only active seats unless you filter by status=inactive.