object

AddItemToCartResponse

Select Address response schema which includes cart id, breakup values, coupon, coupon text, gstin etc.
Fields
applied_promo_details
[AppliedPromotion]
Applied promotions including id, name, offer text, buy/discount rules, type. Example: [{ promo_id: 'PROMO1', offer_text: '10% OFF' }]
breakup_values
CartBreakup
Price breakup for coupon, display, loyalty points, etc.
buy_now
Boolean
Buy Now flag for fast checkout. Example: false
cart_id
Int
Numeric cart identifier. Example: 123456
checkout_mode
String
Checkout mode (e.g., 'self', 'other'). Example: 'self'
comment
String
Cart-level comment. Example: 'Deliver after 6 PM'
Cart-level coupon data (applied flag, code, amount, title, message).
common_config
CartCommonConfig
Sales channel common config (e.g., delivery charge config).
coupon_text
String
Display text of the applied coupon. Example: 'SAVE10 applied'
currency
CartCurrency
Currency for prices (e.g., code 'INR', symbol '₹').
delivery_charge_info
String
Delivery charge informational message. Example: 'Free delivery above ₹999'
delivery_promise
DeliveryPromiseResponse
Delivery promise for the cart.
gstin
String
GSTIN associated with the cart. Example: '27AAACI1195H1ZK'
Cart UID. Example: '5bb521cfdc83215e1889b346'
is_valid
Boolean
Whether the cart response is valid. Example: true
List of cart items including item id, size, store, pricing, etc.
last_modified
String
Last modified timestamp (ISO 8601). Example: '2025-10-07T14:20:00Z'
message
String
Response message. Example: 'Cart fetched successfully'
notification
JSON
Notification payload for the cart. Example: { type: 'warning', text: 'Few items out of stock' }
pan_config
JSON
PAN configuration with thresholds for COD and online payments. Example: { enabled: true, cod_threshold_amount: 50000, online_threshold_amount: 200000 }
pan_no
String
User PAN number. Example: 'ABCDE1234F'
payment_selection_lock
PaymentSelectionLock
Payment selection lock configuration.
restrict_checkout
Boolean
Whether checkout is restricted. Example: false
addresses
Addresses
List of saved addresses for user cart checkout.
user_cart_items_count
Int
Number of items in cart. Example: 3
staff_user_id
String
Staff user ID if cart is created by a staff member. Example: 'usr_123'
Cart UID. Example: '5bb521cfdc83215e1889b346'
success
Boolean
Whether the API call was successful. Example: true
custom_cart_meta
JSON
Custom cart metadata. Example: { channel: 'web' }
alternate_pickup_person
AlternatePickupPerson
Alternate pickup person details.
free_gift_selection_available
Boolean
Whether promotion free gift selection is available. Example: true
customer_id
String
Customer user ID associated with the cart. Example: 'usr_456'