Create price variant
Changed onCreates a new price variant for a product
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
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
Product ID the variant belongs to
A form (form_...) to ask at every checkout of this variant, including waitlist applications. Its email fields are filled with the buyer's email. null detaches it.
Up to 2 of your other price variants (price_...) whose products are recommended at checkout when this one is bought. Replaces the whole list; [] clears it.
Response
Price variant created
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.
Price variants (price_...) recommended at checkout when this one is bought, at most 2.
Changes
- warning
the
trial_period_daysrequest property's max was set to730.00 - warning
the
trial_period_daysrequest property's min was set to0.00 - info
added the new optional request property
cross_sells
1 more change in this revision
- warning