Headless Checkout
Edit Order
Edit an existing order. You can update the recipient, the payment method, and/or the locale.
PATCH
/
2022-06-09
/
orders
/
{orderId}
Authorizations
X-API-KEY
string
headerrequiredPath Parameters
orderId
string
requiredThis is the identifier for the order with UUID format.
Example: 9c82ef99-617f-497d-9abb-fd355291681b
Body
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
Response
200 - application/json
orderId
string
phase
string
locale
string
lineItems
object[]
quote
object
payment
object