PriceVariants

Get price variant

Changed on

Returns a specific price variant

get/price_variants/{id}

Request

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

Path parameters

id, string required

The resource's ID, as returned in its id field

Response

Price variant details

PriceVariant required
id, string required
object, string required
name, string required
amount, integer 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_count, integer required
installment_count, integer nullable required
setup_fee_amount, integer nullable required
trial_period_days, integer nullable required
revoke_after_days, integer nullable required
quantity_available, integer nullable required
archived, boolean nullable required
position, integer required
hidden, boolean nullable required
created_at, string date-time required
updated_at, string date-time required
currency, string nullable required
discounted_from_amount, integer nullable required
minimum_amount, integer nullable required
maximum_amount, integer nullable required
preset_amount, integer nullable required
waitlist, boolean required
form_id, string nullable required

The form (form_...) asked at every checkout of this variant, including waitlist applications. Its answers become a form submission on the order or waitlist entry.

benefits, string[]
cross_sells, string[] required

Price variants (price_...) recommended at checkout when this one is bought, at most 2.

purchase_url, string required
product, string required

Changes

    • info

      added the required property cross_sells to the response with the status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision