mutation

updateCartMeta

Update metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items.
Arguments
buyNow
Boolean
Whether to get buy_now cart.
cartMetaRequestInput
CartMetaRequestInput
Cart meta request schema to update the cart meta detail like delivery slots, comment message, GSTIN and custom cart meta.
The unique identifier of the cart.
Response
is_valid
Boolean
Whether added meta was vaild.
message
String
Detailed message.
Mutation
1mutation updateCartMeta(
2 $buyNow: Boolean
3 $cartMetaRequestInput: CartMetaRequestInput
4 $id: String
5) {
6 updateCartMeta(
7 buyNow: $buyNow
8 cartMetaRequestInput: $cartMetaRequestInput
9 id: $id
10 ) {
11 is_valid
12 message
13 }
14}
Try it
Input Variables
1{
2 "buyNow": true,
3 "cartMetaRequestInput": {
4 "checkout_mode": "checkout_mode",
5 "comment": "comment",
6 "delivery_slots": {},
7 "gift_details": {
8 "article_id": {
9 "gift_message": "gift_message",
10 "is_gift_applied": true
11 }
12 },
13 "gstin": "gstin",
14 "pick_up_customer_details": {},
15 "custom_cart_meta": {}
16 },
17 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"
18}
Response
1{
2 "updateCartMeta": {
3 "is_valid": true,
4 "message": "message"
5 }
6}