Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 60c7510

Browse files
committed
docs: add guest cart/mine cart edit item endpoints
1 parent 332a52b commit 60c7510

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ Add/update the specified cart item with a customer token. Must have a store code
131131
Magento::api('cartItems')->addItem($cartId, $sku, $quantity);
132132
```
133133

134+
`put` - `/V1/carts/mine/items/{itemId}`
135+
136+
Update the specified cart item with a customer token. Must have a store code.
137+
```php
138+
Magento::api('cartItems')->editItem($itemId, $body = []);
139+
```
140+
134141
Remove the specified cart item with a customer token. Must have a store code.
135142
```php
136143
Magento::api('cartItems')->removeItem($itemId);
@@ -220,6 +227,13 @@ Add/update the specified cart item.
220227
Magento::api('guestCarts')->addItem($cartId, $sku, $quantity);
221228
```
222229

230+
`put` - `/V1/guest-carts/{cartId}/items/{itemId}`
231+
232+
Update the specified cart item.
233+
```php
234+
Magento::api('guestCarts')->editItem($cartId, $itemId, $body = []);
235+
```
236+
223237
Remove the specified cart item.
224238
```php
225239
Magento::api('guestCarts')->removeItem($cartId, $itemId);

0 commit comments

Comments
 (0)