A product defines what you’re selling — a one-time item, a recurring subscription, or a metered usage plan. Products are referenced when creating checkouts.
The product object
Unique identifier. Prefixed with prod_.
Display name of the product.
Billing type. One of one_time, subscription, or metered.
The asset this product is priced in.
The currency code this product is priced in, e.g “NGN”
Price in the product’s asset.
For subscription products. One of day, week, month, or year.
For metered products. The unit being measured (e.g. "token", "request").
Units consumed per credit.
Total credits granted to the customer when this product is purchased.
Arbitrary key-value data.
Create a product
POST /product
Body
one_time, subscription, or metered.
Currency code to charge in, e.g “NGN”.
Price amount in the asset.
Required for subscription type. One of day, week, month, year.
For metered products. The unit label.
Units consumed per credit.
Total credits granted on purchase.
Arbitrary key-value data.
Update a product
PUT /product/{id}
Body
Merged with existing metadata.
Delete a product
DELETE /product/{id}