Skip to main content
POST
Create Order

Body

application/json
externalOrder
any
required
payment
object
required
locale
enum<string>
default:en-US

Locale 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:
Klingon,
de-DE,
en-US,
es-ES,
fr-FR,
it-IT,
ja-JP,
ko-KR,
pt-PT,
ru-RU,
th-TH,
tr-TR,
uk-UA,
vi-VN,
zh-CN,
zh-TW
metadata
object
recipient
object

Recipient of the items being purchased. You can specify a wallet address, email, or payment method id, either explicitly or using a 'locator'. If you pass an email, 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 'missing-recipient', until you pass one.

state
string

Response

Order created successfully

clientSecret
string
required
order
object
required