> 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.

# createCartRedirectUrls

GraphQL MUTATION

Create single-use redirect URLs for a cart.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/mutations/cart/create-cart-redirect-urls

## GraphQL Schema

```graphql
mutation ExampleMutation($input: CreateCartRedirectUrlsInput) {
  cart {
    createCartRedirectUrls(input: $input) {
      redirectUrls {
        redirectedCheckoutUrl
        embeddedCheckoutUrl
        externalCheckoutUrl
      }
      errors
    }
  }
}
```

## Variables

```json
{
  "input": {
    "cartEntityId": "example",
    "queryParams": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "ipAddress": "example",
    "visitorId": "example",
    "visitId": "example",
    "paymentWalletData": {
      "initializationId": "example",
      "providerOrderId": "example",
      "providerId": "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
      }
    }
  }
}
```