Headless Checkout
Create Order
Creates a new order that can be used to complete a headless checkout.
POST
/
2022-06-09
/
orders
Authorizations
X-API-KEY
string
headerrequiredBody
application/json
recipient
object
Recipient of the items being purchased. Crossmint will create a custodial wallet address for the user on the fly, that they can later log in to. If no recipient is passed, an order will be created with the status 'requires-recipient', until you pass one.
locale
enum<string>
default: en-USLocale for the checkout, in IETF BCP 47. It impacts the email receipt language. Ensure your UI is set to the same language as specified here. Throws an error if passed an invalid language.
Available options:
en-US
, es-ES
, fr-FR
, it-IT
, ko-KR
, pt-PT
, ja-JP
, zh-CN
, zh-TW
, de-DE
, ru-RU
, tr-TR
, uk-UA
, th-TH
, vi-VN
, Klingon
payment
object
requiredlineItems
required
Response
201 - application/json
clientSecret
string
A token exclusively scoped to a particular order, allowing for the reading or updating of that order.
order
object