Arguments
id
StringThe unique identifier of the cart. Example: '5bb521cfdc83215e1889b346'
areaCode
StringCustomer serviceable area code, such as a pincode, ZIP code, or postal code. Example: '400059'.
includeBreakup
BooleanSelect true to retrieve the price breakup of cart items. Example: true
buyNow
BooleanSelect true to initialize a Buy Now cart. Example: false
includeAllItems
BooleanSelect true to retrieve all items added to the cart. Example: true
addCartRequestInput
AddCartRequestInputSpecify item details. Refer `AddCartRequestInput`. Example: { items: [{ item_id: 123, item_size: 'M', quantity: 2, store_id: 1 }] }
orderType
StringShipment order type (e.g., 'HomeDelivery', 'PickAtStore' , 'Digital'). Example: 'HomeDelivery'
Response
Get 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 add to cart API response. Example: '2 items added to cart'
partial
BooleanWhen adding multiple items check if all added. True if only few are added. Example: false
success
BooleanTrue if all items are added successfully. False if partially added or not added. Example: true
result
JSONContains per-article result info. Example: { 'ART123': { success: true, message: 'Added' } }
items
[CartItemInfo]List of items that needs to be added in cart. Example: [{ item_id: 123, size: 'M', store_id: 1, success: true }]
Mutation
Try it
Input Variables
Response
Was this section helpful?