Skip to main content
POST
Create Order

Authorizations

X-API-KEY
string
header
required

Body

application/json
payment
Card · object
required

Payment configuration for the onramp order. Onramp is completed with a card.

lineItems
object[]
required

The tokens to purchase. Provide a single line item identifying the token and the amount to spend.

Required array length: 1 element
recipient
object

Recipient of the tokens being purchased. For onramp orders, walletAddress is required and email is not supported.

The supplied walletAddress must resolve to a Crossmint user, either a Crossmint wallet or an external wallet linked to a Crossmint user first (guide).

state
enum<string>
default:create

Determines whether an order is officially created or whether it simply returns what an order would look like. Use draft to review the quote prior to committing. Draft orders are not persisted and will not be queryable via APIs. Use create (default) to place the order and proceed to payment.

Available options:
draft,
create

Response

Order successfully created.

clientSecret
string

A token exclusively scoped to a particular order, allowing for the reading or updating of that order.

Example:

"_removed_"

order
object