> ## 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.

# Amazon Integration

> How to enable crypto purchases of Amazon products using Headless Checkout

This guide explains how to integrate Amazon product purchases using the Headless Checkout API.

## Product Locator Format

When creating an order for an Amazon product, use the `productLocator` parameter with either the Amazon ASIN or product URL:

```json theme={null}
// Amazon ASIN
{
    "lineItems": [
        {
            "productLocator": "amazon:B01DFKC2SO"
        }
    ]
}

// Amazon Product URL
{
    "lineItems": [
        {
            "productLocator": "amazon:https://www.amazon.com/dp/B01DFKC2SO"
        }
    ]
}
```

## Example Flow

<Steps>
  <Step title="Create the order">
    * Specify the receipient's email
    * Specify their shipping information
    * Specify the payment method used
    * Specify the product locator

    <Check>
      For a full list of supported currencies, refer to the [supported
      currencies](/payments/headless/guides/supported-currencies) page.
    </Check>

    ```json theme={null}
    POST /api/2022-06-09/orders
    {
      "recipient": {
        "email": "buyer@example.com",
        "physicalAddress": {
          "name": "John Doe",      // required
          "line1": "123 Main St",  // required
          "city": "San Francisco", // required
          "state": "CA",           // required for US addresses
          "postalCode": "94105",   // required
          "country": "US"          // required - only US is currently supported
        }
      },
      "payment": {
        "method": "ethereum-sepolia",
        "currency": "eth"
      },
      "lineItems": [
        {
          "productLocator": "amazon:B01DFKC2SO"
        }
      ]
    }
    ```
  </Step>

  <Step title="Check order status">
    With all requied information provided, the order's response will include payment preparation details, as shown below.

    ```json theme={null}
    {
        "order": {
            "orderId": "...",
            "quote": {
                "status": "valid",
                ...
            },
            "payment": {
                "preparation": {
                    ...  // Payment details will be present here
                }
            }
        }
    }
    ```
  </Step>
</Steps>

## Additional Information

* Monitor order statuses through the [Developer Console](https://www.crossmint.com/console)
* Review the [Order Lifecycle guide](/payments/headless/guides/order-lifecycle/quote-phase) for detailed status handling
* Check [this guide](/payments/headless/guides/payment-methods) for details on supported currencies and payment methods
