Update metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items.
Arguments
buyNow
BooleanWhether to get buy_now cart.
cartMetaRequestInput
CartMetaRequestInputCart meta request schema to update the cart meta detail like delivery slots, comment message, GSTIN and custom cart meta.
id
StringThe unique identifier of the cart.
Mutation
1mutation updateCartMeta(2 $buyNow: Boolean3 $cartMetaRequestInput: CartMetaRequestInput4 $id: String5) {6 updateCartMeta(7 buyNow: $buyNow8 cartMetaRequestInput: $cartMetaRequestInput9 id: $id10 ) {11 is_valid12 message13 }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": true11 }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}
Was this section helpful?