Arguments
action
ActionEnum!Required
Operation to perform on the existing cart merge or replace.
token
String!Required
Token of the shared short link.
Response
cart
SharedCartShare cart detail includes checkout mode, cart id, payment selection lock config, delivery promise, comment message, items, breakup values and other cart data of shared cart.
error
StringError details if any error occurs which includes type of error, error code and error message.
Mutation
1mutation updateCartWithSharedItems($action: ActionEnum!, $token: String!) {2 updateCartWithSharedItems(action: $action, token: $token) {3 cart {4 buy_now5 cart_id6 checkout_mode7 comment8 coupon_text9 delivery_charge_info10 gstin11 id12 is_valid13 last_modified14 message15 restrict_checkout16 uid17 custom_cart_meta18 }19 error20 }21}
Try it
Input Variables
1{2 "action": "merge",3 "token": "token"4}
Response
1{2 "updateCartWithSharedItems": {3 "cart": {4 "buy_now": true,5 "cart_id": 42,6 "checkout_mode": "checkout_mode",7 "comment": "comment",8 "coupon_text": "coupon_text",9 "delivery_charge_info": "delivery_charge_info",10 "gstin": "gstin",11 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",12 "is_valid": true,13 "last_modified": "last_modified",14 "message": "message",15 "restrict_checkout": true,16 "uid": "uid",17 "custom_cart_meta": {}18 },19 "error": "error"20 }21}
Was this section helpful?