Update a shopping cart item by ID
PATCH/api/cart/:id/item/update/:itemId
Update a specific item in a shopping cart using the cart ID and item ID.
Request
Path Parameters
id stringrequired
The ID of the cart containing the item to be updated
itemId stringrequired
The ID of the item to be updated
- application/json
Body
qty number
Quantity (Optional)
shipping_id string
The shipping country id (Optional)
Responses
- 200
Successful update of the cart item
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"cart_id": "4c0010e7-c235-41ea-ab69-fba00be0ae6c",
"customer_session_id": "test-doc",
"shippingCountry": "c07d8af8-9d37-403b-aede-427c4b5fba3c",
"line_items": [
{
"id": "dac2ab8c-f2c2-4e64-abd6-ad824f226612",
"supplier": "Supplier name",
"product_available_shippings": [],
"product_id": 1230168,
"product_title": "Test",
"product_image": [
{
"id": 577005,
"url": "https://container.reachu.io/my-image.png",
"width": 500,
"height": 500
}
],
"variant_id": null,
"variant_title": null,
"variant": [],
"quantity": 1,
"shipping": null,
"price": {
"amount": 100,
"tax": 12,
"currencyCode": "EUR",
"discount": 0,
"compareAt": 0
}
}
],
"total_amount": 100,
"currency": "EUR",
"available_shipping_countries": [
"NO"
]
}
{
"cart_id": "4c0010e7-c235-41ea-ab69-fba00be0ae6c",
"customer_session_id": "test-doc",
"shippingCountry": "c07d8af8-9d37-403b-aede-427c4b5fba3c",
"line_items": [
{
"id": "dac2ab8c-f2c2-4e64-abd6-ad824f226612",
"supplier": "Supplier name",
"product_available_shippings": [],
"product_id": 1230168,
"product_title": "Test",
"product_image": [
{
"id": 577005,
"url": "https://container.reachu.io/my-image.png",
"width": 500,
"height": 500
}
],
"variant_id": null,
"variant_title": null,
"variant": [],
"quantity": 1,
"shipping": null,
"price": {
"amount": 100,
"tax": 12,
"currencyCode": "EUR",
"discount": 0,
"compareAt": 0
}
}
],
"total_amount": 100,
"currency": "EUR",
"available_shipping_countries": [
"NO"
]
}
Loading...