Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

getShoppingListDefaultQuery

Default GraphQL query for the getShoppingList API endpoint

getShoppingListDefaultQuery = "\n  query getMe(
	\n    $acceptLanguage: [Locale!],\n    $currency: Currency!,\n    $country: Country!,\n    $where: String,\n    $sort: [String!],\n    $limit: Int,\n    $offset: Int,\n    $customerGroupId: String\n  
) {\n    me {\n      shoppingLists(\n        where: $where,\n        sort: $sort,\n        limit: $limit,\n        offset: $offset\n      ) {\n        results {\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,
	customerGroupId: $customerGroupId) {\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    }\n  }\n"