How to enable crypto purchases of Amazon products using Headless Checkout
productLocator
// Amazon ASIN { "lineItems": [ { "productLocator": "amazon:B01DFKC2SO" } ] } // Amazon Product URL { "lineItems": [ { "productLocator": "amazon:https://www.amazon.com/dp/B01DFKC2SO" } ] }
Create the order
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" } ] }
Check order status
{ "order": { "orderId": "...", "quote": { "status": "valid", ... }, "payment": { "preparation": { ... // Payment details will be present here } } } }
Was this page helpful?