Integrate with an AI assistant
Let your AI assistant read this documentation, look up IDs, inspect your recent requests and check a test order while you build your app.
What the assistant can do for you
While you build your app, you can connect an AI assistant that supports the Model Context Protocol (MCP) to the shop. It then works alongside you on the integration:
- Read this documentation. It can open every guide and the endpoint reference, including a single endpoint with all its fields, for example
POST /api/v1/orders. - Look up IDs. For the shop of your API access it lists payment methods, referrers, order statuses, customer labels with their values, customer classes and countries (ISO code and English name). These are the IDs and codes your requests use.
- Show your recent requests. It sees the requests made with your API access, newest first, including status,
error.code, the field errors and the request body as it was recorded. See Request log. - Check a test order. It runs the same checks as a real order and shows how the shop would resolve it: articles, customer, payment method, referrer and whether the
external_order_idalready exists. Nothing is created.
A typical session: your app sends an order that answers 422, you ask the assistant why, and it reads the logged request, compares it with the reference and checks a corrected order.
What it is not
The assistant helps you build the integration. It is not an interface for running it.
- Your app in production always calls the API under
/api/v1with its own API key, see the API reference. To check an order from your app, usePOST /orders/validate. - The tools and answers of the assistant connection are not versioned and come without a stability promise. Their names, fields and format may change at any time. Do not build anything on them.
Getting access
The assistant connection is available in every shop that uses the AI assistant and the API. The shop operator sets it up; you cannot request it yourself through the API or the documentation.
The operator:
- switches on access for external assistants in the shop’s AI settings,
- issues an access key there, with an expiry date and the IP addresses it may be used from,
- releases the companion functions for external assistants.
Ask the operator for:
| What | Example |
|---|---|
| Address of the MCP server | https://shop.example.com/mcp/assistant |
| Access key | shown to the operator only once, when it is issued |
| Expiry date of the key | |
| Which API access the assistant should work with, by its number | the access your app uses, usually the test access. Its number is shown under Settings > System > API access in the column “No.” (“Nr.” in the German admin area) |
Tell the operator the public IP address your assistant connects from. Some assistants do not connect from your computer but from their provider’s servers; in that case the operator can allow access from any address, which limits the key to at most 7 days.
Add the server to your assistant
Every MCP-capable assistant has a place to add a remote MCP server. Enter:
- Type: remote server over HTTP
- URL: the address from the operator
- Header:
Authorization: Bearer <access key>
After connecting, the assistant offers two tools: find_function searches the functions released for external assistants, call_function calls one of them. You do not need to call them yourself. Ask in plain language, for example:
- “Read the guide on sending an order and the reference for
POST /api/v1/orders.” - “Which payment methods can my access use?”
- “Show my last failed requests and explain the field errors.”
- “Check this order without creating it.”
If the assistant finds no functions, the release is missing. If it cannot connect, check the address, the key, its expiry date and the allowed IP addresses with the operator.
Security
- Keys never appear in the request log. Your API key is not recorded. Fields named
api_key,key,token,passwordorsecretin a request body are stored as********, at any nesting level. - The log is kept for 14 days. Older entries are deleted automatically.
- A test order writes nothing. No order, no customer, no address, no reservation.
- Keep the access key secret. It works with the operator’s rights and can use every function the operator has released for external assistants, not only the ones described here. Store it only in your assistant’s settings. Never put it in your app’s code, a repository, a log or a request body, and never share it with other people.
- Your app does not need the access key. It uses its own API key, see Authentication.
- When the integration is finished, ask the operator to revoke the access key or let it expire.