NFT sales are not self-serve in production. You can build and test NFT sales in staging. In production, Crossmint only enables them by exception for enterprise programs, and at this moment is not onboarding new projects. If yours is part of a broader payments initiative, contact sales. Minting and airdrops stay available.
Introduction
In this quickstart you buy an NFT with USDC on Base Sepolia. You make four API calls: create the order, send the USDC payment, submit the transaction hash, and get the order status. You do not need a sample app or an SDK.Prerequisites
From Crossmint
- Staging account: create a developer account in the Staging Console.
- Collection: create a collection or import yours, and copy its
collectionId. The collection needs at least one NFT, and a price within the limits in staging. - Payment methods: in the console, open the collection's Payments tab and turn on card payments, crypto payments, or both. Otherwise the Create Order API returns an error.
- Server-side API key: create a server-side API key with the
orders.create,orders.update, andorders.readscopes.
The examples call the API from a server with a server-side API key. Never expose this key in a browser or mobile app. To call the API from a client, see Environments & API Keys.
External Prerequisites
- Payer wallet: an EVM wallet that you control, and its private key. Use a test wallet only.
- Testnet USDC: a small balance of USDC on Base Sepolia. Get it from the Circle faucet. In staging, you can also pay with USDXM, a Crossmint test token that behaves like USDC: get it from the Crossmint faucet and set
payment.currencytousdxm. - Testnet ETH: a small balance of ETH on Base Sepolia to pay for gas. Get it from a Base Sepolia faucet.
Integration Steps
1
Create the order
Create an order with the recipient, the payer wallet, and the collection. Refer to the Create Order API reference for all parameters.
POST https://staging.crossmint.com/api/2022-06-09/ordersrecipient.email: Crossmint delivers the NFT to a wallet for this email. To deliver to a wallet that you choose, userecipient.walletAddressinstead.payment.payerAddress: the wallet that sends the USDC.lineItems[].collectionLocator: the collection to buy from.
payment phase. Save these two values from the response for the next steps:order.orderIdorder.payment.preparation.serializedTransaction: the USDC transfer that the payer wallet must sign and send.
Example response
Example response
2
Send the USDC payment
Sign the
serializedTransaction with the payer wallet and send it to the payment chain. A cURL call cannot sign a transaction, so this step uses a wallet library.- EVM
- Solana
3
Submit the transaction hash
Send the transaction hash to the Process Payment API. Crossmint also detects the payment onchain, so this step is optional, but it records the payment sooner.
POST https://staging.crossmint.com/api/2022-06-09/orders/<orderId>/payment4
Get the order status
Call the Get Order API until When the order is complete, the recipient gets an email with a link to the NFT. You can also see the NFT in the staging Crossmint wallet: sign in with the recipient email.
phase is completed. The phase changes from payment to delivery, and then to completed.GET https://staging.crossmint.com/api/2022-06-09/orders/<orderId>Launching in Production
You can now receive payments for anything on the blockchain, and display it in whatever UI you choose to build. Headless checkout is gated in production. To get started, contact us.Learn More
Supported Currencies
See the supported stablecoins by chain
Get Order API
See every order field and phase
Create Order API
Try the API in the playground

