PriceVariants

Update price variant

Updates an existing price variant. Set archived to true to archive it.

patch/price_variants/{id}

Request

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

Path parameters

idstring required

The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")

Request body

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 updated

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.