v1
latestOpenAPI 3.0.02026-07-1498163181.9 KBCreate a price
Creates a price with product
Request body
It is used to determine the frequency at which the subscription is billed. Only required for subscriptions
The unit amount in 8 decimals, represented as a whole integer. If not provided, the unit amount will be calculated from unit_amount_decimal.
The default amount to fill in the amount field for this price on checkout. Only if unit amount is not provided
Amount suggestions for this price. Only if unit amount is not provided
A set of key-value pairs that you can attach to an object. It can be useful for storing additional information about the object in a structured format.
A nickname for the price, not displayed to customer. Only visible in the dashboard
Product's id to create a price for
Example request
{
"intervalCount": 1,
"productId": "c3611c05-df51-4b47-b601-f2eac02f4ef0"
}Response
Product's id
It is used to determine the frequency at which the subscription is billed. Only required for subscriptions
Whether the price is currently active
The unit amount in 8 decimals, represented as a whole integer. If not provided, the unit amount will be calculated from unit_amount_decimal.
The maximum amount that can be billed per unit for this price. Only if unit amount is not provided
The minimum amount that can be billed per unit for this price. Only if unit amount is not provided
The default amount to fill in the amount field for this price on checkout. Only if unit amount is not provided
Amount suggestions for this price. Only if unit amount is not provided
A set of key-value pairs that you can attach to an object. It can be useful for storing additional information about the object in a structured format.
A nickname for the price, not displayed to customer. Only visible in the dashboard
Example response
{
"productId": "c3611c05-df51-4b47-b601-f2eac02f4ef0",
"intervalCount": 1,
"product": {
"defaultPriceId": "c3611c05-df51-4b47-b601-f2eac02f4ef0"
}
}