Update Cart Item

SecurityBearer
Request
path Parameters
orderId
required
string

Order id to update

itemId
required
string

Cart item id to update

header Parameters
x-merchant
required
string

Merchant identifier.

Example: norce
x-channel
required
string

Channel identifier

Example: 1
Request Body schema: application/json

Cart item properties to update. Only quantity is valid for now.

quantity
integer <int32>

Quantity of item. Must be greater or equal to 1.

Responses
200

OK

202

The status code indicates that the request has been accepted for processing, but the processing has not yet been completed or may have been canceled due to a more recent request being processed instead.

400

Bad Request

404

Not Found

patch/api/v1/orders/{orderId}/cart/items/{itemId}
Request samples
application/json
{
  • "quantity": 2
}
Response samples
application/json
{
  • "code": "cart-not-found",
  • "message": "Cart with id:{id} not found."
}
Copyright © Norce 2024. All right reserved.