---
updatedAt: 2026-07-31T09:30:10.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/content/llms.txt
---

# GraphQL Commerce API guides

## Introduction

This page explains how to use the GraphQL Commerce API with your Bloomreach Content account and your frontend application(s).

## GraphQL Commerce URLs

The GraphQL Commerce is available at the following URLs:

|                        |                                                  |
| :--------------------- | :----------------------------------------------- |
| Staging Environment    | `https://graphql-commerce-preprod.bloomreach.io` |
| Production Environment | `https://graphql-commerce.bloomreach.io`         |

Additionally, any requests to the GraphQL Server should include the `br-acct-env` request header. The value should match your Bloomreach Content account name, defined as part of the Bloomreach Content instance URL `https://[account_name].bloomreach.io`.

If you are not using these URLs in both staging and production, please make sure to update your configurations as explained in the following paragraphs.

**Back end**

Please execute the following steps:

* Create a new [development project](https://documentation.bloomreach.com/content/docs/create-a-project)
* Associate the desired channel
* Move to the [Site Development project](https://documentation.bloomreach.com/content/docs/site-development)
* Open the development project created in a previous step
* Edit the `graphql_baseurl` channel property value to desired instance (e.g. `https://graphql-commerce.bloomreach.io` for production)
* Create a new channel property called `graphqlTenantName`: ideally it is hidden
* Fill the `graphqlTenantName` property value with your Bloomreach Content account name: that is defined as part of the Bloomreach Content URL  `https://[account_name].bloomreach.io`

Please repeat the steps above for all the Content channels dealing with the GraphQL Commerce.

**Front end**

If your front-end implementation uses the [Commerce React Components](ref:doc:commerce-react-components) library, then:

* Make sure that your front-end implementations use the latest version of the library
* Add (or edit) the `accountEnvId` parameter to any occurrence of the `CommerceConnectorProvider` React component, like the following:

```typescript
<CommerceConnectorProvider
   graphqlServiceUrl={graphqlServiceUrl}
   ...
   accountEnvId="[account_name]"
 >
 …
 </CommerceConnectorProvider>
```

If your front-end does not use the Commerce React Components library, please make sure to update your GraphQL client(s), in order to inject the requested header.

Once both the front-end and back-end changes have been tested, execute the following steps in this order:

* Deploy the new front-end changes
* Merge your project to the core branch

## General configuration options

The following configuration options are available. If you wish to make a change, please submit a support request with the names of the properties and your preferred values.

[block:parameters]
{
  "data": {
    "h-0": "**Property Name (\\* required field)**",
    "h-1": "**Description**",
    "h-2": "**Default Value**",
    "0-0": "APOLLO_INTROSPECTION",
    "0-1": "If set to 'true', the [Apollo Server Introspection](https://www.apollographql.com/docs/graphos/reference/glossary?docs%5Bquery%5D=introspection) technique is enabled to provide detailed information about a GraphQL API's schema.",
    "0-2": "'false'",
    "1-0": "APOLLO_PLAYGROUND",
    "1-1": "If set to 'true', the [Apollo Server GraphQL Playground](https://www.apollographql.com/docs/resources/graphql-glossary/#graphql-playground), the in-browser IDE for GraphQL development and workflow, is enabled to provide developers with features such as theme change, automatic schema reloading, HTTP headers configuration, query history and GraphQL subscription support.",
    "1-2": "'false'",
    "2-0": "CORS_ORIGIN",
    "2-1": "The allowed origin which wants to access the GraphQL Commerce as a [Cross-Origin Resource Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) target.  <br>If this is not set or set to an empty string, then the GraphQL Commerce allows access to the clients sending a valid 'Origin' request header.  <br>If set to '\\*', then the GraphQL Commerce allows access to any clients.  <br>If set to a specific URL (e.g, `https://www.example.com`), then the GraphQL Commerce allows access only to the clients which are originated from the URL.",
    "2-2": "",
    "3-0": "TOKEN_REFRESH_ENABLED",
    "3-1": "If set to 'true', the _**Refreshing Access Token**_ request against [Access Management](https://documentation.bloomreach.com/content/reference/access-management-in-graphql-commerce) is enabled on the GraphQL Commerce. This option has been disabled by default since v14.3.0.",
    "3-2": "",
    "4-0": "DEFAULT_CONNECTOR_ID",
    "4-1": "GraphQL Commerce reads the Commerce Connector ID from the HTTP request header named 'connector'. If the GraphQL client does not provide a valid Commerce Connector ID value, then this variable is used instead.",
    "4-2": "'brsm'",
    "5-0": "DEFAULT_LANGUAGE",
    "5-1": "The default language code for the client.",
    "5-2": "'en'",
    "6-0": "DEFAULT_COUNTRY",
    "6-1": "The default country code for the client.",
    "6-2": "'US'",
    "7-0": "DEFAULT_CURRENCY",
    "7-1": "The default currency code for the client.",
    "7-2": "'USD'",
    "8-0": "RESPONSE_TIME_HEADER_ENABLED",
    "8-1": "If set to 'true', the internal response time in milliseconds measured in the GraphQL Commerce is passed in the `X-Response-Time` response header.",
    "8-2": ""
  },
  "cols": 3,
  "rows": 9,
  "align": [
    null,
    null,
    null
  ]
}
[/block]

## Search and commerce back-end platform connection settings and connector IDs

Search and the following commerce back-end platforms are supported (differentiated by their unique identifier to be specified in the `connector` request header):

* Search [Connector Configuration](https://documentation.bloomreach.com/content/reference/discovery-connector-configuration) (`connector` request header: `brsm`)
* [commercetools Connector Configuration](https://documentation.bloomreach.com/content/reference/commercetools-connector-configuration-1) (`connector` request header: `commercetools`)
* [SAP Connector Configuration](https://documentation.bloomreach.com/content/reference/sap-connector-configuration-1) (`connector` request header: `sap`)
* [Shopify Connector Configuration](https://documentation.bloomreach.com/content/reference/shopify-connector-configuration-1) (`connector` request header: `shopify`)
* [BigCommerce Connector Configuration](https://documentation.bloomreach.com/content/reference/bigcommerce-connector-configuration-1) (`connector` request header: `bigcommerce`)

> 📘 Note
>
> The Search [connector](https://documentation.bloomreach.com/content/reference/discovery-connector-configuration) is configured by default, while the other connectors are configured only on request (see below).

## How to request configuration changes?

Please use our support channel to request configuration changes, including properties name and value(s).