Create checkout session
Changed onCreates a new checkout session for purchasing products. Identify the buyer with contact (an existing contact id) or email; one of them is required.
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
Contact ID
Where to send the buyer after they pay. An http or https URL.
Set of key-value pairs you can attach to the object — store your own system's IDs or grouping labels. Keys max 40 chars (up to 50 keys), values stored as strings max 500 chars. On update, keys merge individually; set a key to null or "" to remove it. Echoed back on reads and in webhook payloads.
Response
Checkout session created
Where the buyer lands after paying. Null shows Crevio's confirmation page.
Sum of the items at full price, before the discount.
Sum of the items after the discount.
What the buyer pays at checkout: the total, minus any subscription that starts with a free trial.
ID by default, full object when expanded
Changes
- info
added the required property
success_urlto the response with the status
- info
- warning
the optional response header
Deprecationremoved for the status422 - warning
the optional response header
Linkremoved for the status422
10 more changes in this revision
- warning