I am using Magento 2 default quoteCartItem restful APIs to add, delete and update items in cart. Things are working as expected.
GET /V1/carts/{cartId}/items
POST /V1/carts/{cartId}/items
DELETE /V1/carts/{cartId}/items/{itemId}
PUT /V1/carts/{cartId}/items/{itemId}
GET /V1/carts/mine/items
POST /V1/carts/mine/items
DELETE /V1/carts/mine/items/{itemId}
Now, I have to add an identifier/flag to identify whether the user has chosen the item as home delivery or self pick-up.
- What are the quote item options and when we need it?
- How to add custom attribute/option to quote item?
- Is there any in-built API, which I can use achieve my requirement?
- Do I need to write Custom API for this?
I'm new in magento 2, not too familiar with technical keywords. Hope I explained this question properly.