This resource represents a price for a product. Each product can have many unique prices.
Properties
id string
Unique id of the record.
createdAt string
The date this item was created in RFC3339 format.
updatedAt string
The date this item was updated in RFC3339 format.
object string
The object type of this resource.
productId string
The ID of the associated product.
amount int
Total amount in cents for this price.
currency string
The 3 letter currency code representing the currency of this price.
type string
| Type | Description |
|---|---|
oneTime | Used for one-time product pricing. |
recurring | Used with subscriptions to determine the billing period of the subscription. The interval along with intervalCount properties specifies what the billing period is. |
interval string | null
The frequency at which a subscription can be billed with this price. One of day, week, month or year.
- Note: This is only present when
typeisrecurring.
intervalCount: int | null
The number of billing intervals for this price, as defined by the interval attribute. Specifies how often a subscription is charged within the given interval.
- For example, if
interval=monthandintervalCount=3, the subscription bills every 3 months. - Note: This is only present when
typeisrecurring.
{
"id": "C-wch-eSg",
"createdAt": "2024-09-11T13:59:58.845233992Z",
"object": "price",
"amount": 60000,
"currency": "usd",
"interval": "month",
"intervalCount": 3,
"productId": "2cf93cf0-45fa-485f-b584-03c2c38a3999",
"type": "recurring",
"updatedAt": "2024-09-11T13:59:58.845233992Z"
}