A price belongs to a product and says what it costs. One product can have many prices, such as monthly and yearly. Whatever sold a price keeps the price it sold at, so a price's amount never changes: archive it and add a new one.
Attributes
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier, starting price_. |
object | string | Always price. |
livemode | boolean | true in live mode. |
product | string | The product it prices, prod_.... |
currency | string | usd. Fixed once the price exists. |
type | enum | one_time or recurring (charged every period, on a subscription). |
recurring | object or null | For a recurring price: unit (day, week, month or year) and count. A period is one year at most. |
pricing | object | How it charges: model is per_unit (with unit_amount), package (unit_amount, package_size, and rounding up or down for a part package), graduated or volume (with tiers, each up_to, unit_amount and flat_amount; the last has no up_to), or customer_chooses (one-time only: minimum, maximum and suggested). |
tax_behavior | enum | exclusive: tax is added on top. inclusive: the price includes it. |
nickname | string or null | For your team, such as "Launch price". |
status | enum | active or archived. |
created | timestamp | When it was created. |
archived_at | timestamp or null | When it was archived. |
Example
Endpoints
| Endpoint | What it does |
|---|---|
POST /v1/prices | Add a price to a product. |
GET /v1/prices/{id} | Get a price by its ID. |
POST /v1/prices/{id} | Change a price's nickname. Its amount never changes. |
POST /v1/prices/{id}/archive | Stop a price being added to anything new. |
GET /v1/prices | List your prices, newest first. |