cURL
curl --request POST \ --url https://api-beta.pepay.io/api/commerce/merchant/carts/items \ --header 'Content-Type: application/json' \ --header 'x-commerce-api-key: <api-key>' \ --data ' { "productId": "<string>", "retailer": "amazon", "title": "<string>", "price": 1.01, "wallet_address": "<string>", "wallet_network": "<string>", "customer_id": "<string>", "quantity": 50, "imageUrl": "<string>", "productUrl": "<string>", "numReviews": 123, "rating": 2.5 } '
200
added
{ "success": true, "message": "Item added to cart", "data": { "itemId": "123e4567-e89b-12d3-a456-426614174000", "quantity": 1, "updated": false }}
Add a product to customer’s cart or update quantity if already exists
Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
x-api-key
amazon
walmart
target
ebay
bestbuy
other
x >= 0.01
1 <= x <= 99
0 <= x <= 5
Item added to cart successfully
true
"Item added to cart"
Show child attributes
Was this page helpful?