# Aloha Fungi B2B REST API

The Aloha Fungi B2B REST API provides public catalog reads and a consent-gated inquiry handoff.

## Contract

- OpenAPI 3.1: https://b2b.alohafungi.pl/openapi.json
- Current version: `v1`
- Base URL: `https://b2b.alohafungi.pl/api/v1`
- Authentication: none for the documented public API
- Error media type: `application/problem+json` (RFC 9457)

## Endpoints

- `GET /api/v1/catalog.json`
- `GET /api/v1/products.json`
- `GET /api/v1/articles.json`
- `GET /api/v1/services.json`
- `GET /api/v1/glossary.json`
- `POST /api/v1/batch`
- `POST /api/v1/qualification`
- `POST /api/v1/zapytanie`

The batch endpoint runs up to 25 read-only catalog operations in a single request, so an agent working on many items does not have to loop single calls. Allowed operations: `list_products`, `get_product`, `list_articles`, `list_collaboration_models`, `get_glossary_term`, `list_glossary`, `list_faq`, `list_services`. Inquiry submission and qualification are deliberately excluded, they stay on their own explicit endpoints. A failing operation does not fail the batch: every operation returns its own `ok` flag and, on failure, a machine-readable `error.code`, in input order.

The qualification endpoint returns an evidence-backed `DecisionPacket`. It is side-effect-free and does not collect contact details, confirm price or reserve stock.

The inquiry endpoint sends a reviewed brief to the Aloha Fungi B2B sales team only when `consent_to_contact` is `true`. It does not create an order, reservation, quote or financial commitment.

See https://b2b.alohafungi.pl/developers/ for examples and commercial boundaries.
