Shop
The Shop plugin's site endpoints, for the catalog, live cart prices and orders.
Every endpoint takes the site key in X-Api-Key (its shop scope) and
works from a server or a browser. Prices are integers in minor units.
The SDK wraps them: see Shop.
| Endpoint | What it does |
|---|---|
GET /external/shop/config | { enabled: false }, or currency, pricesIncludeVat, checkoutMode, fields, legalLinks, whatsappOrders |
GET /external/shop/products | On-sale products: ?category=&post=&slugs=&locale=&limit=&offset= → { enabled, currency, pricesIncludeVat, items, total } |
GET /external/shop/products/:slug | One on-sale product (404 otherwise), with currency |
GET /external/shop/categories | [{ id, slug, name, parent, position, productCount }] |
POST /external/shop/quote | { lines: [{ variantId, quantity }], locale? } → the cart priced from the catalog |
POST /external/shop/orders | Sends an order: { lines, customer, shipping?, billing?, note?, consents?, locale?, sourceUrl? } → 201 { number, token, next: 'done' | 'whatsapp', url? } |
GET /external/shop/orders/:token | The buyer's own order: number, status, lines, total |
The reads and the quote are metered per client IP, like the content
reads. POST /external/shop/orders with X-Brandfine-Dry-Run: 1
checks the order exactly as a real one and creates nothing (200
{ ok: true, dryRun: true }).
Errors
| Status | code | When |
|---|---|---|
| 403 | shop.not_active | The workspace's shop is off |
| 400 | shop.invalid | A field to fix: params.field names it |
| 409 | shop.line_unavailable | A cart line is gone, unavailable or over its limit: params.variantId, params.problem |
| 429 | external.rate_limited | Too many orders from one visitor or to one shop |
Appointments
Public booking endpoints for workspaces running the Brandfine Appointments plugin — read availability, submit visitor requests, look up + cancel by token.
Live Chat
Public chat endpoints for workspaces running the Brandfine Live Chat plugin — widget config, starting conversations with the publishable key, and sending/reading messages with a per-conversation token.