cURL
curl --request PUT \ --url https://api-beta.pepay.io/api/commerce/merchant/carts/items/{itemId} \ --header 'Content-Type: application/json' \ --header 'x-commerce-api-key: <api-key>' \ --data ' { "quantity": 49, "wallet_address": "<string>", "wallet_network": "<string>", "customer_id": "<string>" } '
200
updated
{ "success": true, "message": "Cart item updated", "data": { "itemId": "123e4567-e89b-12d3-a456-426614174000", "quantity": 2, "updatedAt": "2025-12-21T12:34:56.000Z" }}
Update the quantity of a specific item in customer’s cart
Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
x-api-key
Cart item ID
0 <= x <= 99
Cart item updated successfully
true
Show child attributes
Was this page helpful?