Accessing graphQL at C&B Systemer

Access token

In order access the RealEquity graphQL you need to identify yourself with a bearer token.

How to generate a token is described in these documents:

You’ll need this additional information to be able to generate your token

  • Identity server URL is: https://identity.prod.realequity.dk/connect/token
  • resourceGroupId identifying the chain or store you’re fething data for (provided by C&B)
  • client_id (provided by C&B and identifies you as a partner)
  • client_secret (provided by C&B))

:exclamation: Please note that client_id and client_secret is highly confidential information and should be treated in your organization as such.

graphQL GUI

RealEquity graphQL is accessed here: https://graphql.prod.realequity.dk/graphql

The first time you access the graphQL GUI, you should click “Create Document”:

Having done that, you need to create a HTTP Header as shown here:

By writing the phrase “query {}” in the request column on the ‘Operation’ tab, you can invoke the Builder, which can be usefull to toggle on.

Toggling the Builder

You toggle the Builder by clicking the treeview ikon to the left of the ‘Request’ headline.

Builder toggled off


Builder toggled on

Restricted access

Your access is restricted to fractions prefixed with “distribution”

Converting a graphQL query to at API request payload

If you’re using Google Chrome as your webbrowser you can get the converted request from the F12 developer tool by finding the graphQL request under ‘network’.

If you prefer a manuel conversion..

  • substitute visible line breaks with \r\n
  • escape double quotes with a leading backslash \"

API endpoint

The graphQL request payload should be postet to: https://graphql.prod.realequity.dk/graphql
Remember to include your bearer token in the request header.