For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • About Our APIs
  • REST
    • Overview
  • GraphQL
    • Overview
      • Playground
          • MUTproductUpload
          • MUTproductAnonUpload
          • MUTupdateAccountSettings
          • MUTupdateCustomerAccountSettings
          • MUTinvoicePdf
          • MUTinvoicesExport
          • MUTinvoiceCreateBcCart
          • MUTinvoiceFinishBcPayment
          • MUTcreateOrder
          • MUTshoppingListsCreate
          • MUTshoppingListsUpdate
          • MUTshoppingListsDelete
          • MUTshoppingListsDuplicate
          • MUTshoppingListsItemsCreate
          • MUTshoppingListsItemsUpdate
          • MUTshoppingListsItemsDelete
          • MUTcustomerShoppingListsCreate
          • MUTcustomerShoppingListsUpdate
          • MUTcustomerShoppingListsDelete
          • MUTcustomerShoppingListsDuplicate
          • MUTcustomerShoppingListsItemsCreate
          • MUTcustomerShoppingListsItemsUpdate
          • MUTcustomerShoppingListsItemsDelete
          • MUTquoteCreate
          • MUTquoteUpdate
          • MUTquoteCheckout
          • MUTquoteOrdered
          • MUTquoteEmail
          • MUTquotePdfExport
          • MUTquoteAttachFileDelete
          • MUTquoteAttachFileCreate
          • MUTquoteFrontendPdf
          • MUTsuperAdminBeginMasquerade
          • MUTsuperAdminEndMasquerade
          • MUTcompanyCreate
          • MUTlogin
          • MUTcheckoutLogin
          • MUTauthorization
          • MUTuserCreate
          • MUTuserUpdate
          • MUTuserDelete
          • MUTstoreFrontToken
          • MUTcustomerCreate
          • MUTcustomerSubscribersCreate
          • MUTuserMasqueradingCompanyBegin
          • MUTuserMasqueradingCompanyEnd
          • MUTaddressCreate
          • MUTaddressUpdate
          • MUTaddressDelete
          • MUTcustomerAddressCreate
          • MUTcustomerAddressUpdate
          • MUTcustomerAddressDelete
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLB2BMutations

shoppingListsItemsCreate

Example Query
1mutation ExampleMutation($items: [ShoppingListsItemsInputType], $shoppingListId: Int) {
2 shoppingListsItemsCreate(items: $items, shoppingListId: $shoppingListId) {
3 shoppingListsItems {
4 id
5 createdAt
6 updatedAt
7 productId
8 variantId
9 quantity
10 optionList
11 productName
12 itemId
13 baseSku
14 }
15 }
16}
Variables
1{
2 "items": [
3 {
4 "productId": 0,
5 "variantId": 0,
6 "quantity": "ProductQuantity",
7 "optionList": [
8 {
9 "optionId": "example",
10 "optionValue": "GenericScalar"
11 }
12 ],
13 "sortOrder": 0,
14 "productNote": "example"
15 }
16 ],
17 "shoppingListId": 0
18}
Example response
1{
2 "data": {
3 "shoppingListsItemsCreate": {
4 "shoppingListsItems": [
5 {
6 "id": "example",
7 "createdAt": 0,
8 "updatedAt": 0,
9 "productId": 0,
10 "variantId": 0,
11 "quantity": 0,
12 "optionList": "GenericScalar",
13 "productName": "example",
14 "itemId": 0,
15 "baseSku": "example"
16 }
17 ]
18 }
19 }
20}
Add items to an existed shopping list. Requires a B2B Token.
Was this page helpful?
Previous

shoppingListsDuplicate

Next

shoppingListsItemsUpdate

Built with

Arguments

itemslist of optional ShoppingListsItemsInputTypeRequired
The list of items to be created. This field is required.
shoppingListIdIntegerRequired
The shopping list id. This field is required.

Returns

an optional ShoppingListsItemsCreate
shoppingListsItemslist of optional ShoppingListItem