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

# login

GraphQL MUTATION

Login to a store with Bigcommerce user email and password.  
Doesn't require a Token.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/mutations/login

## GraphQL Schema

```graphql
mutation ExampleMutation($loginData: UserLoginType!) {
  login(loginData: $loginData) {
    result {
      token
      user
      loginType
      storefrontLoginToken
      permissions
    }
  }
}
```

## Variables

```json
{
  "loginData": {
    "storeHash": "example",
    "email": "example",
    "password": "example",
    "channelId": 0,
    "redirectUrl": "example"
  }
}
```