Checkouts

Create checkout session

Creates a new checkout session for purchasing products

post/checkouts

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/checkouts
  • 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

emailstring nullable
customerstring nullable

Customer ID

discount_codestring nullable

Response

Checkout session created

idstring required
objectstring required
status'open' | 'complete' | 'abandoned' | 'expired' required
created_atstring date-time required
updated_atstring date-time required
metadataobject required
modestring required
currencystring nullable required
totalnumber required
purchase_urlstring required

Changes

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