> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# generateSessionSyncJwt

GraphQL MUTATION

Generate Session Sync JWT Token.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/mutations/generate-session-sync-jwt

## GraphQL Schema

```graphql
mutation ExampleMutation($redirectTo: String!, $cartId: String, $paymentWalletData: PaymentWalletDataInput, $visitorId: UUID, $visitId: UUID, $ipAddress: IpAddress, $analytics: AnalyticsCommonEventInput) {
  generateSessionSyncJwt(redirectTo: $redirectTo, cartId: $cartId, paymentWalletData: $paymentWalletData, visitorId: $visitorId, visitId: $visitId, ipAddress: $ipAddress, analytics: $analytics) {
    result {
      token
      url
    }
    errors
  }
}
```

## Variables

```json
{
  "redirectTo": "example",
  "cartId": "example",
  "paymentWalletData": {
    "initializationId": "example",
    "providerOrderId": "example",
    "providerId": "example"
  },
  "visitorId": "example",
  "visitId": "example",
  "ipAddress": "example",
  "analytics": {
    "initiator": {
      "visitId": "example",
      "visitorId": "example"
    },
    "request": {
      "url": "example",
      "userAgent": "example",
      "refererUrl": "example",
      "ip": "example",
      "acceptLanguage": "example"
    },
    "consent": {
      "targeting": true,
      "analytics": true,
      "functional": true
    }
  }
}
```