Skip to content
Paykit
Esc
↑↓navigate↵open⌘Jpreview
On this page

SetQuantity

Set a non-consumable feature's quantity.

Source: packages/paykit/src/Billing/SetQuantity.binding.ts Kind: Binding · Product: Subscription · Provides: Paykit.SetQuantity

Set a non-consumable feature’s quantity. A seat is bought, not spent: the command sets the total the account holds, prorates the difference for the rest of the period, and records the pending charge under the request’s dedupeKey. ChargeQuantityProration collects it.

Adding seats

const setQuantity = yield* Paykit.SetQuantity(account);
const { quantity, proration } = yield* setQuantity({
  feature: "seats",
  quantity: 8,
  dedupeKey: "seats:2026-11-06",
});

Was this page helpful?