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

shoppingListsDuplicate

Example Query
1mutation ExampleMutation($sampleShoppingListId: Int, $shoppingListData: ShoppingListsDuplicateInputType) {
2 shoppingListsDuplicate(sampleShoppingListId: $sampleShoppingListId, shoppingListData: $shoppingListData) {
3 shoppingList {
4 id
5 createdAt
6 updatedAt
7 name
8 description
9 reason
10 status
11 approvedFlag
12 customerInfo
13 isOwner
14 }
15 }
16}
Variables
1{
2 "sampleShoppingListId": 0,
3 "shoppingListData": {
4 "name": "example",
5 "description": "example"
6 }
7}
Example response
1{
2 "data": {
3 "shoppingListsDuplicate": {
4 "shoppingList": {
5 "id": "example",
6 "createdAt": 0,
7 "updatedAt": 0,
8 "name": "example",
9 "description": "example",
10 "reason": "example",
11 "status": 0,
12 "approvedFlag": true,
13 "customerInfo": {
14 "firstName": null,
15 "lastName": null,
16 "userId": null,
17 "email": null,
18 "role": null
19 },
20 "isOwner": true
21 }
22 }
23 }
24}
Duplicate a shopping list. Requires a B2B Token.
Was this page helpful?
Previous

shoppingListsDelete

Next

shoppingListsItemsCreate

Built with

Arguments

sampleShoppingListIdIntegerRequired
Sample shopping list id. This field is required.
shoppingListDataShoppingListsDuplicateInputTypeRequired
Details of the shopping list. This field is required.

Returns

an optional ShoppingListsDuplicate
shoppingListShoppingListType