Skip to content

Update Item In Existing Cart

PATCH

/carts/:id/items/:itemid

https://api.storefront.wdb.skooldio.dev/carts/:id/items/:itemid

Require Authentication: No


Update item in existing cart with card id and item id

Request Parameters

Path

id type: string required

The ID of the cart.

itemid type: string required

The ID of the item.

Body

quantity type: number required

Quantity of the product

skuCode type: string required

SKU code of the variant of the product

Example Request

Terminal window
curl --request PATCH \
--header 'Content-Type:application/json' \
--data '{"quantity":999,"skuCode":"sku-1"}' \
--url https://api.storefront.wdb.skooldio.dev/carts/1/items/1

Responses

Results

{
"id": "cart-1",
"items": [
{
"id": "aehIBBlqv4",
"skuCode": "sku-1",
"quantity": 999,
"productPermalink": "1"
},
{
"id": "Nljuq9tjFi",
"skuCode": "sku-2",
"quantity": 1,
"productPermalink": "2"
}
]
}