Skip to content

Shopping lists GraphQL

Served by ShoppingListModule on commercetools, ShoppingListModule on medusa and ShoppingListModule on sfcc.

Each operation has its own page with its arguments, an example and the engines that serve it. The types link to their fields on the shopping lists types page.

Operations

OperationDescriptionServed by
shoppingListQueryGet a specific shopping list by ID (returns default list if no ID provided)commercetoolsmedusasfcc
shoppingListsQueryGet paginated list of shopping lists for the current usercommercetoolsmedusasfcc
shoppingListCreateMutationCreate a new shopping list for the current usercommercetoolsmedusasfcc
shoppingListDeleteMutationDelete a shopping list permanentlycommercetoolsmedusasfcc
shoppingListLineItemsAddMutationAdd products to a shopping list Note: "id" is optional for B2C/anonymous users - if not provided, a new list is createdcommercetoolsmedusasfcc
shoppingListLineItemsRemoveMutationRemove specific items from a shopping listcommercetoolsmedusasfcc
shoppingListLineItemsUpdateMutationUpdate quantities or other properties of existing shopping list itemscommercetoolsmedusasfcc
shoppingListUpdateMutationUpdate an existing shopping list's informationcommercetoolsmedusasfcc

Types

TypeDescription
ShoppingListObjectCustomer shopping list containing saved products for future purchase
ShoppingListCreateErrorUnion
ShoppingListCreateResponseObject
ShoppingListDeleteErrorUnion
ShoppingListDeleteResponseObject
ShoppingListInputInput objectInput data for creating or updating a shopping list
ShoppingListLineItemObjectIndividual item within a shopping list containing product and quantity information
ShoppingListLineItemAddInputInput objectInput data for adding a new item to a shopping list
ShoppingListLineItemsAddErrorUnion
ShoppingListLineItemsAddResponseObject
ShoppingListLineItemsRemoveErrorUnion
ShoppingListLineItemsRemoveResponseObject
ShoppingListLineItemsUpdateErrorUnion
ShoppingListLineItemsUpdateResponseObject
ShoppingListLineItemUpdateInputInput objectInput data for updating an existing item in a shopping list
ShoppingListResultObjectPaginated result containing shopping lists and metadata
ShoppingListUpdateErrorUnion
ShoppingListUpdateResponseObject

Fields on other types

This domain adds these fields to types that another domain defines.

BusinessUnit

FieldTypeDescription
shoppingListB2BShoppingListGet a specific shopping list by IDArguments: id
shoppingListsB2BShoppingListResultGet a paginated list of shopping listsArguments: page, pageSize

Customer

FieldTypeDescription
emailString!
shoppingListShoppingListGet a specific shopping list by ID for the customerArguments: id
shoppingListsShoppingListResultGet paginated shopping lists for the customerArguments: page, pageSize