
Orders below are performed using USDC assuming an already-funded agent wallet. Check the payments
page to explore other supported payment methods.
Integration Steps
1
Setup
Crossmint Project
Create a project in the Crossmint Console (staging environment)
Server-side API Key
Obtain a server-side API key from the Overview page and save it for later use
2
Search for Products
Use an LLM or third-party API provider to search available Amazon products and obtain the product’s Amazon URL or ASIN. Extract the ASIN from the Amazon URL, i.e. https://wwww.amazon.com/Sparkling-Naturally-Essenced-Calories-Sweeteners/dp/B00O79SKV6 has ASIN
B00O79SKV6
.3
Create Crossmint Order
Use the Headless Checkout API to create a payment order, specifying the recipient details and payment method.This returns a valid order with payment preparation details including the serialized transaction.
You can add multiple productLocators from Amazon as part of the same order.
4
Sign and Submit Payment
Sign the transaction with Crossmint’s Create Transaction API using the agent’s wallet to complete the purchase.
Alternative: Using External Wallets
Alternative: Using External Wallets
5
Monitor Order Status
Poll the order status with Crossmint’s Get Order API to track delivery and present updates to your agent or end user.
6
Receive Order Confirmation
Crossmint automatically sends a purchase receipt to the buyer’s email with the order confirmation number, product details, and cost breakdown.