mutation

selectAddress

Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address.
Arguments
Select true to retrieve the price breakup of cart items. Example: true
includePriceBreakup
Boolean
Select true to retrieve the price breakup of cart items. Example: true
buyNow
Boolean
Whether to get Buy Now cart. Example: false
cartId
String
The unique identifier of the cart. Example: '5bb521cfdc83215e1889b346'
Select true to retrieve all items added in the cart. Example: true
includeAllItems
Boolean
Select true to retrieve all items added in the cart. Example: true
selectCartAddressRequestInput
SelectCartAddressRequestInput
Select address for the cart (delivery and/or billing). Example: { cart_id: '5bb521cfdc83215e1889b346', id: 'addr_001' }
Response
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'
Mutation
Loading...
Try it
Input Variables
Loading...
Response
Loading...