Documentation Index
Fetch the complete documentation index at: https://docs.priceos.com/llms.txt
Use this file to discover all available pages before exploring further.
List bonuses
const { bonuses } = await priceos.bonuses.list({
customerId: "customer_123",
featureKey: "api_calls",
});
For more details, see List bonuses.You can view a customer’s bonuses in the customer deteails page.
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.You can update a customer’s bonus in the customer deteails page by clicking the More menu (…) next to the 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.You can delete a customer’s bonus in the customer deteails page by clicking the More menu (…) next to the bonus.