POST
stripe_prices_create.py
from charter.packs import stripe
result = await stripe.prices_create.ainvoke({"currency": ..., "product": ...})
Body
| Field | Type | Description |
|---|---|---|
currency * | string | Three-letter lowercase ISO currency code. |
product * | string | The ID of the product this price is for. |
unitAmount | integer | The amount in the smallest currency unit. Mutually exclusive with unit_amount_decimal. Cents, not dollars: $15.00 is 1500, and 15 prices this at fifteen cents. Multiply a decimal amount by 100. |
unitAmountDecimal | string | Same as unit_amount, but accepts a decimal value in the smallest currency unit with at most 12 decimal places. Cents, not dollars: $15.00 is “1500”. The decimal places are fractions of a cent, so “1500.5” is fifteen dollars and half a cent. |
recurring | RecurringPrice | Billing interval. Absent, this is a one-off price. |
nickname | string | An internal label. Customers never see it. |
active | boolean | Whether the price can be used. Absent, it can. |
taxBehavior | PriceTaxBehavior | Whether the amount includes tax. Once set to inclusive or exclusive it cannot be changed. |
metadata | map of string | Set of key-value pairs attached to the price. |