mutation

updateCartWithSharedItems

Merge or replace shared cart items with existing cart.
Arguments
Required
Operation to perform on the existing cart merge or replace.
token
String!
Required
Token of the shared short link.
Response
Share 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
String
Error 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_now
5 cart_id
6 checkout_mode
7 comment
8 coupon_text
9 delivery_charge_info
10 gstin
11 id
12 is_valid
13 last_modified
14 message
15 restrict_checkout
16 uid
17 custom_cart_meta
18 }
19 error
20 }
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}