Skip to main content

List bonuses

const { bonuses } = await priceos.bonuses.list({
  customerId: "customer_123",
  featureKey: "api_calls",
});
For more details, see List bonuses.

Update a bonus

const result = await priceos.bonuses.update({
  bonusId: "9e9be7e5-55d2-4b44-93af-c3687f4b8af5",
  amount: 150,
  expiresAt: null, // clear expiration
  reason: "manual_adjustment",
});
For more details, see Update bonus.

Delete a bonus

Delete removes a bonus grant that has not been consumed.
const result = await priceos.bonuses.delete("9e9be7e5-55d2-4b44-93af-c3687f4b8af5");
For more details, see Delete bonus.