Home > @vsf-enterprise/commercetools-api > addToMyShoppingListDefaultQuery

# addToMyShoppingListDefaultQuery variable

Default GraphQL query for the addToMyShoppingList API endpoint

Signature:

addToMyShoppingListDefaultQuery = "\n  mutation updateShoppingList($id: String!, $version: Long!, $actions: [MyShoppingListUpdateAction!]!, $acceptLanguage: [Locale!], $currency: Currency!, $country: Country!) {\n    wishlist: updateMyShoppingList(id: $id, version: $version, actions: $actions) {\n      id\n      version\n      lineItems {\n        id\n        quantity\n        name(acceptLanguage: $acceptLanguage)\n        productSlug(acceptLanguage: $acceptLanguage)\n        variant {\n          sku\n          price(currency: $currency, country: $country) {\n            tiers {\n              value {\n                centAmount\n              }\n            }\n            value {\n              centAmount\n              currencyCode\n            }\n            discounted {\n              value {\n                centAmount\n                currencyCode\n              }\n              discount {\n                isActive\n                name(acceptLanguage: $acceptLanguage)\n              }\n            }\n          }\n          images {\n            url\n            label\n          }\n        }\n      }\n    }\n  }\n"