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
      • Explorer
          • MUTcreateCart
          • MUTdeleteCart
          • MUTaddCartLineItems
          • MUTupdateCartLineItem
          • MUTdeleteCartLineItem
          • MUTupdateCartCurrency
          • MUTassignCartToCustomer
          • MUTunassignCartFromCustomer
          • MUTcreateCartMetafield
          • MUTupdateCartMetafield
          • MUTdeleteCartMetafield
          • MUTcreateCartRedirectUrls
          • MUTcreateCheckout
          • MUTupdateCheckout
          • MUTaddCheckoutBillingAddress
          • MUTupdateCheckoutBillingAddress
          • MUTupdateCheckoutCustomerMessage
          • MUTselectCheckoutShippingOption
          • MUTapplyCheckoutCoupon
          • MUTunapplyCheckoutCoupon
          • MUTapplyCheckoutGiftCertificate
          • MUTunapplyCheckoutGiftCertificate
          • MUTapplyCheckoutSpamProtection
          • MUTaddCheckoutShippingConsignments
          • MUTupdateCheckoutShippingConsignment
          • MUTdeleteCheckoutConsignment
          • MUTcompleteCheckout
          • MUTlogin
          • MUTlogout
          • MUTcreateWishlist
          • MUTaddWishlistItems
          • MUTdeleteWishlistItems
          • MUTupdateWishlist
          • MUTdeleteWishlists
          • MUTloginWithCustomerLoginJwt
          • MUTsubmitContactUs
          • MUTgenerateSessionSyncJwt
          • MUTvalidateSessionSyncJwt
          • MUTproductViewedEvent
          • MUTpageViewedEvent
          • MUTvisitStartedEvent
          • MUTsearchProductEvent
          • MUTpreviewGiftCertificate
          • MUTregisterCompany
          • MUTaddProductReview
          • MUTchangePassword
          • MUTrequestResetPassword
          • MUTresetPassword
          • MUTregisterCustomer
          • MUTupdateCustomer
          • MUTaddCustomerAddress
          • MUTupdateCustomerAddress
          • MUTdeleteCustomerAddress
          • MUTpayment
          • MUTsubscribe
          • MUTunsubscribe
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLStorefrontMutations

unassignCartFromCustomer

Example Query
1mutation ExampleMutation($input: UnassignCartFromCustomerInput) {
2 unassignCartFromCustomer(input: $input) {
3 cart {
4 id
5 entityId
6 currencyCode
7 displayCurrencyCode
8 isTaxIncluded
9 baseAmount
10 baseAmountInDisplayCurrency
11 discountedAmount
12 discountedAmountInDisplayCurrency
13 amount
14 }
15 }
16}
Variables
1{
2 "input": {
3 "cartEntityId": "example",
4 "version": 0
5 }
6}
Example response
1{
2 "data": {
3 "unassignCartFromCustomer": {
4 "cart": {
5 "id": "example",
6 "entityId": "example",
7 "currencyCode": "example",
8 "displayCurrencyCode": "example",
9 "isTaxIncluded": true,
10 "baseAmount": {
11 "currencyCode": null,
12 "value": null,
13 "formatted": null,
14 "formattedV2": null
15 },
16 "baseAmountInDisplayCurrency": {
17 "currencyCode": null,
18 "value": null,
19 "formatted": null,
20 "formattedV2": null
21 },
22 "discountedAmount": {
23 "currencyCode": null,
24 "value": null,
25 "formatted": null,
26 "formattedV2": null
27 },
28 "discountedAmountInDisplayCurrency": {
29 "currencyCode": null,
30 "value": null,
31 "formatted": null,
32 "formattedV2": null
33 },
34 "amount": {
35 "currencyCode": null,
36 "value": null,
37 "formatted": null,
38 "formattedV2": null
39 }
40 }
41 }
42 }
43}
Unassign cart from the customer.
Was this page helpful?
Previous

assignCartToCustomer

Next

createCartMetafield

Built with

Arguments

inputUnassignCartFromCustomerInputRequired
Unassign cart from the customer input object.

Returns

an optional UnassignCartFromCustomerResult
cartCart
The Cart that is updated as a result of mutation.