# Panlytics developers

> Give a program or an AI agent a key, and let it read your shops and see what to order, as you and never more than you.

Markdown twin of https://panlytics.net/developers (last updated 2026-10-27). Every page of the Panlytics developer docs is listed at https://panlytics.net/developers/llms.txt, and all of them are in one file at https://panlytics.net/developers/llms-full.txt. The site guide is https://panlytics.net/llms.txt.

## What the API is for

Panlytics reads the sales report your shop already exports and tells you what to order, how many and when. The API lets a program or an AI agent do the same work on your behalf. It acts as the person who made its key, inside that person's role, and it can never do the things that belong to people: it cannot manage people or roles, read the audit log, or touch billing and security.

Keys are short lived on purpose. A key ends 1 to 5 hours after it is made, and the company's CEO chooses how long. When a key ends, you press **Connect again** in the app.

## Start here

- [Introduction](https://panlytics.net/developers/introduction): what a key is, what it can reach, and what is live today.
- [Quickstart](https://panlytics.net/developers/quickstart): turn on, copy one prompt into your AI, and wait for Connected.
- [Connect an AI agent](https://panlytics.net/developers/connect-an-ai-agent): paste one prompt into Claude Code, Claude, ChatGPT or Cursor.
- [What an AI can never do](https://panlytics.net/developers/security/what-an-ai-can-never-do): the fence around every key.

## What answers today

The keys, the Developer settings pages and every endpoint below answer now: shops, categories, reports, reorder points (the level that triggers a new order), suppliers, chat, and the link that lets an AI sign in to the app itself when the CEO switches it on.

| Endpoint | What it does |
| --- | --- |
| [`GET /v1/me`](https://panlytics.net/developers/api/me) | Who this key acts as, which company and shops it reaches, what it may do, and when it ends. |
| [`GET /v1/organisation`](https://panlytics.net/developers/api/organisation-get) | The company, the shops this key reaches, and its people where the key's maker may see them. |
| [`GET /v1/home`](https://panlytics.net/developers/api/organisation-home) | The Home page: the company's figures, one row per shop, and what is waiting for a person. |
| [`GET /v1/organisation/people`](https://panlytics.net/developers/api/organisation-people) | The company's people, each with their role and the shops it covers, as the People page lists them. |
| [`GET /v1/shops`](https://panlytics.net/developers/api/shops-list) | The shops this key reaches, one page at a time. |
| [`POST /v1/shops`](https://panlytics.net/developers/api/shops-create) | Open a new shop in the company. |
| [`GET /v1/shops/{id}`](https://panlytics.net/developers/api/shops-get) | One shop, with everything its own page shows: its names, its kind, its notes and where it stands. |
| [`GET /v1/shops/{id}/categories`](https://panlytics.net/developers/api/shops-categories) | The categories of one shop, each with its newest report. |
| [`GET /v1/shops/archived`](https://panlytics.net/developers/api/shops-archived) | The archived shops this key reaches, newest archive first. |
| [`PATCH /v1/shops/{id}`](https://panlytics.net/developers/api/shops-update) | Rename a shop. |
| [`POST /v1/shops/{id}/archive`](https://panlytics.net/developers/api/shops-archive) | Archive a shop: it leaves every list and keeps its reports and history. |
| [`POST /v1/shops/{id}/restore`](https://panlytics.net/developers/api/shops-restore) | Open an archived shop again. |
| [`PATCH /v1/shops/{id}/place`](https://panlytics.net/developers/api/shops-place) | Change where a shop stands and who shops there: its address, its notes, whether the public walks in. |
| [`POST /v1/shops/{id}/locate`](https://panlytics.net/developers/api/shops-locate) | Look the shop's address up on OpenStreetMap again and pin it on the map. |
| [`POST /v1/shops/{id}/research`](https://panlytics.net/developers/api/shops-research) | Research the area around a shop: who lives there, what they earn, what they buy, with the web sources it rests on. |
| [`POST /v1/shops/{id}/reports`](https://panlytics.net/developers/api/reports-upload) | Upload a report: the first of a new category, or the next report of one. |
| [`GET /v1/reports/{id}/file`](https://panlytics.net/developers/api/reports-file) | Download the original file of one report, exactly as it was uploaded. |
| [`GET /v1/categories/{id}`](https://panlytics.net/developers/api/categories-get) | One category, with the settings its figures are worked out with. |
| [`PATCH /v1/categories/{id}`](https://panlytics.net/developers/api/categories-update) | Rename a category, change the settings its figures use, or both. |
| [`GET /v1/categories/{id}/reorder-points`](https://panlytics.net/developers/api/categories-reorder-points) | Per product: the reorder point, what to order when it is reached, and the days of stock left. |
| [`GET /v1/categories/{id}/order-list`](https://panlytics.net/developers/api/categories-order-list) | What to order now: every product at or under its reorder point. |
| [`GET /v1/categories/{id}/stop-stocking`](https://panlytics.net/developers/api/categories-stop-stocking) | The products worth no longer stocking, most money tied up first. |
| [`POST /v1/categories/{id}/recompute`](https://panlytics.net/developers/api/categories-recompute) | Work a category's summary figures out again and answer with them. |
| [`GET /v1/categories/{id}/summary`](https://panlytics.net/developers/api/categories-summary) | The top of a category's Report page: its headline figures, where the money is, and how long each list of things to do is. |
| [`GET /v1/categories/{id}/anomalies`](https://panlytics.net/developers/api/categories-anomalies) | The products whose numbers say something is off, grouped by what is off, as the Anomalies page shows them. |
| [`GET /v1/categories/{id}/reports`](https://panlytics.net/developers/api/categories-reports) | Every report of a category, newest first: its history. |
| [`DELETE /v1/categories/{id}`](https://panlytics.net/developers/api/categories-delete) | Delete a category and every report ever uploaded under it, for good. |
| [`GET /v1/categories/{id}/products`](https://panlytics.net/developers/api/categories-products) | Every product of a category with what it holds, sells and triggers at, as the Products page lists them. |
| [`GET /v1/categories/{id}/products/{ean}`](https://panlytics.net/developers/api/categories-product) | One product in full: what it sold, what it missed, its reorder point and why, and what to order. |
| [`GET /v1/shops/{id}/suppliers`](https://panlytics.net/developers/api/suppliers-list) | Who delivers to one shop, and the days a delivery takes from each. |
| [`POST /v1/shops/{id}/suppliers`](https://panlytics.net/developers/api/suppliers-create) | Add a supplier to one shop. |
| [`PATCH /v1/suppliers/{id}`](https://panlytics.net/developers/api/suppliers-update) | Rename a supplier or change the days a delivery takes from it. |
| [`DELETE /v1/suppliers/{id}`](https://panlytics.net/developers/api/suppliers-delete) | Remove a supplier from its shop. |
| [`PUT /v1/suppliers/{id}/categories`](https://panlytics.net/developers/api/suppliers-categories) | Set which categories of its shop a supplier delivers. |
| [`GET /v1/shops/{id}/shopify/plan`](https://panlytics.net/developers/api/shopify-plan) | What a report read from the shop's Shopify would hold, before anything is written. |
| [`POST /v1/shops/{id}/shopify/reports`](https://panlytics.net/developers/api/shopify-report) | Read the shop's Shopify and file it as a report. |
| [`GET /v1/shops/{id}/netvisor/plan`](https://panlytics.net/developers/api/netvisor-plan) | What a report read from the shop's Netvisor would hold, before anything is written. |
| [`POST /v1/shops/{id}/netvisor/reports`](https://panlytics.net/developers/api/netvisor-report) | Read the shop's Netvisor and file it as a report. |
| [`GET /v1/shops/{id}/shopify/products`](https://panlytics.net/developers/api/shopify-products) | The products in the shop's Shopify, fifty at a time, as the Sources page lists them. |
| [`GET /v1/shops/{id}/shopify/orders`](https://panlytics.net/developers/api/shopify-orders) | The orders in the shop's Shopify, newest first, fifty at a time. |
| [`GET /v1/shops/{id}/shopify/drafts`](https://panlytics.net/developers/api/shopify-drafts) | The draft orders in the shop's Shopify from the last 90 days. |
| [`POST /v1/shops/{id}/source-refresh`](https://panlytics.net/developers/api/sources-refresh) | Read the shop's connected Shopify and Netvisor again now. |
| [`GET /v1/categories/{id}/sheet`](https://panlytics.net/developers/api/sheet-tabs) | The Sheet page's tabs for a category's newest report, with their columns. |
| [`GET /v1/categories/{id}/sheet/{tab}`](https://panlytics.net/developers/api/sheet-rows) | Rows of one Sheet tab, sorted and searched as the Sheet page does. |
| [`POST /v1/categories/{id}/sheet-edits`](https://panlytics.net/developers/api/sheet-edit) | Change figures in a category's newest report, as the Sheet page's edits do. |
| [`GET /v1/shops/{id}/exceptions`](https://panlytics.net/developers/api/exceptions-list) | The shop's exceptions: the reorder points people fixed by hand, and the products they keep off the stop-stocking list. |
| [`PUT /v1/shops/{id}/exceptions/{ean}`](https://panlytics.net/developers/api/exceptions-save) | Fix a product's reorder point by hand, or keep it off the stop-stocking list, or both. |
| [`DELETE /v1/shops/{id}/exceptions/{ean}`](https://panlytics.net/developers/api/exceptions-remove) | Remove a product's exception, so its figures are worked out again. |
| [`POST /v1/shops/{id}/exception-imports`](https://panlytics.net/developers/api/exceptions-import) | Write many exceptions at once from a .csv or .xlsx file. |
| [`GET /v1/shops/{id}/overstock-decisions`](https://panlytics.net/developers/api/overstock-list) | What the shop decided about its overstocked products, newest first. |
| [`POST /v1/shops/{id}/overstock-decisions`](https://panlytics.net/developers/api/overstock-decide) | Record what to do about an overstocked product: transfer, return, write off or discount. |
| [`GET /v1/shops/{id}/baskets`](https://panlytics.net/developers/api/baskets-list) | The shop's product groups: products bought together, which keep each other in stock once a person approves them. |
| [`PUT /v1/shops/{id}/baskets/members`](https://panlytics.net/developers/api/baskets-set-member) | Take a product out of a group, or put it back. |
| [`DELETE /v1/shops/{id}/baskets`](https://panlytics.net/developers/api/baskets-delete) | Delete one product group for good. |
| [`POST /v1/shops/{id}/basket-scans`](https://panlytics.net/developers/api/baskets-scan) | Ask the AI to propose product groups: products bought together, which keep each other in stock. |
| [`GET /v1/notifications`](https://panlytics.net/developers/api/notifications-list) | The newest notifications of the person who made the key, as the bell shows them. |
| [`POST /v1/notifications/{id}/read`](https://panlytics.net/developers/api/notifications-read) | Mark one notification read. |
| [`POST /v1/notifications/read-all`](https://panlytics.net/developers/api/notifications-read-all) | Mark every notification read. |
| [`POST /v1/issues`](https://panlytics.net/developers/api/issues-create) | Report a problem with Panlytics to the Panlytics team, as the app's Report a problem box does. |
| [`POST /v1/chat`](https://panlytics.net/developers/api/chat-start) | Ask Panlytics a question about a shop. The answer comes back as a run. |
| [`GET /v1/runs/{id}`](https://panlytics.net/developers/api/runs-get) | One run: its state, its answer, and the proposals that wait for a person. |
| [`GET /v1/runs/{id}/stream`](https://panlytics.net/developers/api/runs-stream) | Follow one run live, as server-sent events. |
| [`POST /v1/agent-sign-in-links`](https://panlytics.net/developers/api/agent-sign-in-links-create) | A one-time link that signs you in to the app as the person who made the key, in a browser profile nobody else is signed in to. |

## For programs and agents

Every page has a markdown twin at the same address with `.md` on the end. The whole set is listed at [/developers/llms.txt](https://panlytics.net/developers/llms.txt), every page is in one file at [/developers/llms-full.txt](https://panlytics.net/developers/llms-full.txt), and the API is described as OpenAPI 3.1 at [/developers/openapi.json](https://panlytics.net/developers/openapi.json).
