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

validateSessionSyncJwt

Example Query
1mutation ExampleMutation($jwt: String) {
2 validateSessionSyncJwt(jwt: $jwt) {
3 content {
4 customer
5 customerAccessToken
6 cart
7 analytics
8 redirectTo
9 }
10 errors
11 }
12}
Variables
1{
2 "jwt": "example"
3}
Example response
1{
2 "data": {
3 "validateSessionSyncJwt": {
4 "content": {
5 "customer": {
6 "entityId": null,
7 "company": null,
8 "customerGroupId": null,
9 "customerGroupName": null,
10 "email": null,
11 "firstName": null,
12 "lastName": null,
13 "notes": null,
14 "phone": null,
15 "taxExemptCategory": null
16 },
17 "customerAccessToken": {
18 "value": null,
19 "expiresAt": null
20 },
21 "cart": {
22 "id": null,
23 "entityId": null,
24 "currencyCode": null,
25 "displayCurrencyCode": null,
26 "isTaxIncluded": null,
27 "baseAmount": null,
28 "baseAmountInDisplayCurrency": null,
29 "discountedAmount": null,
30 "discountedAmountInDisplayCurrency": null,
31 "amount": null
32 },
33 "analytics": {
34 "visitorId": null,
35 "visitId": null,
36 "initiator": null,
37 "request": null,
38 "consent": null
39 },
40 "redirectTo": "example"
41 },
42 "errors": [
43 {
44 "errorType": "OTHER",
45 "message": "example"
46 }
47 ]
48 }
49 }
50}
Unwrapping encoded in jwt token session state.
Was this page helpful?
Previous

generateSessionSyncJwt

Next

productViewedEvent

Built with

Arguments

jwtStringRequired
jwt token session state with encoded session state.

Returns

a ValidateSessionSyncJwtResult
errorslist of ValidateSessionSyncJwtErrors
Restored session errors.
contentSessionSyncJwtContent
Restored session state.