mutation

addItemsToCart

Add to cart request schema which has items data to be added in cart.
Arguments
The unique identifier of the cart. Example: '5bb521cfdc83215e1889b346'
areaCode
String
Customer serviceable area code, such as a pincode, ZIP code, or postal code. Example: '400059'.
includeBreakup
Boolean
Select true to retrieve the price breakup of cart items. Example: true
buyNow
Boolean
Select true to initialize a Buy Now cart. Example: false
includeAllItems
Boolean
Select true to retrieve all items added to the cart. Example: true
addCartRequestInput
AddCartRequestInput
Specify item details. Refer `AddCartRequestInput`. Example: { items: [{ item_id: 123, item_size: 'M', quantity: 2, store_id: 1 }] }
orderType
String
Shipment 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
String
Message of add to cart API response. Example: '2 items added to cart'
partial
Boolean
When adding multiple items check if all added. True if only few are added. Example: false
success
Boolean
True if all items are added successfully. False if partially added or not added. Example: true
result
JSON
Contains per-article result info. Example: { 'ART123': { success: true, message: 'Added' } }
List of items that needs to be added in cart. Example: [{ item_id: 123, size: 'M', store_id: 1, success: true }]
Mutation
Loading...
Try it
Input Variables
Loading...
Response
Loading...