Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.spojit.com/llms.txt

Use this file to discover all available pages before exploring further.

The Adobe Commerce GraphQL connector lets your workflows interact with a Magento 2 / Adobe Commerce store via the GraphQL API. Best for storefront operations: product catalog browsing, cart and checkout flows, and customer self-service. Returns only the fields you request.
For admin/back-office operations like order management, inventory updates, shipments, and invoices, use the Adobe Commerce REST connector instead — it covers the full Magento admin API surface.
For the full API reference, see the Adobe Commerce GraphQL API documentation.

Connection setup

1

Create an Integration in Magento Admin

Go to System → Integrations → Add New Integration. Give it a name (e.g., “Spojit”) and configure the API tab to grant access to the resources your workflows need.
2

Activate and copy the tokens

Click Activate on the integration. Copy the Access Token — this is a permanent token that works until revoked.
3

Add the connection in Spojit

Go to Connections in Spojit, click Add Connection, select Adobe Commerce GraphQL, and enter:
  • Base URL: Your store URL (e.g., https://mystore.com)
  • Access Token: The integration access token
  • Store Code (optional): Defaults to default

Tools

Catalog

Search term.
categoryId
string
Filter by category UID.
minPrice
number
Minimum price filter.
maxPrice
number
Maximum price filter.
pageSize
number
default:"20"
Results per page.
currentPage
number
default:"1"
Page number.
fields
string
Custom GraphQL fields for product items — use GraphQL field syntax including nested selections (e.g., sku name price_range { minimum_price { final_price { value currency } } }). If omitted, returns: uid, sku, name, type_id, stock_status, price_range, small_image, short_description, categories, url_key.
Example request:
{
  "search": "shirt",
  "pageSize": 2,
  "currentPage": 1
}
Example response:
{
  "data": {
    "products": {
      "total_count": 15,
      "items": [
        {
          "uid": "NDI=",
          "sku": "WS-001",
          "name": "Blue Cotton Shirt",
          "type_id": "simple",
          "stock_status": "IN_STOCK",
          "price_range": {
            "minimum_price": {
              "regular_price": { "value": 29.99, "currency": "USD" },
              "final_price": { "value": 29.99, "currency": "USD" },
              "discount": { "amount_off": 0, "percent_off": 0 }
            }
          },
          "small_image": { "url": "https://mystore.com/media/catalog/product/w/s/ws-001.jpg", "label": "Blue Cotton Shirt" },
          "short_description": { "html": "<p>Lightweight blue cotton shirt.</p>" },
          "categories": [
            { "uid": "NQ==", "name": "Tops", "url_path": "men/tops" }
          ],
          "url_key": "blue-cotton-shirt"
        }
      ],
      "page_info": {
        "current_page": 1,
        "page_size": 2,
        "total_pages": 8
      }
    }
  }
}
sku
string
required
Product SKU.
Example request:
{
  "sku": "WS-001"
}
Example response:
{
  "data": {
    "products": {
      "items": [
        {
          "uid": "NDI=",
          "sku": "WS-001",
          "name": "Blue Cotton Shirt",
          "type_id": "simple",
          "stock_status": "IN_STOCK",
          "meta_title": "Blue Cotton Shirt",
          "meta_description": "Shop our blue cotton shirt, lightweight and comfortable.",
          "url_key": "blue-cotton-shirt",
          "price_range": {
            "minimum_price": {
              "regular_price": { "value": 29.99, "currency": "USD" },
              "final_price": { "value": 29.99, "currency": "USD" },
              "discount": { "amount_off": 0, "percent_off": 0 }
            },
            "maximum_price": {
              "regular_price": { "value": 29.99, "currency": "USD" },
              "final_price": { "value": 29.99, "currency": "USD" }
            }
          },
          "description": { "html": "<p>A comfortable blue cotton shirt, perfect for warm weather.</p>" },
          "short_description": { "html": "<p>Lightweight blue cotton shirt.</p>" },
          "media_gallery": [
            { "url": "https://mystore.com/media/catalog/product/w/s/ws-001-front.jpg", "label": "Front view", "position": 1, "disabled": false },
            { "url": "https://mystore.com/media/catalog/product/w/s/ws-001-back.jpg", "label": "Back view", "position": 2, "disabled": false }
          ],
          "categories": [
            { "uid": "NQ==", "name": "Tops", "url_path": "men/tops", "level": 3 }
          ],
          "related_products": [
            { "uid": "NDM=", "sku": "WS-003", "name": "Green Cotton Shirt" }
          ],
          "crosssell_products": [],
          "upsell_products": []
        }
      ]
    }
  }
}
parentId
string
Parent category UID to filter children.
name
string
Filter categories by name.
Example request:
{
  "parentId": "Mg=="
}
Example response:
{
  "data": {
    "categories": {
      "total_count": 4,
      "items": [
        {
          "uid": "Mw==",
          "name": "Men",
          "level": 2,
          "path": "1/2/3",
          "url_path": "men",
          "children_count": "3",
          "product_count": 45,
          "children": [
            { "uid": "NQ==", "name": "Tops", "level": 3, "url_path": "men/tops", "product_count": 20 },
            { "uid": "Ng==", "name": "Bottoms", "level": 3, "url_path": "men/bottoms", "product_count": 15 }
          ]
        },
        {
          "uid": "NA==",
          "name": "Women",
          "level": 2,
          "path": "1/2/4",
          "url_path": "women",
          "children_count": "2",
          "product_count": 60,
          "children": [
            { "uid": "Nw==", "name": "Dresses", "level": 3, "url_path": "women/dresses", "product_count": 30 }
          ]
        }
      ]
    }
  }
}
id
number
required
Category ID.
pageSize
number
default:"20"
Products per page.
currentPage
number
default:"1"
Product page number.
Example request:
{
  "id": 5
}
Example response:
{
  "data": {
    "category": {
      "uid": "NQ==",
      "name": "Tops",
      "description": "<p>Browse our collection of tops for men.</p>",
      "level": 3,
      "path": "1/2/3/5",
      "url_path": "men/tops",
      "image": "https://mystore.com/media/catalog/category/tops-banner.jpg",
      "product_count": 20,
      "children": [
        { "uid": "OA==", "name": "T-Shirts", "url_path": "men/tops/t-shirts", "product_count": 12 },
        { "uid": "OQ==", "name": "Polos", "url_path": "men/tops/polos", "product_count": 8 }
      ],
      "products": {
        "total_count": 20,
        "items": [
          {
            "uid": "NDI=",
            "sku": "WS-001",
            "name": "Blue Cotton Shirt",
            "stock_status": "IN_STOCK",
            "price_range": {
              "minimum_price": {
                "regular_price": { "value": 29.99, "currency": "USD" },
                "final_price": { "value": 29.99, "currency": "USD" }
              }
            },
            "small_image": { "url": "https://mystore.com/media/catalog/product/w/s/ws-001.jpg", "label": "Blue Cotton Shirt" }
          }
        ],
        "page_info": {
          "current_page": 1,
          "page_size": 20,
          "total_pages": 1
        }
      }
    }
  }
}

Cart & Checkout

Creates an empty cart and returns the cart ID. No parameters required.Example response:
{
  "data": {
    "createEmptyCart": "aGVsbG8gd29ybGQ="
  }
}
cartId
string
required
Cart ID.
items
array
required
Array of { sku, quantity } objects.
Example request:
{
  "cartId": "aGVsbG8gd29ybGQ=",
  "items": [
    { "sku": "WS-001", "quantity": 2 },
    { "sku": "WS-003", "quantity": 1 }
  ]
}
Example response:
{
  "data": {
    "addProductsToCart": {
      "cart": {
        "id": "aGVsbG8gd29ybGQ=",
        "total_quantity": 3,
        "items": [
          {
            "uid": "MQ==",
            "quantity": 2,
            "product": { "sku": "WS-001", "name": "Blue Cotton Shirt" },
            "prices": {
              "price": { "value": 29.99, "currency": "USD" },
              "row_total": { "value": 59.98, "currency": "USD" }
            }
          },
          {
            "uid": "Mg==",
            "quantity": 1,
            "product": { "sku": "WS-003", "name": "Green Cotton Shirt" },
            "prices": {
              "price": { "value": 34.99, "currency": "USD" },
              "row_total": { "value": 34.99, "currency": "USD" }
            }
          }
        ],
        "prices": {
          "grand_total": { "value": 94.97, "currency": "USD" },
          "subtotal_excluding_tax": { "value": 94.97, "currency": "USD" },
          "applied_taxes": [],
          "discounts": []
        }
      },
      "user_errors": []
    }
  }
}
cartId
string
required
Cart ID.
Example request:
{
  "cartId": "aGVsbG8gd29ybGQ="
}
Example response:
{
  "data": {
    "cart": {
      "id": "aGVsbG8gd29ybGQ=",
      "email": null,
      "total_quantity": 3,
      "items": [
        {
          "uid": "MQ==",
          "quantity": 2,
          "product": {
            "uid": "NDI=",
            "sku": "WS-001",
            "name": "Blue Cotton Shirt",
            "small_image": { "url": "https://mystore.com/media/catalog/product/w/s/ws-001.jpg" }
          },
          "prices": {
            "price": { "value": 29.99, "currency": "USD" },
            "row_total": { "value": 59.98, "currency": "USD" }
          }
        }
      ],
      "prices": {
        "grand_total": { "value": 99.97, "currency": "USD" },
        "subtotal_excluding_tax": { "value": 94.97, "currency": "USD" },
        "subtotal_including_tax": { "value": 94.97, "currency": "USD" },
        "applied_taxes": [],
        "discounts": []
      },
      "shipping_addresses": [],
      "billing_address": null,
      "selected_payment_method": { "code": "", "title": "" },
      "available_payment_methods": [
        { "code": "checkmo", "title": "Check / Money order" },
        { "code": "cashondelivery", "title": "Cash On Delivery" }
      ]
    }
  }
}
cartId
string
required
Cart ID.
address
object
required
Address object with firstname, lastname, street, city, region, regionId, postcode, countryCode, telephone.
Example request:
{
  "cartId": "aGVsbG8gd29ybGQ=",
  "address": {
    "firstname": "Jane",
    "lastname": "Smith",
    "street": ["123 Main St"],
    "city": "Austin",
    "region": "TX",
    "postcode": "73301",
    "countryCode": "US",
    "telephone": "5125551234"
  }
}
Example response:
{
  "data": {
    "setShippingAddressesOnCart": {
      "cart": {
        "id": "aGVsbG8gd29ybGQ=",
        "shipping_addresses": [
          {
            "firstname": "Jane",
            "lastname": "Smith",
            "street": ["123 Main St"],
            "city": "Austin",
            "region": { "code": "TX", "label": "Texas" },
            "postcode": "73301",
            "country": { "code": "US", "label": "US" },
            "telephone": "5125551234",
            "available_shipping_methods": [
              {
                "carrier_code": "flatrate",
                "carrier_title": "Flat Rate",
                "method_code": "flatrate",
                "method_title": "Fixed",
                "amount": { "value": 5.00, "currency": "USD" }
              },
              {
                "carrier_code": "freeshipping",
                "carrier_title": "Free Shipping",
                "method_code": "freeshipping",
                "method_title": "Free",
                "amount": { "value": 0.00, "currency": "USD" }
              }
            ]
          }
        ]
      }
    }
  }
}
cartId
string
required
Cart ID.
carrierCode
string
required
Carrier code (e.g., flatrate).
methodCode
string
required
Method code (e.g., flatrate).
Example request:
{
  "cartId": "aGVsbG8gd29ybGQ=",
  "carrierCode": "flatrate",
  "methodCode": "flatrate"
}
Example response:
{
  "data": {
    "setShippingMethodsOnCart": {
      "cart": {
        "id": "aGVsbG8gd29ybGQ=",
        "shipping_addresses": [
          {
            "selected_shipping_method": {
              "carrier_code": "flatrate",
              "carrier_title": "Flat Rate",
              "method_code": "flatrate",
              "method_title": "Fixed",
              "amount": { "value": 5.00, "currency": "USD" }
            }
          }
        ],
        "prices": {
          "grand_total": { "value": 99.97, "currency": "USD" }
        }
      }
    }
  }
}
Sets the payment method and places the order.
cartId
string
required
Cart ID.
paymentMethodCode
string
required
Payment method code (e.g., checkmo).
Example request:
{
  "cartId": "aGVsbG8gd29ybGQ=",
  "paymentMethodCode": "checkmo"
}
Example response:
{
  "data": {
    "placeOrder": {
      "order": {
        "order_number": "000000101"
      }
    }
  }
}

Customer

firstname
string
required
First name.
lastname
string
required
Last name.
email
string
required
Email address.
password
string
required
Password.
Example request:
{
  "firstname": "John",
  "lastname": "Doe",
  "email": "john@example.com",
  "password": "SecurePass123!"
}
Example response:
{
  "data": {
    "createCustomerV2": {
      "customer": {
        "firstname": "John",
        "lastname": "Doe",
        "email": "john@example.com",
        "is_subscribed": false,
        "created_at": "2025-04-01 14:00:00"
      }
    }
  }
}
Get the profile of the currently authenticated customer. Requires a customer token.Example response:
{
  "data": {
    "customer": {
      "firstname": "John",
      "lastname": "Doe",
      "email": "john@example.com",
      "date_of_birth": "1990-05-15",
      "gender": 1,
      "is_subscribed": false,
      "created_at": "2025-04-01 14:00:00",
      "addresses": [
        {
          "id": 1,
          "firstname": "John",
          "lastname": "Doe",
          "street": ["456 Oak Ave"],
          "city": "Portland",
          "region": { "region_code": "OR", "region": "Oregon" },
          "postcode": "97201",
          "country_code": "US",
          "telephone": "5035559876",
          "default_shipping": true,
          "default_billing": true
        }
      ],
      "orders": {
        "total_count": 3,
        "items": [
          {
            "order_number": "000000101",
            "order_date": "2025-03-28 16:42:00",
            "status": "Complete",
            "total": {
              "grand_total": { "value": 99.97, "currency": "USD" }
            }
          }
        ]
      }
    }
  }
}
firstname
string
First name.
lastname
string
Last name.
email
string
Email.
dateOfBirth
string
Date of birth (YYYY-MM-DD).
gender
number
Gender: 1 = Male, 2 = Female, 3 = Not Specified.
isSubscribed
boolean
Newsletter subscription.
Example request:
{
  "firstname": "Jonathan",
  "lastname": "Doe"
}
Example response:
{
  "data": {
    "updateCustomerV2": {
      "customer": {
        "firstname": "Jonathan",
        "lastname": "Doe",
        "email": "john@example.com",
        "is_subscribed": false,
        "date_of_birth": "1990-05-15",
        "gender": 1
      }
    }
  }
}
email
string
required
Customer email.
password
string
required
Customer password.
Example request:
{
  "email": "john@example.com",
  "password": "SecurePass123!"
}
Example response:
{
  "data": {
    "generateCustomerToken": {
      "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
    }
  }
}

Store & CMS

Returns store name, locale, currency, base URLs, and other settings.Example response:
{
  "data": {
    "storeConfig": {
      "store_code": "default",
      "store_name": "Main Website Store",
      "store_group_name": "Main Website Store",
      "website_name": "Main Website",
      "locale": "en_US",
      "base_currency_code": "USD",
      "default_display_currency_code": "USD",
      "timezone": "America/Chicago",
      "weight_unit": "lbs",
      "base_url": "https://mystore.com/",
      "base_link_url": "https://mystore.com/",
      "base_media_url": "https://mystore.com/media/",
      "secure_base_url": "https://mystore.com/",
      "secure_base_link_url": "https://mystore.com/",
      "copyright": "Copyright 2025 My Store. All rights reserved.",
      "head_shortcut_icon": "favicon.ico",
      "default_title": "My Store",
      "default_description": "Shop the latest products at My Store.",
      "default_keywords": "store, shop, ecommerce"
    }
  }
}
identifier
string
required
CMS page identifier (e.g., home, about-us).
Example request:
{
  "identifier": "about-us"
}
Example response:
{
  "data": {
    "cmsPage": {
      "identifier": "about-us",
      "url_key": "about-us",
      "title": "About Us",
      "content": "<div class=\"about-page\"><h2>Our Story</h2><p>We started in 2020...</p></div>",
      "content_heading": "About Us",
      "page_layout": "1column",
      "meta_title": "About Us - My Store",
      "meta_description": "Learn about our company and mission.",
      "meta_keywords": "about, company, story"
    }
  }
}
Returns a list of all available countries with regions.Example response:
{
  "data": {
    "countries": [
      {
        "id": "US",
        "two_letter_abbreviation": "US",
        "three_letter_abbreviation": "USA",
        "full_name_locale": "United States",
        "full_name_english": "United States",
        "available_regions": [
          { "id": 1, "code": "AL", "name": "Alabama" },
          { "id": 12, "code": "CA", "name": "California" },
          { "id": 43, "code": "TX", "name": "Texas" }
        ]
      },
      {
        "id": "GB",
        "two_letter_abbreviation": "GB",
        "three_letter_abbreviation": "GBR",
        "full_name_locale": "United Kingdom",
        "full_name_english": "United Kingdom",
        "available_regions": []
      }
    ]
  }
}

Advanced

Execute any Adobe Commerce GraphQL query or mutation not covered by other tools.See the Adobe Commerce GraphQL reference for the full schema.
query
string
required
GraphQL query or mutation string.
variables
object
Variables object for the query.
Example request:
{
  "query": "query GetUrlResolver($url: String!) { urlResolver(url: $url) { id type redirect_code relative_url } }",
  "variables": { "url": "blue-cotton-shirt.html" }
}
Example response:
{
  "data": {
    "urlResolver": {
      "id": 42,
      "type": "PRODUCT",
      "redirect_code": 0,
      "relative_url": "blue-cotton-shirt.html"
    }
  }
}