Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
English (US)
FI Finnish
US English (US)
  • Home
  • Partners

AI Commerce GraphQL User Guide for Partners

Learn how to leverage AI Commerce with your partners using GraphQL.

Written by Petro Mäntylä

Updated at April 27th, 2026

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • AI Commerce
    Administration homepage Customer relationships Orders Order management Categories Quotation tool Products Configurations Modules Local regulations and taxes Front page FAQ -työkalu Tools Box Additional functions Svelte
  • Akeneo
  • Builder.io
  • Algolia
  • Google
  • Partners
  • Tuki
+ More

Table of Contents

What is GraphQL and why is it used in the AI Commerce environment? How does GraphQL work in AI Commerce environment? How to make a GraphQL request in AI Commerce ? 📌 Example: Retrieving 5 products (POST request) Required headers in each request We recommend using AI Commerce Lambda environment GraphQL vs. REST API – What’s the difference? AI Commerce GraphQL - Rate Limiting Summary Where is the more detailed GraphQL API documentation?

AI Commerce GraphQL API for partners

This article explains how partners and integration teams use the AI Commerce GraphQL API. It covers where to find the public API documentation, how requests are sent, which headers are required, and how rate limiting works.


Public API documentation

The public GraphQL schema reference is available at https://docs.aicommerce.cloud. Use it to browse available queries, mutations, types, examples, and authentication headers.

The documentation site and the live API endpoint are intentionally separate. Use docs.aicommerce.cloud as the schema reference, and send production API requests to https://api.aicommerce.fi/graphql.


How GraphQL requests work in AI Commerce

GraphQL requests are sent as HTTP POST requests with a JSON request body. The request body contains a query field and, when needed, a variables field.

  • The client asks only for the fields it needs.
  • The API returns data in the same shape as the requested GraphQL selection.
  • Each request must include the required tenant and GraphQL authentication headers.

Required request headers

Every GraphQL request must include the following headers.

Header Description
Content-Type Must be application/json.
X-Tenant-ID The tenant identifier issued during onboarding.
X-Tenant-Secret The tenant-specific secret issued during onboarding.
X-GraphQL-Secret The AI Commerce GraphQL access token issued during onboarding.

Example request

The following example requests a small page of products.

query Products($limit: Int, $offset: Int) {
  products(limit: $limit, offset: $offset) {
    id
    name
    price
  }
}

Example request with variables:

curl -X POST https://api.aicommerce.fi/graphql \
  -H "Content-Type: application/json" \
  -H "X-Tenant-ID: your-tenant-id" \
  -H "X-Tenant-Secret: <your-tenant-secret>" \
  -H "X-GraphQL-Secret: <your-graphql-secret>" \
  --data '{
    "query": "query Products($limit: Int, $offset: Int) { products(limit: $limit, offset: $offset) { id name price } }",
    "variables": {
      "limit": 5,
      "offset": 0
    }
  }'

Example response shape:

{
  "data": {
    "products": [
      {
        "id": "632",
        "name": "Example product",
        "price": 89.9
      }
    ]
  }
}

Rate limiting and errors

The production GraphQL API is rate limited to protect service stability. The current limit is 100 requests per 5 minutes per tenant.

  • If the limit is exceeded, the API returns 429 Too Many Requests.
  • If authentication fails, verify the tenant identifier, tenant secret, and GraphQL access token.
  • If the request body is invalid, verify that the request is valid JSON and that the GraphQL query matches the public schema.
{
  "error": "Too many requests, please try again later."
}

GraphQL compared with REST

GraphQL is useful when an integration needs a specific set of fields or needs to combine related data in one request.

Area GraphQL REST API
Request model The client defines the fields it needs. The endpoint defines the response shape.
Data volume Only requested fields are returned. The response may include fields the integration does not need.
Integration flow One query can request several related fields. Several endpoint calls may be needed.

Security and onboarding

  • Keep tenant and GraphQL secrets on the server side. Do not expose them in browser-side code or public repositories.
  • Use the public documentation to validate query names, field names, argument names, and response types before implementation.
  • For API credentials or onboarding questions, contact info@petrosoft.fi.

Summary

  • Public GraphQL documentation is available at https://docs.aicommerce.cloud.
  • Production API requests are sent to https://api.aicommerce.fi/graphql.
  • Every request requires Content-Type, X-Tenant-ID, X-Tenant-Secret, and X-GraphQL-Secret.
  • The API is rate limited per tenant, so integrations should handle 429 Too Many Requests responses cleanly.
partner guide ai commerce graphql

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • AI Commerce supports Composable Commerce and the Serverless Lamda development environment
  • What is AI Commerce and our vision?
  • Sonet CGI Premium AI Commerce API
  • AI Commerce supports a separate development environment for partners
  • How is AI Commerce 's Svelte frontend organized?

Copyright 2026 – AI Commerce Cloud.

Knowledge Base Software powered by Helpjuice

Expand