Increase Cart Item Quantity
2/7/25Less than 1 minute
Increase Cart Item Quantity
Description
The Increase Cart Item Quantity API increases the quantity of a specific item in the user's cart.
- Authenticated Users: Must provide a valid JWT token.
- Guest Users: Must provide a
sessionId
to track the cart. - The
X-MerchantApiKey
header is mandatory for all requests.
Endpoint
PATCH /v1/carts/item/increment/quantity/{cartItemId}
Required Headers
{
"Authorization": "Bearer JWT_TOKEN", // For authenticated users
"X-MerchantApiKey": "MERCHANT_API_KEY"
}
Example API Call (Fetch or Axios)
fetch('https://api.shopsynch.com/v1/carts/item/increment/quantity/67a6261a320f3f7368dfec35', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer JWT_TOKEN',
'X-MerchantApiKey': 'MERCHANT_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));
📤 Sample 200 Response (Success)
{
"message": "Item Quantity Incremented",
"status": true
}