POST /v1/prices
Creates a new Price for an existing Product. The Price can be recurring or one-time.
Servers
- https://api.stripe.com/
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
transform_quantity |
Object | No |
Apply a transformation to the reported usage or set quantity before computing the billed price. Cannot be combined with |
transform_quantity.divide_by |
Integer | Yes | |
transform_quantity.round |
String | Yes |
Possible values:
|
custom_unit_amount |
Object | No |
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. |
custom_unit_amount.minimum |
Integer | No | |
custom_unit_amount.preset |
Integer | No | |
custom_unit_amount.enabled |
Boolean | Yes | |
custom_unit_amount.maximum |
Integer | No | |
expand[] |
Array | No |
Specifies which fields in the response should be expanded. |
tiers_mode |
String | No |
Defines if the tiering price should be Possible values:
|
metadata |
Object | No |
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to |
product |
String | No |
The ID of the Product that this Price will belong to. |
recurring |
Object | No |
The recurring components of a price such as |
recurring.usage_type |
String | No |
Possible values:
|
recurring.meter |
String | No | |
recurring.interval |
String | Yes |
Possible values:
|
recurring.interval_count |
Integer | No | |
lookup_key |
String | No |
A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters. |
currency |
String | Yes |
Three-letter ISO currency code, in lowercase. Must be a supported currency. |
transfer_lookup_key |
Boolean | No |
If set to true, will atomically remove the lookup key from the existing price, and assign it to this price. |
unit_amount |
Integer | No |
A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of |
active |
Boolean | No |
Whether the price can be used for new purchases. Defaults to |
nickname |
String | No |
A brief description of the price, hidden from customers. |
tiers[] |
Array | No |
Each element represents a pricing tier. This parameter requires |
tiers[].unit_amount |
Integer | No | |
tiers[].up_to |
Yes | ||
tiers[].unit_amount_decimal |
String | No | |
tiers[].flat_amount |
Integer | No | |
tiers[].flat_amount_decimal |
String | No | |
unit_amount_decimal |
String | No |
Same as |
currency_options |
Object | No |
Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency. |
currency_options.name |
Object | No | |
currency_options.name.unit_amount |
Integer | No | |
currency_options.name.custom_unit_amount |
Object | No | |
currency_options.name.custom_unit_amount.minimum |
Integer | No | |
currency_options.name.custom_unit_amount.preset |
Integer | No | |
currency_options.name.custom_unit_amount.enabled |
Boolean | Yes | |
currency_options.name.custom_unit_amount.maximum |
Integer | No | |
currency_options.name.tiers[] |
Array | No | |
currency_options.name.tiers[].unit_amount |
Integer | No | |
currency_options.name.tiers[].up_to |
Yes | ||
currency_options.name.tiers[].unit_amount_decimal |
String | No | |
currency_options.name.tiers[].flat_amount |
Integer | No | |
currency_options.name.tiers[].flat_amount_decimal |
String | No | |
currency_options.name.unit_amount_decimal |
String | No | |
currency_options.name.tax_behavior |
String | No |
Possible values:
|
tax_behavior |
String | No |
Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of Possible values:
|
billing_scheme |
String | No |
Describes how to compute the price per period. Either Possible values:
|
product_data |
Object | No |
These fields can be used to create a new product that this price will belong to. |
product_data.id |
String | No | |
product_data.name |
String | Yes | |
product_data.active |
Boolean | No | |
product_data.tax_code |
String | No | |
product_data.metadata |
Object | No | |
product_data.statement_descriptor |
String | No | |
product_data.unit_label |
String | No |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.