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

Commit fa158f0

Browse files
committed
docs: add removeItem()
1 parent 79f8b07 commit fa158f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ Add/update the specified cart item with a customer token. Must have a store code
110110
Magento::api('cartItems')->addItem($cartId, $sku, $quantity);
111111
```
112112

113+
Remove the specified cart item with a customer token. Must have a store code.
114+
```php
115+
Magento::api('cartItems')->removeItem($itemId);
116+
```
117+
113118
#### Cart Totals (quoteCartTotalRepositoryV1)
114119

115120
`/V1/carts/mine/totals`
@@ -180,6 +185,11 @@ Add/update the specified cart item.
180185
Magento::api('guestCarts')->addItem($cartId, $sku, $quantity);
181186
```
182187

188+
Remove the specified cart item.
189+
```php
190+
Magento::api('guestCarts')->removeItem($cartId, $itemId);
191+
```
192+
183193
`/V1/guest-carts/{cartId}/estimate-shipping-methods`
184194

185195
Estimate shipping by address and return list of available shipping methods.

0 commit comments

Comments
 (0)