Skip to main content
Final Class Create a new order inline with line items, recipient, and locale.
The raw lineItems constructor remains available as the forward-compatible escape hatch. Prefer CrossmintCheckoutNewOrder.typed when the current SDK models the line-item shape you need.

Constructors

CrossmintCheckoutNewOrder

CrossmintCheckoutNewOrder.typed

Properties

lineItems

Line items in the order, each represented as a raw JSON map. Prefer the CrossmintCheckoutNewOrder.typed constructor and pass typed CrossmintCheckoutLineItem values; use the raw map shape only when a new API field is not yet modeled by the SDK.

recipient

Optional recipient for the order. When omitted, the hosted checkout collects recipient details from the buyer.

locale

Optional BCP 47 locale tag (for example en-US, es, pt-BR) used to localize the hosted checkout UI. Defaults to the buyer’s browser locale when null.

metadata

Optional opaque metadata attached to the order. Forwarded verbatim to the Crossmint orders API and returned on order webhooks and status reads.