Update quantity or discount for a cart item
Request
Add the parameter Authorization
to Headers Example:Authorization: ********************
or
Body Params application/jsonRequired
{
"quantity": 1,
"discountAmount": "string",
"discountMode": "percentage"
}
Request Code Samples
curl --location --request PUT 'https://mock.apidog.com/m1/1052146-0-default/sales/cart//items/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"quantity": 1,
"discountAmount": "string",
"discountMode": "percentage"
}'
Responses
application/json
Item updated successfully
{
"cartId": "string",
"sessionId": "string",
"customerId": "string",
"status": 0,
"subtotal": "string",
"discountAmount": "string",
"discountMode": "percentage",
"total": "string",
"currencyId": "string",
"lines": [
{
"lineId": "string",
"productId": "string",
"quantity": 1,
"unitPrice": "string",
"discountAmount": "string",
"discountMode": "percentage",
"totalPrice": "string",
"measurementId": "string"
}
]
}
Modified at 2025-11-25 14:45:50