Skip to content

Commerce engine

For CoreConnect e-commerce applications, the GraphQL interface plugin should be enabled on your Gateway service along with the specific e-commerce provider plugin (on both Functions and Gateway)

GraphQL

This plugin is required for e-commerce projects in combination with one (and only one) of the plugins below to provide the GraphQL interface for your application. Only your Gateway service requires this plugin to be enabled.

Name CoreConnect.Commerce.GraphQL
Required true
Configuration

There is no specific configuration for this plugin

Technical details

What this plugin does is to install a GraphQL server on your Gateway (Hot Chocolate) and defines a common GraphQL schema for all e-commerce providers. This schema is then implemented by the specific e-commerce provider plugins to provide the necessary fields and resolvers for the specific e-commerce provider.

It is possible to add your own custom fields and resolvers to the GraphQL schema by creating a custom plugin that extends the GraphQL schema.

CommerceTools

This plugin should be used to integrate your CommerceTools project with your CoreConnect application. This plugin should be installed on both Functions and Gateway services.

Name CoreConnect.Commerce.CommerceTools
Choice true
Configuration name CommerceTools
Configuration
{
  "ClientId": "ksx05Tz4fTz-0SEO7qZIEUfB",
  "ClientSecret": "",
  "AuthorizationBaseAddress": "https://auth.europe-west1.gcp.commercetools.com/",
  "Scope": "manage_project:rb2-demo",
  "ProjectKey": "rb2-demo",
  "ApiBaseAddress": "https://api.europe-west1.gcp.commercetools.com/"
}

Scayle

This plugin should be used to integrate your Scayle project with your CoreConnect application. This plugin should be installed on both Functions and Gateway services.

Name CoreConnect.Commerce.Scayle
Choice true
Configuration name Scayle
Configuration
{
  "Token": "",
  "ShopKey": "ac",
  "ShopId": 1020,
  "BaseLocale": "en_GB",
  "Countries": {
    "nl-NL": "1001",
    "de-NL": "1001"
  },
  "ImageRoot": "https://cpr-demo.cdn.aboutyou.cloud/",
  "ApiUrl": "https://cpr-demo.storefront.api.scayle.cloud",
  "AdminUrl": "https://cpr-demo.admin.api.scayle.cloud/api/admin/v1",
  "AuthUrl": "https://cpr-demo.auth.scayle.cloud",
  "CustomerAccountUrl": "https://cpr-demo.checkout.api.scayle.cloud",
  "ClientSecret": "",
  "ClientId": "1"
}