import { PriceOS } from "priceos";import type { MyFeatures } from "./priceos.types";const priceos = new PriceOS<MyFeatures>(process.env.PRICEOS_API_KEY!);const result = await priceos.bonuses.list({ customerId: "customer_123", featureKey: "api_calls",});
curl -X GET "https://api.priceos.com/v1/bonuses?customerId=customer_123&featureKey=api_calls" \ -H "x-api-key: PRICEOS_API_KEY"
List bonuses for a customer, optionally filtered by feature key.
GET
/
v1
/
bonuses
Node.js
import { PriceOS } from "priceos";import type { MyFeatures } from "./priceos.types";const priceos = new PriceOS<MyFeatures>(process.env.PRICEOS_API_KEY!);const result = await priceos.bonuses.list({ customerId: "customer_123", featureKey: "api_calls",});
curl -X GET "https://api.priceos.com/v1/bonuses?customerId=customer_123&featureKey=api_calls" \ -H "x-api-key: PRICEOS_API_KEY"