PriceVariants

Create price variant

Creates a new price variant for a product

post/price_variants

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/price_variants
  • Auth: API key in header Authorization

Headers

Idempotency-Keystring

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

productstring required

Product ID the variant belongs to

namestring
amount_type'free' | 'fixed' | 'custom'
amountinteger nullable
currencystring nullable
billing_type'subscription' | 'one_time' | 'payment_plan'
recurring_interval'day' | 'week' | 'month' | 'year' nullable
interval_countinteger
installment_countinteger nullable
setup_fee_amountinteger nullable
trial_period_daysinteger nullable
revoke_after_daysinteger nullable
quantity_availableinteger nullable
waitlistboolean
archivedboolean nullable
hiddenboolean nullable

Response

Price variant created

idstring required
objectstring required
namestring required
amountinteger nullable required
amount_type'free' | 'fixed' | 'custom' required
billing_type'subscription' | 'one_time' | 'payment_plan' required
recurring_interval'day' | 'week' | 'month' | 'year' | 'null' nullable required
interval_countinteger required
installment_countinteger nullable required
setup_fee_amountinteger nullable required
trial_period_daysinteger nullable required
revoke_after_daysinteger nullable required
quantity_availableinteger nullable required
archivedboolean nullable required
positioninteger required
hiddenboolean nullable required
created_atstring date-time required
updated_atstring date-time required
currencystring nullable required
discounted_from_amountinteger nullable required
minimum_amountinteger nullable required
maximum_amountinteger nullable required
preset_amountinteger nullable required
waitlistboolean required
benefitsstring[]
purchase_urlstring required
productstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.