Create a price
Creates a price for a product. Requires internal-user privileges. The product must already exist, and the price must be unique within the product (a recurring price is unique by amount, currency, and interval; a one-time price is unique by amount and currency).
Authorizations
Body
Price to create
Amount is the price amount in the currency's smallest unit (e.g. cents).
5000
ProductId is the product this price belongs to.
"d1f8c9e2-3b4a-4c5d-9e6f-7a8b9c0d1e2f"
Currency is the ISO currency code.
"usd"
Interval is the billing period for recurring prices.
day, week, month, quarterly, biannually, year, semiannually "month"
IntervalCount is the number of intervals between billings.
1
Type is whether the price is one-time or recurring.
oneTime, recurring "recurring"
Response
OK
Amount is the price amount in the smallest currency unit (e.g. cents).
5000
Currency is the ISO-4217 currency code. Defaults to usd when omitted.
"usd"
Interval is the recurring billing period. Omit for one-time prices.
day, week, month, quarterly, biannually, year, semiannually "month"
IntervalCount is the number of intervals between billings for a recurring price.
1
IsUsed indicates whether the price is already referenced by a subscription or invoice and therefore cannot be deleted.
false
PortalID is the ID of the portal that owns this price.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
ProductId is the ID of the product this price belongs to.
"d1f8c9e2-3b4a-4c5d-9e6f-7a8b9c0d1e2f"
Type is a computed field and should not be used in any logic on BE or Webapp
oneTime, recurring "recurring"