canonical: https://jentic.com/apis/shopware.com/shopware-main

# Shopware REST API

Jentic publishes the only available OpenAPI specification for Shopware REST API, keeping it validated and agent-ready. The Shopware REST API runs the back office of a Shopware shop: it creates and updates products (articles), arranges them in a category tree, and records customers, addresses, and orders. Products carry their name, description, tax, supplier, categories, and a mainDetail with the order number and prices, while orders hold invoiceAmount, invoiceAmountNet, invoiceShipping, paymentId, and orderStatus. The same API uploads media files, lists and clears shop caches, and reports the installed version, with every list call paged by limit and start.

## For AI agents

Manage a Shopware shop's products and sales records: add and edit products and categories, look up customers and their addresses, create and update orders, upload media, and clear caches after a change.

## Scope

Does not handle payment capture, shipping label creation, storefront checkout, or marketing campaigns. Use for managing a Shopware shop's products, categories, customers, orders, media, and caches only.

## Capabilities

- Publish a product with its name, tax, supplier, categories, and a mainDetail carrying the order number and prices
- Build the category tree by creating categories with a parentId and position, and toggle them with active
- Look up a customer by id with their email, groupKey, and billing address
- Create an order for a customerId and update its orderStatus as it moves through fulfilment
- Upload product images and other files as multipart media and list or remove them later
- Clear a named shop cache after product changes so the storefront shows the new data
- Page through products, orders, or customers with the limit and start query parameters

## Use cases

### Agent-run shop operations through Jentic

A store owner's AI agent connected through Jentic handles routine back-office work in Shopware: it looks up an order, updates its orderStatus, edits a product's description, and clears the cache so the change is visible. Jentic stores the shop's API user credentials and injects them per call, and the owner's rules decide which of these operations the agent may run.

Example prompt: Call GET `/orders/{id}` for order id 57, then PUT `/orders/{id}` with an updated orderStatus, and finish with DELETE `/caches/{id}` for the affected cache

### Product import from a supplier feed

Merchants who receive product data from suppliers can turn each feed row into a Shopware product. The createArticle operation takes the name, description, tax, supplier, categories, and a mainDetail with the order number and prices, and createCategory adds any missing category with its parentId so imported products land in the right place in the tree.

Example prompt: Call POST /categories to create a 'Rain Jackets' category with parentId 3, then POST /articles with name 'Trail Shell', tax 19, supplier 'Northline', the new category, and a mainDetail with number 'SW10042' and its prices

### Order and customer reporting

A reporting script pages through orders with limit and start and joins each customerId to the customer record. Because orders expose invoiceAmount, invoiceAmountNet, and invoiceShipping, the script can total gross and net revenue and shipping charged per customer group, using the groupKey on each customer.

Example prompt: Page through GET /orders with limit 100 and increasing start, fetch each customer via GET `/customers/{id}`, and sum invoiceAmount per groupKey

### Product media management

Product imagery is uploaded to Shopware as multipart media through the uploadMedia operation, which returns the media id, albumId, name, path, and extension. Listing media shows what is already stored, and deleting unused entries keeps the media library tidy after a product clean-up.

Example prompt: Upload a product image with POST /media as multipart file, record the returned id and path, then list GET /media to confirm it is stored

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/articles` | Create a product |
| PUT | `/articles/{id}` | Update a product |
| GET | `/orders` | List orders |
| PUT | `/orders/{id}` | Update an order |
| GET | `/customers/{id}` | Get a customer |
| POST | `/categories` | Create a category |
| POST | `/media` | Upload media |
| DELETE | `/caches/{id}` | Clear a cache |

## Key resources

- **Articles** — Products with name, description, active flag, tax, supplier, categories, and mainDetail number and prices; list, read, create, update, and delete
- **Categories** — Category tree nodes with name, parentId, position, and active flag; list, read, create, update, and delete
- **Customers** — Customer records with email, name, groupKey, and billing address; list, read, create, update, and delete
- **Addresses** — Postal addresses with company, street, zipcode, city, and country; list, read, create, update, and delete
- **Orders** — Orders with number, customerId, orderTime, invoice amounts, paymentId, orderStatus, and line details; list, read, create, and update
- **Media** — Uploaded files with albumId, name, path, type, and extension; list, read, upload, and delete
- **Caches** — Shop caches that can be listed, inspected, and cleared

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 45 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 82 / 100
  - Developer Experience & Jentic Compatibility: 61 / 100
  - AI-Readiness & Agent Experience: 51 / 100
  - Agent Usability: 94 / 100
  - Security: 15 / 100
  - AI Discoverability: 39 / 100
- **View full report:** https://jentic.com/apis/shopware.com/shopware-main/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the Shopware REST API by hand means pointing at your own shop's host under /api, negotiating HTTP Digest or Basic auth for an API user, and paging lists with limit and start yourself. Through Jentic you install once, import the Shopware REST API from the API Directory, store the API user credentials once, and your agent calls it.
- **Permission scoping:** Shopware puts the record id in the URL path (`/articles/{id}`, `/orders/{id}`, `/customers/{id}`), so a rule can pin your agent to one product or one order as well as to the operations you pick. You choose the operations it may call, so destructive ones like deleteArticle, deleteCustomer, or deleteCache are not included unless you add them.
- **Credential handling:** Your Shopware API user credentials are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'create a product in Shopware' or 'update an order status', and Jentic returns the matching Shopware operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Shopify** — Shopify is a hosted commerce platform whose API covers products, orders, and customers, like Shopware's.
- **Magento** — Magento is another self-hosted commerce platform with product, customer, and order APIs.
- **BigCommerce Catalog API** — The BigCommerce Catalog API manages products and categories for hosted BigCommerce stores.
- **Stripe** — Stripe processes card and wallet payments, which pair with orders recorded in Shopware.

## FAQ

### Why is there no official OpenAPI spec for Shopware REST API?

Shopware does not publish an OpenAPI specification for this REST API. Jentic generates and maintains this spec so that AI agents and developers can call Shopware REST API via structured tooling. It is validated against the live API and kept up to date. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### What authentication does the Shopware REST API use?

Per its OpenAPI spec, the Shopware REST API accepts HTTP Digest authentication (with an MD5 checksum) or HTTP Basic authentication, and either one satisfies the requirement on its operations. Both use the credentials of a Shopware API user. Through Jentic the credentials are stored encrypted by your own Jentic One instance and injected at call time, so they never reach the agent's prompt, logs, or context.

### Which host do I call for the Shopware REST API?

The spec declares a relative server path of /api, because every Shopware shop runs on its own domain. Requests go to your shop's host followed by /api, for example https://your-shop.example/api/articles.

### Can I update an order's status with the Shopware REST API?

Yes. PUT `/orders/{id}` accepts the order fields, including orderStatus, invoiceAmount, and paymentId. The spec has no operation for deleting orders, so an agent can create, read, and update orders but not remove them.

### What are the rate limits for the Shopware REST API?

The OpenAPI spec does not specify rate limits. List operations default to a limit of 1000 results per page with a start offset. Check https://developers.shopware.com/developers-guide/rest-api/ for current guidance.

### Is there a Shopware MCP server?

You don't need an MCP server to give your agent the Shopware REST API. Jentic connects it directly from the API Directory: import it, store your API user credentials once, and your agent calls the product, order, customer, and media operations it needs. Operations are discovered on demand, so another server's tool definitions never fill the agent's context.

### Can I limit what my agent is allowed to do with the Shopware REST API?

Yes. For example, write a rule that allows GET /orders, GET `/orders/{id}`, and PUT `/orders/{id}`, so the agent can read orders and move their status along but cannot touch products, customers, or caches, and every call it makes is logged. Narrow it further to a single order id in the path when the agent is handling one order.

### How do I add a product to Shopware through Jentic?

Import the Shopware REST API from the Jentic API Directory, store your API user credentials once, and have your agent search Jentic for 'create a product in Shopware'. Jentic returns the createArticle operation for POST /articles with its input schema, and the agent sends name, tax, supplier, categories, and a mainDetail with the order number and prices.
