Skip to content

AI-Assisted Integration

anybill actively supports POS manufacturers and integrators who build the Vendor API integration with the help of AI. This covers coding agents such as Cursor, Claude Code, GitHub Copilot and Codex, but just as much a plain chat assistant such as ChatGPT or Claude used next to Visual Studio, RAD Studio or Eclipse. The goal is the same: from first contact to a working, review-ready integration with fewer round-trips and less trial-and-error.

Why we provide this

POS software is often maintained on platforms that predate today's AI tooling: C# on .NET Framework, Java 8, Delphi, C++, Windows or Linux installations that stay in the field for years. We do not expect anyone to change their stack to integrate anybill. We do want every integrator to be able to hand our documentation to whatever AI tool they have, and get correct, review-proof results back. So we publish the documentation in a machine-readable shape, spell out the integration rules explicitly, and provide them at stable URLs that any tool can fetch or that you can paste into a chat.

What we provide

Vendor API index (anybill-vendorapi-llms.txt)

llms.txt is an open standard for publishing a curated index of documentation for large language models. Next to the site-wide developer.anybill.de/llms.txt we provide an index that only covers what a POS integration needs:

It lists the Vendor API pages, the C# POS SDK, the webhooks and the OpenAPI specification, each with a one-line description and a direct link to the Markdown version. Use this one for POS work so the Frontend SDK pages do not take up context.

Clean Markdown versions of every page

Every documentation page is also served as a plain Markdown file at the same path with an .md suffix. For example:

These files contain the same content as the rendered HTML pages without HTML boilerplate. They can be fetched by an agent or pasted into a chat.

OpenAPI specification and Postman collection

The Vendor API is described by a live OpenAPI 3 document for each environment:

Most AI tools accept an OpenAPI document directly (as a file upload, a custom GPT action, or a URL in the prompt) and generate correct request models from it. The Postman collection covers the same endpoints and can generate request code in C#, Java, C, curl and other languages without any AI involved.

AGENTS.md starter file

AGENTS.md is an open convention for project-level instructions aimed at AI coding agents. It is supported by Cursor, OpenAI Codex, Zed and other tools, and it works just as well as pasted context in a chat. Our Vendor API version captures the authentication model, the receipt flow, the resilience rules, the receipt content rules we check in the integration review, display requirements, common pitfalls and out-of-scope actions.

Download it and place it at the root of your POS project:

The full content of the file:

How to use it with your AI tool

Any chat assistant (ChatGPT, Claude, Copilot Chat)

No IDE integration required. This is the path we recommend if your development environment does not support agents.

  1. Open anybill-vendorapi-AGENTS.md and paste its content as the first message, or upload it as a file.
  2. Paste the Markdown page you are working on (for example https://developer.anybill.de/vendor_api/bill_data_model.md) or the OpenAPI specification as a second message, or let the assistant fetch the URLs if it can browse.
  3. Ask for the concrete piece of work in your language and framework, and paste your existing code or receipt structure as the starting point.
Here are the anybill Vendor API integration rules (AGENTS.md) and the
Bill Data Model page. Our till is written in C# on .NET Framework 4.7.2.
Below is our internal receipt class. Write the mapping to AddBillDto
according to the rules, and list every field where you had to guess.

Cursor

  1. Open Settings > Features > Docs > Add new doc and add https://developer.anybill.de/downloads/anybill-vendorapi-llms.txt.
  2. Download anybill-vendorapi-AGENTS.md and save it as AGENTS.md at the root of your project.
  3. Prompt Cursor, for example:
Add the anybill Vendor API to this POS project: token handling with
refresh, a persistent receipt queue with retry, and the receipt mapping.
Follow the anybill docs and the rules in AGENTS.md.

Claude Code

  1. Save anybill-vendorapi-AGENTS.md as CLAUDE.md at the root of your project, or create a symlink from CLAUDE.md to AGENTS.md.
  2. Pass https://developer.anybill.de/downloads/anybill-vendorapi-llms.txt in your prompt, or reference local copies of the .md pages via /add-dir.
  3. Prompt Claude Code, for example:
Read https://developer.anybill.de/downloads/anybill-vendorapi-llms.txt
and CLAUDE.md. Then implement the anybill authentication client for this
Java 8 code base, including token caching and refresh before expiry.

GitHub Copilot (Visual Studio, VS Code) and other tools

  • GitHub Copilot: place the content of anybill-vendorapi-AGENTS.md at .github/copilot-instructions.md. In Visual Studio 2022 the file is picked up by Copilot Chat as well.
  • Other tools: use the equivalent project-instructions file your tool supports and link to https://developer.anybill.de/downloads/anybill-vendorapi-llms.txt as the documentation source.

Example prompts

Authentication:

Implement an anybill Vendor API token provider for our till in C# on .NET
Framework 4.7.2 using HttpClient. Use the OAuth 2.0 password grant from
https://developer.anybill.de/vendor_api/authentication.md, cache the
access token, refresh it with the refresh token five minutes before
expires_in, and fall back to a single full login if the refresh fails. The
till runs for more than 24 hours without restart.

Resilience:

Write a persistent receipt queue for anybill in Java 8 without external
dependencies. Retry on 5xx (including 504) and network errors with exponential
backoff and jitter (base 1 s, cap 30 s, max 5 attempts), refresh the token
once on 401, treat 409 as delivered, never retry 400/403/404, survive a
restart of the till, and log the traceId from error responses.
Follow https://developer.anybill.de/vendor_api/index.md#retry-policy-guidelines.

Receipt mapping:

Here is our internal receipt structure (paste). Map it to the anybill
AddBillDto according to https://developer.anybill.de/vendor_api/bill_data_model.md
and https://developer.anybill.de/vendor_api/bill_examples.md. Item
discounts stay on the line, receipt discounts become a DiscountLine with
negative values and a unique id, card payments use CardPayment with a
masked PAN. Mark every field you cannot derive from our structure with a
TODO.

From a printed receipt:

This is the text of a printed receipt from our till (paste). Produce a
valid AddBillDto JSON for POST /v3/bill including head, data, lines with
vatAmounts per line, paymentTypes and a TSE security block with
placeholder values. Explain which values you had to assume.

Pre-review self-check:

Check the attached AddBillDto JSON against the receipt content rules in
AGENTS.md and the questions on
https://developer.anybill.de/vendor_api/integration_review.md. List every
violation with the JSON path, the rule, and a corrected value.

Customer display:

Implement the four display cases from
https://developer.anybill.de/vendor_api/customer_display.md as a state
machine for our customer and cashier display: QR after payment, QR before
payment via POST /v3/bill/url, known customer confirmation, and the error
fallback with paper receipt.

Store master data:

Our merchant has 40 stores and several tills per store that cannot see
each other. Implement store synchronisation against
https://developer.anybill.de/vendor_api/store_endpoints.md: search by
address first, create the store only if it does not exist, and store the
returned storeId in our configuration.

Language translation:

The anybill C# POS SDK documentation at
https://developer.anybill.de/vendor_api_sdk/csharp_integration.md shows
the intended flow (authenticate, register receipt id, create receipt,
handle the response types). Translate this flow into Delphi 11 for our
till, using our existing HTTP client class (paste).

Security considerations

Keep this short and apply it strictly:

  • Never paste real service account credentials, client ids or tokens into a prompt, a project file or the commit history. Use placeholders; the real values live in the till's configuration.
  • Production credentials are handed out by anybill after the Integration Review. Develop and test against Staging.
  • Review every AI-generated change that touches authentication, fiscalisation (TSE, RKSV, BOI-TVA, TicketBAI), tax calculation or network calls before it ships.
  • The receipt url from the API response must be rendered into the QR code unchanged. Do not let an assistant "clean up" or shorten it.

See the Security and Compliance page for the broader platform-level guarantees.

Feedback

We actively evolve this setup. If a prompt, a documentation page or the AGENTS.md template did not work as expected, let us know via the usual developer support channel at dev@anybill.de.

Built 2026-09-16 21:51 CEST from commit d540524