Update cart. Customers can modify added product attributes such as quantity and size, as well as remove items from the cart.
Arguments
areaCode
StringCustomer serviceable area code, such as a pincode, ZIP code, or postal code. Example: '400059'.
Select true to retrieve the price breakup of cart items. Example: true
includePriceBreakup
BooleanSelect true to retrieve the price breakup of cart items. Example: true
buyNow
BooleanSelect true to initialize a Buy Now cart. Example: false
Select true to retrieve all items added in the cart. Example: true
includeAllItems
BooleanSelect true to retrieve all items added in the cart. Example: true
id
StringThe unique identifier of the cart. Example: '5bb521cfdc83215e1889b346'
updateCartRequestInput
UpdateCartRequestInputData to update cart items and the operation to perform. Example: { operation: replace, items: [{ identifiers: { identifier: 'line_abc' }, item_id: 123, item_size: 'L', quantity: 1 }] }
cartType
StringThe type of cart.
orderType
StringShipment order type (e.g., 'HomeDelivery', 'PickAtStore','Digital'). Example: 'PickAtStore'
Response
cart
CartGet cart detail API response schema which includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment common config, coupon, coupon text, gstin etc.
message
StringMessage of update cart API response. Example: 'Cart updated successfully'
success
BooleanTrue if all items are added successfully. Example: true
result
JSONPer-article result info. Example: { 'ART123': { success: true, message: 'Updated' } }
items
[CartItemInfo]List of items involved. Example: [{ item_id: 123, size: 'M', store_id: 1, success: true }]
Mutation
Try it
Input Variables
Response
Was this section helpful?