> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Specify Recipient

> Select where purchased items should be delivered

<Snippet file="specify-recipient-common.mdx" />

## Specifying the Recipient

> [tab] Embedded
>
> Add a `recipient` object to the checkout component:
>
> ```tsx Recipient by email theme={null}
> <CrossmintProvider apiKey="<your-client-api-key>">
>     <CrossmintEmbeddedCheckout
>         recipient={{
>             email: "user@example.com", // Crossmint creates a custodial wallet for this email
>         }}
>         // other properties removed for brevity
>     />
> </CrossmintProvider>
> ```
>
> ```tsx Recipient by wallet address theme={null}
> <CrossmintProvider apiKey="<your-client-api-key>">
>     <CrossmintEmbeddedCheckout
>         recipient={{
>             walletAddress: "0x1234567890abcdef1234567890abcdef12345678", // For EVM chains
>             // walletAddress: "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty" // For Solana
>         }}
>         // other properties removed for brevity
>     />
> </CrossmintProvider>
> ```

> [tab] Hosted
>
> Add a `recipient` object to the hosted checkout component:
>
> ```tsx Recipient by email theme={null}
> <CrossmintProvider apiKey="<your-client-api-key>">
>     <CrossmintHostedCheckout
>         recipient={{
>             email: "user@example.com",
>         }}
>         // other properties removed for brevity
>     >
>         Buy with Crossmint
>     </CrossmintHostedCheckout>
> </CrossmintProvider>
> ```
>
> ```tsx Recipient by wallet address theme={null}
> <CrossmintProvider apiKey="<your-client-api-key>">
>     <CrossmintHostedCheckout
>         recipient={{
>             walletAddress: "0x1234567890abcdef1234567890abcdef12345678", // For EVM chains
>             // walletAddress: "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty", // For Solana
>         }}
>         // other properties removed for brevity
>     />
> </CrossmintProvider>
> ```

> [tab] Headless
>
> Pass the `recipient` when creating or updating the order:
>
> ```json Create order theme={null}
> POST /api/2022-06-09/orders
> {
>   "recipient": {
>     "email": "user@example.com" // or "walletAddress": "0x1234..."
>   },
>   "locale": "en-US",
>   "payment": {
>     "method": "ethereum-sepolia",
>     "currency": "eth",
>     "payerAddress": "0x1234abcd...",
>     "receiptEmail": "user@example.com" // Optional — recommended when using walletAddress
>   },
>   "lineItems": [
>     {
>       "collectionLocator": "crossmint:_YOUR_COLLECTION_ID_",
>       "callData": {
>         "totalPrice": "0.0001",
>         "quantity": 1
>       }
>     }
>   ]
> }
> ```
>
> ```json Edit order theme={null}
> PATCH /api/2022-06-09/orders/{orderId}
> {
>   "recipient": {
>     "walletAddress": "0x1234567890abcdef1234567890abcdef12345678" // For EVM chains
>     // "walletAddress": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty" // For Solana
>   }
> }
> ```
>
> > [!NOTE]
> >
> > If specifying a recipient by wallet address, ensure the address is valid for the chain your collection is on, which
> > may differ from the chain the payment is performed on.

When you specify an email recipient, the buyer accesses purchased items by logging into their Crossmint wallet in [staging](https://staging.crossmint.com/user/collection) or [production](https://www.crossmint.com/user/collection).

## Next Steps

> [card] [Track Orders](https://docs.crossmint.com/payments/guides/track-orders.md)
>
> Follow the order through delivery

> [card] [Handle Errors](https://docs.crossmint.com/payments/guides/handle-errors.md)
>
> Surface declines and failures to buyers
