Skip to content

Update quantity of product(s) within the cart

PATCH
/carts/{cartId}/cartItems/{cartItemId}
curl --request PATCH \
--url https://myshop.com/shopgate/v1/carts/example/cartItems/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "quantity": 1 }'

Updates the quantity for one or multiple cart items referenced by their respective cartItemId. Depending on the shop and its cart rules, certain quantities can be rejected.

cartId
required
string
cartItemId
required
string
object
quantity
integer
Examplegenerated
{
"quantity": 1
}
Media typeapplication/json
object
Examplegenerated
{}
Media typeapplication/json
object
message
string
name
string
Example
{
"message": "Invalid token: access token is invalid",
"name": "invalid_token"
}
Media typeapplication/json
object
message
string
Example
{
"message": "Not found"
}