Add cart detail API schema which specifies cart data, response message and success flag.
Fields
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 }]
Was this section helpful?