Orderain
Settings

Headless

Configure allowed origins and manage API tokens, connect Claude, ChatGPT, 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, 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.

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. Give the token a clear, professional Token Name that says what it's for (for example Production Storefront, Claude Assistant, or Analytics Integration), add an Allowed Origin (your real domain, such as https://yourstore.com), and tick the Permissions it needs (Read, Write, Delete, or Page Editing). Then click Create Token.

When it's created, a Token Created Successfully dialog appears showing:

  • The full token. Copy it now — you won't be able to see it again.
  • Token ID and Shop ID.
  • Allowed Origins.
  • A ready-made MCP connection URL for Claude / ChatGPT / Cursor (see below).

Use the copy icon to copy each value, 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)

Orderain provides an MCP server so you can manage your shop from Claude, ChatGPT, or Cursor using natural language — for example "list my shop products" or "show my recent orders". You can also change your store's design through the AI assistant, for example "redesign my homepage hero section" or "update the footer links".

The MCP Server URL is:

https://mcp.orderain.com/mcp

You also need an API token to authenticate the connection. The easiest way is to copy the ready-made URL from the Token Created Successfully dialog (or build it yourself), which already includes your token:

https://mcp.orderain.com/mcp?token=YOUR_TOKEN

Connecting Claude

Open connector settings

In Claude, go to Settings → Connectors.

Add a custom connector

Click Add custom connector.

Set the name and URL

Set the Name to Orderain and paste the MCP URL (with your token in it) as the URL.

Finish

Leave the OAuth fields empty and click Add. The Orderain tools appear in a new chat.

Try it

Ask something like "list my shop products" or "show my recent orders".

The steps for ChatGPT and Cursor are on the same Connect to AI assistants panel — switch tabs to see setup for each app. They all use the same MCP URL and token.
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 Claude or any other 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