Orderain
Settings

Headless

Configure allowed origins and manage API tokens, connect Claude, ChatGPT, Grok, or Cursor to your shop with MCP, or build a custom storefront, from the Headless settings tab.

The Headless tab is where you connect your shop to the outside world through Orderain's API. Open Settings from the dashboard sidebar and select the Headless tab to configure allowed origins and manage API tokens.

It's useful for two kinds of people:

  • Merchants. Connect an AI assistant like Claude, ChatGPT, Grok, or Cursor to your shop with the MCP server, so you can manage products, orders, and even your store's design using plain language — no code required.
  • Developers. Build a custom storefront on top of Orderain instead of the built-in one, powered by your shop's data through the API.
If you only use the standard Orderain storefront and don't want to connect any outside app or AI assistant, you don't need to change anything here.

Allowed Origins

Allowed Origins — add up to 3 trusted origins, then Save Origins.

Add up to 3 allowed origins for your shop. These origins are the only ones allowed to make API requests to your shop.

  • Enter an origin (for example https://example.com) and click Add. A counter shows how many you've added (for example 1/3 origins added).
  • Remove an origin with the × next to it.
  • Click Save Origins to apply your changes.

API Tokens

Create and manage API tokens to access your shop data programmatically. The View Documentation link opens the full API reference.

The API Tokens list — each token's status, scopes, origin, and Revoke action.

Before you create any tokens, this section shows an empty state — "No tokens yet — Create your first API token to start integrating with your shop." Once you add one, each token in the list shows:

  • Name and a status badge — Active or Revoked.
  • Created / Expires. The token's date and time.
  • Scopes. The permissions granted, such as read_access, write_access, delete_access, or page_access.
  • Origins. The origin the token is tied to.

Creating a token

Click + Create New Token to open the Create API Token dialog. The first choice is the Token Type, and it changes which fields you see:

  • Headless — for web apps & custom frontends that call the API directly.
  • MCP — for connecting an AI assistant (Claude, ChatGPT, Grok, or Cursor) to your shop.

Then give the token a clear, professional Token Name that says what it's for (for example Production Storefront, Claude Assistant, or Analytics Integration), set its options below, and click Create Token.

For a Headless token:

  • Allowed Origins (required). Your real domain, such as https://yourstore.com. Type it and click + Add.
  • Permissions. Read Access, Write Access, and Delete Access.

For an MCP token:

  • Permissions. Read Access, Write Access, Delete Access, and Page Editing (lets connected AI tools edit your website pages). MCP tokens don't ask for an allowed origin.
Read Access is ticked by default. Add Write and Delete only if the integration needs to change or remove data.
Grant only the permissions the token actually needs. For a read-only integration, leave just Read Access ticked — this is safer if the token is ever exposed.

When it's created, a Token Created Successfully dialog appears. What it shows depends on the token type:

  • MCP token. A ready-made MCP Connection URL with your token already in it (for Claude / ChatGPT / Grok / Cursor), plus your Token ID and Shop ID.
  • Headless token. The full token value, plus your Token ID and Shop ID.

Use the copy icon to copy the URL or token — you won't be able to see it again — then click I've Saved My Token.

The full token is shown only once, at creation. Copy and store it securely straight away — if you lose it you'll need to create a new one.

Revoking a token

Click Revoke on an active token to disable it immediately. A revoked token can no longer be used — any AI assistant or app connected with it stops working and can't read or change your shop anymore. Revoked tokens stay listed for reference but can't be reactivated; create a new token if you need access again.

Treat API tokens like passwords — anyone with a valid token and an allowed origin can access your shop data within the token's scopes. Revoke any token that is no longer needed or may have been exposed.

Connect to AI assistants (MCP)

The Connect to AI assistants (MCP) panel lets you connect Claude, ChatGPT, Grok, or Cursor to your shop with the MCP server, so you can manage products, orders, and even your store's design in plain language.

It shows the MCP Server URL (https://mcp.orderain.com/mcp) and a tab with setup steps for each app. To connect, create an MCP token above, copy its connection URL, and paste it into your assistant's custom connector.

For the complete MCP guide — the connection URL, and full step-by-step setup for Claude, ChatGPT, Grok, and Cursor — see Orderain MCP.
Your token grants full access to your shop with its permissions. Only share the connection with tools and people you trust, and revoke the token if it's exposed — once revoked, it can no longer be used from any AI assistant.

API documentation

For endpoints, authentication, and code samples, see the full Orderain Headless API documentation. The reference covers regions, product categories, products, inventory, shipping, taxes, cart, customers, orders, shop tags, and shop warehouse, and includes client libraries for Shell, Ruby, Node.js, PHP, and Python.

API requests are authenticated with a Bearer Token (one of your API tokens) and must come from an allowed origin. Set both up above before making requests.
Copyright © 2026