Zum Inhalt

Entwickler

Baue auf mellavoPOS auf.

Eine REST-API mit JSON für Buchhaltung, Auswertungen und deine eigene Website, dazu signierte Webhooks, wenn ein Beleg bezahlt, eine Rechnung ausgestellt oder ein Kunde angelegt wird.

  • REST und JSON
  • Version v1
  • Webhooks mit HMAC-Signatur
  • OpenAPI 3
Erster Aufruf
curl https://pos-api.mellavo.de/v1/me \
  -H "Authorization: Bearer k1_live_…"
Antwort · 200
{
  "api_key": {
    "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "name": "Buchhaltung",
    "prefix": "ab12cd34ef56",
    "scopes": [
      "catalog:read"
    ],
    "location": {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "name": "Hauptstandort"
    },
    "rate_limit_per_min": 120
  },
  "tenant": {
    "name": "Trattoria Bella Vista",
    "slug": "bella-vista"
  }
}

Schnellstart

In vier Schritten zum ersten Aufruf.

  1. 1

    Schlüssel anlegen

    Im Backoffice unter Einstellungen → API-Zugang. Das dürfen Inhaber und Manager, angemeldet mit Passwort und Zwei-Faktor-Code.

  2. 2

    Rechte festlegen

    Wähle nur die Scopes, die deine Anwendung braucht. Optional: an einen Standort binden, IP-Adressen erlauben, Ablaufdatum setzen.

  3. 3

    Token sichern

    Der Schlüssel k1_live_… erscheint genau einmal. Speichere ihn in deinem Passwort- oder Secret-Speicher, nie im Browser-Code.

  4. 4

    Verbindung testen

    GET /v1/me braucht keinen Scope und zeigt, mit welchem Schlüssel und Betrieb du verbunden bist.

Basis-URL

Alle Routen liegen unter /v1. Gesendet wird der Schlüssel als Bearer-Token.

Basis-URL
https://pos-api.mellavo.de/v1
  • ScopesLesen oder Schreiben je Bereich. Schreiben schließt Lesen ein.
  • StandortBelege, Tagesumsatz, Buchungen und Lager nur eines Standorts. Katalog, Kunden und Rechnungen gelten für den ganzen Betrieb.
  • IP-AllowlistBis zu 20 IPv4- oder IPv6-Adressen oder CIDR-Bereiche.
  • Ablauf & RotationOptionales Ablaufdatum. Beim Rotieren bleibt der alte Schlüssel auf Wunsch bis zu 7 Tage gültig.

Scopes

catalog:readArtikel mit Varianten und Preisen lesen
catalog:writeArtikel aktivieren oder deaktivieren, Variantenpreise ändern
orders:readBelege lesen, Verkäufe und Stornos
customers:readKunden lesen
customers:writeKunden anlegen und ändern
invoices:readRechnungen und Gutschriften lesen, PDF abrufen
reports:readTagesumsatz je Standort
bookings:readBuchungen von Pension und Hotel lesen
inventory:readLagerbestand je Standort lesen
cashbook:readKassenbuch mit Bon-Links und DATEV-Export lesen

Konventionen

Was überall gleich ist.

Listen und Seiten

limit von 1 bis 100 (Standard 50), cursor aus next_cursor der vorigen Seite. Sortiert aufsteigend nach updated_at (Belege: created_at). Für den Abgleich merkst du dir den letzten Zeitpunkt und übergibst ihn als updated_since; die Grenze ist inklusive, doppelte Einträge erkennst du an der id.

GET /v1/customers
curl -H "Authorization: Bearer k1_live_…" \
  "https://pos-api.mellavo.de/v1/customers?limit=100&updated_since=2026-11-20T09:15:00.000Z"

{ "data": [ … ], "next_cursor": "eyJ1Ijoi…" }

curl -H "Authorization: Bearer k1_live_…" \
  "https://pos-api.mellavo.de/v1/customers?limit=100&cursor=eyJ1Ijoi…"

Rate-Limit

Je Schlüssel 60, 120, 300 oder 600 Anfragen pro Minute (Standard 120), festes Minutenfenster. Jede Antwort trägt die aktuellen Werte; bei Überschreitung kommt 429 mit Retry-After in Sekunden.

X-RateLimit-*
HTTP/1.1 200 OK
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117
X-RateLimit-Reset: 42

HTTP/1.1 429 Too Many Requests
Retry-After: 18

Geld, Zeit, Felder

  • Beträge immer in ganzen Cent mit currency (EUR), nie als Kommazahl.
  • Zeitpunkte in ISO 8601 und UTC, Kalendertage als YYYY-MM-DD.
  • Feldnamen in snake_case, Antworten als JSON (Rechnungs-PDF als Datei).
  • Steuersätze in Basispunkten: 19 % = 1900.

Fehler

Jeder Fehler hat dieselbe Form. Der code ist stabil, die message ist für Menschen.

403 · JSON
{
  "error": {
    "code": "insufficient_scope",
    "message": "Dem API-Schlüssel fehlt ein Scope.",
    "details": {
      "required": [
        "orders:read"
      ]
    }
  }
}
StatusCodeBedeutung
401invalid_api_keySchlüssel fehlt, ist falsch, gesperrt oder abgelaufen (bewusst ohne Unterscheidung)
403ip_not_allowedDie Adresse steht nicht in der IP-Allowlist des Schlüssels
403insufficient_scopeScope fehlt, details.required nennt ihn
403location_not_allowedDer Schlüssel ist an einen anderen Standort gebunden
404not_foundUnbekannte oder fremde ID
400validation_failedUngültige Eingabe, details.issues nennt die Felder
409conflictKonflikt mit dem aktuellen Stand
429rate_limitedZu viele Anfragen, warte die Sekunden aus Retry-After ab

Referenz

Alle Endpunkte.

Erzeugt aus der OpenAPI-Datei der API. Die Beschreibungen der Endpunkte stehen so in der Spezifikation.

Die laufende API liefert dieselbe Datei ohne Anmeldung unter /v1/openapi.json.

Endpunkte anzeigen

Allgemein

GET/v1/meScopekein Scope

Eigener API-Schlüssel und Betrieb

Zum Testen der Verbindung.

curl
curl "https://pos-api.mellavo.de/v1/me" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (12)
FeldTypBeschreibung
api_keyobject
api_key.idstring
api_key.namestring
api_key.prefixstring
api_key.scopesarray<"catalog:read" | "catalog:write" | "orders:read" | "customers:read" | "customers:write" | "invoices:read" | "reports:read" | "bookings:read" | "inventory:read" | "cashbook:read">
api_key.locationobject | null
api_key.location.idstring
api_key.location.namestring
api_key.rate_limit_per_mininteger
tenantobject
tenant.namestring
tenant.slugstring
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "api_key": {
    "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "name": "Buchhaltung",
    "prefix": "ab12cd34ef56",
    "scopes": [
      "catalog:read"
    ],
    "location": {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "name": "Hauptstandort"
    },
    "rate_limit_per_min": 120
  },
  "tenant": {
    "name": "Trattoria Bella Vista",
    "slug": "bella-vista"
  }
}

Katalog

GET/v1/productsScopecatalog:read

Artikel mit Varianten und Preisen

Parameter
NameOrtTypBeschreibung
limitoptionalquerystring1–100, Standard 50
cursoroptionalquerystringnext_cursor der vorigen Seite
updated_sinceoptionalquerystringISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich
curl
curl "https://pos-api.mellavo.de/v1/products" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (23)
FeldTypBeschreibung
dataarray<object>
data[].idstring
data[].namestring
data[].descriptionstring | null
data[].activeboolean
data[].categoryobject
data[].category.idstring
data[].category.namestring
data[].tax_class_idstring
data[].is_voucherboolean
data[].currencystring
data[].variantsarray<object>
data[].variants[].idstring
data[].variants[].namestring
data[].variants[].price_centsintegerganze Cent
data[].variants[].sold_by_weightbooleantrue: price_cents ist der Kilopreis
data[].variants[].skustring | null
data[].variants[].barcodestring | null
data[].variants[].activeboolean
data[].image_urlsarray<string>
data[].created_atstringISO 8601, UTC
data[].updated_atstringISO 8601, UTC
next_cursorstring | nullfür ?cursor=; null = letzte Seite
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "data": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "name": "Margherita",
      "description": "string",
      "active": true,
      "category": {
        "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
        "name": "Pizza"
      },
      "tax_class_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "is_voucher": false,
      "currency": "EUR",
      "variants": [
        {
          "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "name": "Groß",
          "price_cents": 1290,
          "sold_by_weight": false,
          "sku": "string",
          "barcode": "string",
          "active": true
        }
      ],
      "image_urls": [
        "https://example.com/…"
      ],
      "created_at": "2026-11-20T09:15:00.000Z",
      "updated_at": "2026-11-20T09:15:00.000Z"
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0xMS0yMFQwOToxNTowMC4wMDBaIn0"
}
GET/v1/products/{id}Scopecatalog:read

Ein Artikel

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
curl
curl "https://pos-api.mellavo.de/v1/products/<id>" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (21)
FeldTypBeschreibung
idstring
namestring
descriptionstring | null
activeboolean
categoryobject
category.idstring
category.namestring
tax_class_idstring
is_voucherboolean
currencystring
variantsarray<object>
variants[].idstring
variants[].namestring
variants[].price_centsintegerganze Cent
variants[].sold_by_weightbooleantrue: price_cents ist der Kilopreis
variants[].skustring | null
variants[].barcodestring | null
variants[].activeboolean
image_urlsarray<string>
created_atstringISO 8601, UTC
updated_atstringISO 8601, UTC
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "name": "Margherita",
  "description": "string",
  "active": true,
  "category": {
    "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "name": "Pizza"
  },
  "tax_class_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "is_voucher": false,
  "currency": "EUR",
  "variants": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "name": "Groß",
      "price_cents": 1290,
      "sold_by_weight": false,
      "sku": "string",
      "barcode": "string",
      "active": true
    }
  ],
  "image_urls": [
    "https://example.com/…"
  ],
  "created_at": "2026-11-20T09:15:00.000Z",
  "updated_at": "2026-11-20T09:15:00.000Z"
}
PATCH/v1/products/{id}Scopecatalog:write

Artikel aktivieren/deaktivieren, Variantenpreise ändern

Nur active und je Variante price_cents/active. Wirkt sofort an allen Kassen (Offline-Kassen nach dem nächsten Abgleich).

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
Request-Body application/json
FeldTypBeschreibung
activeoptionalboolean
variantsoptionalarray<object>items 1–50
variants[].idPflichtstringuuid
variants[].price_centsoptionalinteger0–100000000
variants[].activeoptionalboolean
curl
curl -X PATCH "https://pos-api.mellavo.de/v1/products/<id>" \
  -H "Authorization: Bearer k1_live_…" \
  -H "Content-Type: application/json" \
  -d '{"active":true,"variants":[{"id":"0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10","price_cents":1290,"active":true}]}'
Antwort 200 application/json
Felder der Antwort (21)
FeldTypBeschreibung
idstring
namestring
descriptionstring | null
activeboolean
categoryobject
category.idstring
category.namestring
tax_class_idstring
is_voucherboolean
currencystring
variantsarray<object>
variants[].idstring
variants[].namestring
variants[].price_centsintegerganze Cent
variants[].sold_by_weightbooleantrue: price_cents ist der Kilopreis
variants[].skustring | null
variants[].barcodestring | null
variants[].activeboolean
image_urlsarray<string>
created_atstringISO 8601, UTC
updated_atstringISO 8601, UTC
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "name": "Margherita",
  "description": "string",
  "active": true,
  "category": {
    "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "name": "Pizza"
  },
  "tax_class_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "is_voucher": false,
  "currency": "EUR",
  "variants": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "name": "Groß",
      "price_cents": 1290,
      "sold_by_weight": false,
      "sku": "string",
      "barcode": "string",
      "active": true
    }
  ],
  "image_urls": [
    "https://example.com/…"
  ],
  "created_at": "2026-11-20T09:15:00.000Z",
  "updated_at": "2026-11-20T09:15:00.000Z"
}

Belege

GET/v1/ordersScopeorders:read

Belege (Verkäufe und Stornos)

Unveränderlich; ein Storno ist ein eigener Beleg (kind = reversal). Sortiert nach created_at; updated_since, from, to beziehen sich auf created_at.

Parameter
NameOrtTypBeschreibung
limitoptionalquerystring1–100, Standard 50
cursoroptionalquerystringnext_cursor der vorigen Seite
updated_sinceoptionalquerystringISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
fromoptionalquerystringISO-Zeitpunkt (inklusive), created_at
tooptionalquerystringISO-Zeitpunkt (exklusive), created_at
curl
curl "https://pos-api.mellavo.de/v1/orders" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (52)
FeldTypBeschreibung
dataarray<object>
data[].idstring
data[].receipt_numberinteger
data[].kind"sale" | "reversal"
data[].status"paid"
data[].voidedboolean
data[].reverses_order_idstring | null
data[].reversed_by_order_idstring | null
data[].reversal_reasonstring | null
data[].location_idstring
data[].device_idstring
data[].cashier_idstring
data[].customer_idstring | null
data[].order_type"dine_in" | "takeaway" | "delivery"
data[].source"pos" | "kiosk" | "online" | "qr"
data[].currencystring
data[].total_centsintegerganze Cent
data[].tip_centsintegerganze Cent
data[].offlineboolean
data[].late_syncedbooleanOffline-Verkauf, der erst nach dem Abschluss seiner Schicht ankam
data[].tse_status"signed" | "failed"
data[].occurred_atstringISO 8601, UTC
data[].created_atstringISO 8601, UTC
data[].linesarray<object>
data[].lines[].idstring
data[].lines[].product_idstring
data[].lines[].variant_idstring
data[].lines[].namestring
data[].lines[].variant_namestring | null
data[].lines[].quantityinteger
data[].lines[].weight_gramsinteger | null
data[].lines[].unit_price_centsintegerganze Cent
data[].lines[].discount_centsintegerganze Cent
data[].lines[].total_centsintegerganze Cent
data[].lines[].tax_rate_codestring
data[].lines[].staff_user_idstring | null
data[].lines[].modifiersarray<object>
data[].lines[].modifiers[].modifier_idstring
data[].lines[].modifiers[].namestring
data[].lines[].modifiers[].quantityinteger
data[].lines[].modifiers[].price_delta_centsintegerganze Cent
data[].taxesarray<object>
data[].taxes[].rate_codestring
data[].taxes[].rate_bpintegerBasispunkte, 19 % = 1900
data[].taxes[].gross_centsintegerganze Cent
data[].taxes[].net_centsintegerganze Cent
data[].taxes[].tax_centsintegerganze Cent
data[].paymentsarray<object>
data[].payments[].methodstring
data[].payments[].amount_centsintegerganze Cent
data[].payments[].tip_centsintegerganze Cent
next_cursorstring | nullfür ?cursor=; null = letzte Seite
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "data": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "receipt_number": 42,
      "kind": "sale",
      "status": "paid",
      "voided": false,
      "reverses_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "reversed_by_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "reversal_reason": "string",
      "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "device_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "cashier_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "customer_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "order_type": "dine_in",
      "source": "pos",
      "currency": "EUR",
      "total_cents": 1290,
      "tip_cents": 0,
      "offline": false,
      "late_synced": false,
      "tse_status": "signed",
      "occurred_at": "2026-11-20T09:15:00.000Z",
      "created_at": "2026-11-20T09:15:00.000Z",
      "lines": [
        {
          "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "product_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "variant_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "name": "Margherita",
          "variant_name": "Groß",
          "quantity": 2,
          "weight_grams": 500,
          "unit_price_cents": 1290,
          "discount_cents": 0,
          "total_cents": 1290,
          "tax_rate_code": "string",
          "staff_user_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "modifiers": [
            {
              "modifier_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
              "name": "Extra Käse",
              "quantity": 2,
              "price_delta_cents": 1290
            }
          ]
        }
      ],
      "taxes": [
        {
          "rate_code": "string",
          "rate_bp": 1900,
          "gross_cents": 1290,
          "net_cents": 1290,
          "tax_cents": 1290
        }
      ],
      "payments": [
        {
          "method": "cash",
          "amount_cents": 1290,
          "tip_cents": 0
        }
      ]
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0xMS0yMFQwOToxNTowMC4wMDBaIn0"
}
GET/v1/orders/{id}Scopeorders:read

Ein Beleg mit Positionen, Steuern und Zahlungen

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
curl
curl "https://pos-api.mellavo.de/v1/orders/<id>" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (50)
FeldTypBeschreibung
idstring
receipt_numberinteger
kind"sale" | "reversal"
status"paid"
voidedboolean
reverses_order_idstring | null
reversed_by_order_idstring | null
reversal_reasonstring | null
location_idstring
device_idstring
cashier_idstring
customer_idstring | null
order_type"dine_in" | "takeaway" | "delivery"
source"pos" | "kiosk" | "online" | "qr"
currencystring
total_centsintegerganze Cent
tip_centsintegerganze Cent
offlineboolean
late_syncedbooleanOffline-Verkauf, der erst nach dem Abschluss seiner Schicht ankam
tse_status"signed" | "failed"
occurred_atstringISO 8601, UTC
created_atstringISO 8601, UTC
linesarray<object>
lines[].idstring
lines[].product_idstring
lines[].variant_idstring
lines[].namestring
lines[].variant_namestring | null
lines[].quantityinteger
lines[].weight_gramsinteger | null
lines[].unit_price_centsintegerganze Cent
lines[].discount_centsintegerganze Cent
lines[].total_centsintegerganze Cent
lines[].tax_rate_codestring
lines[].staff_user_idstring | null
lines[].modifiersarray<object>
lines[].modifiers[].modifier_idstring
lines[].modifiers[].namestring
lines[].modifiers[].quantityinteger
lines[].modifiers[].price_delta_centsintegerganze Cent
taxesarray<object>
taxes[].rate_codestring
taxes[].rate_bpintegerBasispunkte, 19 % = 1900
taxes[].gross_centsintegerganze Cent
taxes[].net_centsintegerganze Cent
taxes[].tax_centsintegerganze Cent
paymentsarray<object>
payments[].methodstring
payments[].amount_centsintegerganze Cent
payments[].tip_centsintegerganze Cent
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "receipt_number": 42,
  "kind": "sale",
  "status": "paid",
  "voided": false,
  "reverses_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "reversed_by_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "reversal_reason": "string",
  "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "device_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "cashier_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "customer_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "order_type": "dine_in",
  "source": "pos",
  "currency": "EUR",
  "total_cents": 1290,
  "tip_cents": 0,
  "offline": false,
  "late_synced": false,
  "tse_status": "signed",
  "occurred_at": "2026-11-20T09:15:00.000Z",
  "created_at": "2026-11-20T09:15:00.000Z",
  "lines": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "product_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "variant_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "name": "Margherita",
      "variant_name": "Groß",
      "quantity": 2,
      "weight_grams": 500,
      "unit_price_cents": 1290,
      "discount_cents": 0,
      "total_cents": 1290,
      "tax_rate_code": "string",
      "staff_user_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "modifiers": [
        {
          "modifier_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "name": "Extra Käse",
          "quantity": 2,
          "price_delta_cents": 1290
        }
      ]
    }
  ],
  "taxes": [
    {
      "rate_code": "string",
      "rate_bp": 1900,
      "gross_cents": 1290,
      "net_cents": 1290,
      "tax_cents": 1290
    }
  ],
  "payments": [
    {
      "method": "cash",
      "amount_cents": 1290,
      "tip_cents": 0
    }
  ]
}

Kunden

GET/v1/customersScopecustomers:read

Kunden

Ohne interne Notiz.

Parameter
NameOrtTypBeschreibung
limitoptionalquerystring1–100, Standard 50
cursoroptionalquerystringnext_cursor der vorigen Seite
updated_sinceoptionalquerystringISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich
curl
curl "https://pos-api.mellavo.de/v1/customers" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (19)
FeldTypBeschreibung
dataarray<object>
data[].idstring
data[].first_namestring
data[].last_namestring | null
data[].company_namestring | null
data[].emailstring | null
data[].phonestring | null
data[].birthdaystring | nullYYYY-MM-DD
data[].addressobject | null
data[].address.streetstring | null
data[].address.postal_codestring | null
data[].address.citystring | null
data[].address.country_codestring | null
data[].vat_idstring | null
data[].anonymizedboolean
data[].consentsobject
data[].created_atstringISO 8601, UTC
data[].updated_atstringISO 8601, UTC
next_cursorstring | nullfür ?cursor=; null = letzte Seite
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "data": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "first_name": "Olga",
      "last_name": "Muster",
      "company_name": "Muster GmbH",
      "email": "gast@example.com",
      "phone": "+49 30 1234567",
      "birthday": "2026-11-20",
      "address": {
        "street": "string",
        "postal_code": "string",
        "city": "string",
        "country_code": "DE"
      },
      "vat_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "anonymized": false,
      "consents": {
        "key": true
      },
      "created_at": "2026-11-20T09:15:00.000Z",
      "updated_at": "2026-11-20T09:15:00.000Z"
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0xMS0yMFQwOToxNTowMC4wMDBaIn0"
}
POST/v1/customersScopecustomers:write

Kunden anlegen

Ohne Einwilligungen (Werbung/Erinnerungen) – die erteilt der Kunde selbst.

Request-Body application/json
FeldTypBeschreibung
first_namePflichtstringlen 1–80
last_nameoptionalstring | nulllen ≤ 80
emailoptionalstring | nullemail · len ≤ 254
phoneoptionalstring | nulllen ≤ 40
birthdayoptionalstring | nulldate
curl
curl -X POST "https://pos-api.mellavo.de/v1/customers" \
  -H "Authorization: Bearer k1_live_…" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"Olga","last_name":"Muster","email":"gast@example.com"}'
Antwort 201 application/json
Felder der Antwort (17)
FeldTypBeschreibung
idstring
first_namestring
last_namestring | null
company_namestring | null
emailstring | null
phonestring | null
birthdaystring | nullYYYY-MM-DD
addressobject | null
address.streetstring | null
address.postal_codestring | null
address.citystring | null
address.country_codestring | null
vat_idstring | null
anonymizedboolean
consentsobject
created_atstringISO 8601, UTC
updated_atstringISO 8601, UTC
Beispiel

Beispielwerte, erzeugt aus dem Schema.

201 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "first_name": "Olga",
  "last_name": "Muster",
  "company_name": "Muster GmbH",
  "email": "gast@example.com",
  "phone": "+49 30 1234567",
  "birthday": "2026-11-20",
  "address": {
    "street": "string",
    "postal_code": "string",
    "city": "string",
    "country_code": "DE"
  },
  "vat_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "anonymized": false,
  "consents": {
    "key": true
  },
  "created_at": "2026-11-20T09:15:00.000Z",
  "updated_at": "2026-11-20T09:15:00.000Z"
}
GET/v1/customers/{id}Scopecustomers:read

Ein Kunde

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
curl
curl "https://pos-api.mellavo.de/v1/customers/<id>" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (17)
FeldTypBeschreibung
idstring
first_namestring
last_namestring | null
company_namestring | null
emailstring | null
phonestring | null
birthdaystring | nullYYYY-MM-DD
addressobject | null
address.streetstring | null
address.postal_codestring | null
address.citystring | null
address.country_codestring | null
vat_idstring | null
anonymizedboolean
consentsobject
created_atstringISO 8601, UTC
updated_atstringISO 8601, UTC
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "first_name": "Olga",
  "last_name": "Muster",
  "company_name": "Muster GmbH",
  "email": "gast@example.com",
  "phone": "+49 30 1234567",
  "birthday": "2026-11-20",
  "address": {
    "street": "string",
    "postal_code": "string",
    "city": "string",
    "country_code": "DE"
  },
  "vat_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "anonymized": false,
  "consents": {
    "key": true
  },
  "created_at": "2026-11-20T09:15:00.000Z",
  "updated_at": "2026-11-20T09:15:00.000Z"
}
PATCH/v1/customers/{id}Scopecustomers:write

Kundenstammdaten ändern

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
Request-Body application/json
FeldTypBeschreibung
first_nameoptionalstringlen 1–80
last_nameoptionalstring | nulllen ≤ 80
emailoptionalstring | nullemail · len ≤ 254
phoneoptionalstring | nulllen ≤ 40
birthdayoptionalstring | nulldate
curl
curl -X PATCH "https://pos-api.mellavo.de/v1/customers/<id>" \
  -H "Authorization: Bearer k1_live_…" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"Olga","last_name":"Muster"}'
Antwort 200 application/json
Felder der Antwort (17)
FeldTypBeschreibung
idstring
first_namestring
last_namestring | null
company_namestring | null
emailstring | null
phonestring | null
birthdaystring | nullYYYY-MM-DD
addressobject | null
address.streetstring | null
address.postal_codestring | null
address.citystring | null
address.country_codestring | null
vat_idstring | null
anonymizedboolean
consentsobject
created_atstringISO 8601, UTC
updated_atstringISO 8601, UTC
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "first_name": "Olga",
  "last_name": "Muster",
  "company_name": "Muster GmbH",
  "email": "gast@example.com",
  "phone": "+49 30 1234567",
  "birthday": "2026-11-20",
  "address": {
    "street": "string",
    "postal_code": "string",
    "city": "string",
    "country_code": "DE"
  },
  "vat_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "anonymized": false,
  "consents": {
    "key": true
  },
  "created_at": "2026-11-20T09:15:00.000Z",
  "updated_at": "2026-11-20T09:15:00.000Z"
}

Rechnungen

GET/v1/invoicesScopeinvoices:read

Rechnungen und Gutschriften (ohne Entwürfe)

Parameter
NameOrtTypBeschreibung
limitoptionalquerystring1–100, Standard 50
cursoroptionalquerystringnext_cursor der vorigen Seite
updated_sinceoptionalquerystringISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich
curl
curl "https://pos-api.mellavo.de/v1/invoices" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (36)
FeldTypBeschreibung
dataarray<object>
data[].idstring
data[].type"invoice" | "credit_note"
data[].numberstring | null
data[].status"issued" | "partially_paid" | "paid" | "cancelled" | "draft"
data[].customer_idstring
data[].customer_namestring
data[].corrects_invoice_idstring | null
data[].receipt_order_idstring | null
data[].issue_datestring | nullYYYY-MM-DD
data[].due_datestring | nullYYYY-MM-DD
data[].service_date_fromstring | nullYYYY-MM-DD
data[].service_date_tostring | nullYYYY-MM-DD
data[].subjectstring | null
data[].currencystring
data[].net_centsintegerganze Cent
data[].tax_centsintegerganze Cent
data[].gross_centsintegerganze Cent
data[].paid_centsintegerganze Cent
data[].open_centsintegerganze Cent
data[].dunning_levelinteger
data[].issued_atstring | nullISO 8601, UTC
data[].created_atstringISO 8601, UTC
data[].updated_atstringISO 8601, UTC
data[].linesarray<object>
data[].lines[].namestring
data[].lines[].descriptionstring | null
data[].lines[].product_idstring | null
data[].lines[].quantitynumber
data[].lines[].quantity_milliinteger
data[].lines[].unit_codestring
data[].lines[].unit_price_centsintegerganze Cent
data[].lines[].net_centsintegerganze Cent
data[].lines[].tax_rate_bpinteger
data[].lines[].tax_categorystring
next_cursorstring | nullfür ?cursor=; null = letzte Seite
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "data": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "type": "invoice",
      "number": "string",
      "status": "issued",
      "customer_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "customer_name": "Margherita",
      "corrects_invoice_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "receipt_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "issue_date": "2026-11-20",
      "due_date": "2026-11-20",
      "service_date_from": "string",
      "service_date_to": "string",
      "subject": "string",
      "currency": "EUR",
      "net_cents": 1290,
      "tax_cents": 1290,
      "gross_cents": 1290,
      "paid_cents": 1290,
      "open_cents": 1290,
      "dunning_level": 1,
      "issued_at": "2026-11-20T09:15:00.000Z",
      "created_at": "2026-11-20T09:15:00.000Z",
      "updated_at": "2026-11-20T09:15:00.000Z",
      "lines": [
        {
          "name": "Margherita",
          "description": "string",
          "product_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "quantity": 2,
          "quantity_milli": 1,
          "unit_code": "string",
          "unit_price_cents": 1290,
          "net_cents": 1290,
          "tax_rate_bp": 1900,
          "tax_category": "string"
        }
      ]
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0xMS0yMFQwOToxNTowMC4wMDBaIn0"
}
GET/v1/invoices/{id}Scopeinvoices:read

Eine Rechnung mit Positionen

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
curl
curl "https://pos-api.mellavo.de/v1/invoices/<id>" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (34)
FeldTypBeschreibung
idstring
type"invoice" | "credit_note"
numberstring | null
status"issued" | "partially_paid" | "paid" | "cancelled" | "draft"
customer_idstring
customer_namestring
corrects_invoice_idstring | null
receipt_order_idstring | null
issue_datestring | nullYYYY-MM-DD
due_datestring | nullYYYY-MM-DD
service_date_fromstring | nullYYYY-MM-DD
service_date_tostring | nullYYYY-MM-DD
subjectstring | null
currencystring
net_centsintegerganze Cent
tax_centsintegerganze Cent
gross_centsintegerganze Cent
paid_centsintegerganze Cent
open_centsintegerganze Cent
dunning_levelinteger
issued_atstring | nullISO 8601, UTC
created_atstringISO 8601, UTC
updated_atstringISO 8601, UTC
linesarray<object>
lines[].namestring
lines[].descriptionstring | null
lines[].product_idstring | null
lines[].quantitynumber
lines[].quantity_milliinteger
lines[].unit_codestring
lines[].unit_price_centsintegerganze Cent
lines[].net_centsintegerganze Cent
lines[].tax_rate_bpinteger
lines[].tax_categorystring
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "type": "invoice",
  "number": "string",
  "status": "issued",
  "customer_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "customer_name": "Margherita",
  "corrects_invoice_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "receipt_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "issue_date": "2026-11-20",
  "due_date": "2026-11-20",
  "service_date_from": "string",
  "service_date_to": "string",
  "subject": "string",
  "currency": "EUR",
  "net_cents": 1290,
  "tax_cents": 1290,
  "gross_cents": 1290,
  "paid_cents": 1290,
  "open_cents": 1290,
  "dunning_level": 1,
  "issued_at": "2026-11-20T09:15:00.000Z",
  "created_at": "2026-11-20T09:15:00.000Z",
  "updated_at": "2026-11-20T09:15:00.000Z",
  "lines": [
    {
      "name": "Margherita",
      "description": "string",
      "product_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "quantity": 2,
      "quantity_milli": 1,
      "unit_code": "string",
      "unit_price_cents": 1290,
      "net_cents": 1290,
      "tax_rate_bp": 1900,
      "tax_category": "string"
    }
  ]
}
GET/v1/invoices/{id}/pdfScopeinvoices:read

Rechnungs-PDF (archivierte Fassung)

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
curl
curl "https://pos-api.mellavo.de/v1/invoices/<id>/pdf" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200

Datei statt JSON (PDF der archivierten Rechnung).

Auswertungen

GET/v1/reports/dailyScopereports:read

Tagesumsatz je Standort

Kalendertag in der Zeitzone des Standorts, Verkaufszeitpunkt (offline: Zeit am Gerät). Stornos mindern die Summen.

Parameter
NameOrtTypBeschreibung
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
datePflichtquerystringYYYY-MM-DD
curl
curl "https://pos-api.mellavo.de/v1/reports/daily?date=2026-11-20" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (26)
FeldTypBeschreibung
datestring
currencystring
locationsarray<object>
locations[].location_idstring
locations[].location_namestring
locations[].time_zonestring
locations[].fromstringISO 8601, UTC
locations[].tostringISO 8601, UTC
locations[].receiptsinteger
locations[].reversalsinteger
locations[].reversal_centsintegerganze Cent
locations[].gross_centsintegerganze Cent
locations[].net_centsintegerganze Cent
locations[].tax_centsintegerganze Cent
locations[].tip_centsintegerganze Cent
locations[].by_tax_ratearray<object>
locations[].by_tax_rate[].rate_codestring
locations[].by_tax_rate[].rate_bpinteger
locations[].by_tax_rate[].gross_centsintegerganze Cent
locations[].by_tax_rate[].net_centsintegerganze Cent
locations[].by_tax_rate[].tax_centsintegerganze Cent
locations[].by_payment_methodarray<object>
locations[].by_payment_method[].methodstring
locations[].by_payment_method[].countinteger
locations[].by_payment_method[].amount_centsintegerganze Cent
locations[].by_payment_method[].tip_centsintegerganze Cent
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "date": "2026-11-20",
  "currency": "EUR",
  "locations": [
    {
      "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "location_name": "Hauptstandort",
      "time_zone": "string",
      "from": "2026-11-20T09:15:00.000Z",
      "to": "2026-11-20T09:15:00.000Z",
      "receipts": 1,
      "reversals": 1,
      "reversal_cents": 1290,
      "gross_cents": 1290,
      "net_cents": 1290,
      "tax_cents": 1290,
      "tip_cents": 0,
      "by_tax_rate": [
        {
          "rate_code": "string",
          "rate_bp": 1900,
          "gross_cents": 1290,
          "net_cents": 1290,
          "tax_cents": 1290
        }
      ],
      "by_payment_method": [
        {
          "method": "cash",
          "count": 2,
          "amount_cents": 1290,
          "tip_cents": 0
        }
      ]
    }
  ]
}

Pension & Hotel

GET/v1/hotel/bookingsScopebookings:read

Buchungen

Ohne interne Notiz.

Parameter
NameOrtTypBeschreibung
limitoptionalquerystring1–100, Standard 50
cursoroptionalquerystringnext_cursor der vorigen Seite
updated_sinceoptionalquerystringISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
arrival_fromoptionalquerystringYYYY-MM-DD (inklusive)
arrival_tooptionalquerystringYYYY-MM-DD (inklusive)
curl
curl "https://pos-api.mellavo.de/v1/hotel/bookings" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (36)
FeldTypBeschreibung
dataarray<object>
data[].idstring
data[].numberinteger
data[].location_idstring
data[].statusstring
data[].sourcestring
data[].channel_refstring | null
data[].customer_idstring | null
data[].guest_namestring
data[].guest_emailstring | null
data[].guest_phonestring | null
data[].arrivalstring | nullYYYY-MM-DD
data[].departurestring | nullYYYY-MM-DD
data[].adultsinteger
data[].childreninteger
data[].rate_plan_idstring | null
data[].guest_notestring | null
data[].prepaid_by_channelboolean
data[].currencystring
data[].accommodation_centsintegerganze Cent
data[].pos_charge_centsintegerganze Cent
data[].roomsarray<object>
data[].rooms[].room_idstring
data[].rooms[].room_type_idstring
data[].rooms[].arrivalstring | nullYYYY-MM-DD
data[].rooms[].departurestring | nullYYYY-MM-DD
data[].rooms[].adultsinteger
data[].rooms[].childreninteger
data[].rooms[].price_centsintegerganze Cent
data[].invoice_idstring | null
data[].checked_in_atstring | nullISO 8601, UTC
data[].checked_out_atstring | nullISO 8601, UTC
data[].cancelled_atstring | nullISO 8601, UTC
data[].created_atstringISO 8601, UTC
data[].updated_atstringISO 8601, UTC
next_cursorstring | nullfür ?cursor=; null = letzte Seite
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "data": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "number": 1,
      "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "status": "string",
      "source": "string",
      "channel_ref": "string",
      "customer_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "guest_name": "Margherita",
      "guest_email": "string",
      "guest_phone": "string",
      "arrival": "2026-11-20",
      "departure": "2026-11-20",
      "adults": 2,
      "children": 1,
      "rate_plan_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "guest_note": "string",
      "prepaid_by_channel": true,
      "currency": "EUR",
      "accommodation_cents": 1290,
      "pos_charge_cents": 1290,
      "rooms": [
        {
          "room_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "room_type_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
          "arrival": "2026-11-20",
          "departure": "2026-11-20",
          "adults": 2,
          "children": 1,
          "price_cents": 1290
        }
      ],
      "invoice_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "checked_in_at": "2026-11-20T09:15:00.000Z",
      "checked_out_at": "2026-11-20T09:15:00.000Z",
      "cancelled_at": "2026-11-20T09:15:00.000Z",
      "created_at": "2026-11-20T09:15:00.000Z",
      "updated_at": "2026-11-20T09:15:00.000Z"
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0xMS0yMFQwOToxNTowMC4wMDBaIn0"
}
GET/v1/hotel/bookings/{id}Scopebookings:read

Eine Buchung

Parameter
NameOrtTypBeschreibung
idPflichtpathstring
curl
curl "https://pos-api.mellavo.de/v1/hotel/bookings/<id>" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (34)
FeldTypBeschreibung
idstring
numberinteger
location_idstring
statusstring
sourcestring
channel_refstring | null
customer_idstring | null
guest_namestring
guest_emailstring | null
guest_phonestring | null
arrivalstring | nullYYYY-MM-DD
departurestring | nullYYYY-MM-DD
adultsinteger
childreninteger
rate_plan_idstring | null
guest_notestring | null
prepaid_by_channelboolean
currencystring
accommodation_centsintegerganze Cent
pos_charge_centsintegerganze Cent
roomsarray<object>
rooms[].room_idstring
rooms[].room_type_idstring
rooms[].arrivalstring | nullYYYY-MM-DD
rooms[].departurestring | nullYYYY-MM-DD
rooms[].adultsinteger
rooms[].childreninteger
rooms[].price_centsintegerganze Cent
invoice_idstring | null
checked_in_atstring | nullISO 8601, UTC
checked_out_atstring | nullISO 8601, UTC
cancelled_atstring | nullISO 8601, UTC
created_atstringISO 8601, UTC
updated_atstringISO 8601, UTC
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "number": 1,
  "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "status": "string",
  "source": "string",
  "channel_ref": "string",
  "customer_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "guest_name": "Margherita",
  "guest_email": "string",
  "guest_phone": "string",
  "arrival": "2026-11-20",
  "departure": "2026-11-20",
  "adults": 2,
  "children": 1,
  "rate_plan_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "guest_note": "string",
  "prepaid_by_channel": true,
  "currency": "EUR",
  "accommodation_cents": 1290,
  "pos_charge_cents": 1290,
  "rooms": [
    {
      "room_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "room_type_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "arrival": "2026-11-20",
      "departure": "2026-11-20",
      "adults": 2,
      "children": 1,
      "price_cents": 1290
    }
  ],
  "invoice_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
  "checked_in_at": "2026-11-20T09:15:00.000Z",
  "checked_out_at": "2026-11-20T09:15:00.000Z",
  "cancelled_at": "2026-11-20T09:15:00.000Z",
  "created_at": "2026-11-20T09:15:00.000Z",
  "updated_at": "2026-11-20T09:15:00.000Z"
}

Lager

GET/v1/inventory/stockScopeinventory:read

Lagerbestand je Standort und Lagerartikel

Parameter
NameOrtTypBeschreibung
limitoptionalquerystring1–100, Standard 50
cursoroptionalquerystringnext_cursor der vorigen Seite
updated_sinceoptionalquerystringISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
curl
curl "https://pos-api.mellavo.de/v1/inventory/stock" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (12)
FeldTypBeschreibung
dataarray<object>
data[].idstring
data[].location_idstring
data[].stock_item_idstring
data[].namestring
data[].skustring | null
data[].unit"g" | "ml" | "pcs"
data[].activeboolean
data[].quantitynumber
data[].quantity_milliinteger
data[].updated_atstringISO 8601, UTC
next_cursorstring | nullfür ?cursor=; null = letzte Seite
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "data": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "stock_item_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "name": "Margherita",
      "sku": "string",
      "unit": "g",
      "active": true,
      "quantity": 2,
      "quantity_milli": 1,
      "updated_at": "2026-11-20T09:15:00.000Z"
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0xMS0yMFQwOToxNTowMC4wMDBaIn0"
}

Kassenbuch

GET/v1/cash-bookScopecashbook:read

Kassenbuch (Bargeld) mit Bestand und Bon-Link

Chronologisch: Barverkäufe und Bar-Stornos (je Bon, mit Bar-Anteil je Steuersatz), Anfangsbestand, Einlagen, Entnahmen, Geldtransit, Trinkgeld-Auszahlungen, Kassendifferenzen, Übertrag-Abweichungen sowie Vermerke ohne Betrag (Z-Abschluss, automatischer Tagesabschluss, Nachtrags-Schicht). Karten-, Gutschein- und Zimmerzahlungen sind keine Kassenbuch-Einträge (siehe /v1/orders). amount_cents mit Vorzeichen, balance_after_cents = Bestand des Standorts, till_balance_after_cents = Bestand der Kasse. receipt_url ist ein dauerhafter E-Bon-Link (10 Jahre gültig), der genau diesen Bon öffnet. Einträge sind unveränderlich; updated_since bezieht sich auf created_at.

Parameter
NameOrtTypBeschreibung
limitoptionalquerystring1–100, Standard 50
cursoroptionalquerystringnext_cursor der vorigen Seite
updated_sinceoptionalquerystringISO-Zeitpunkt (inklusive) für den inkrementellen Abgleich
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
fromoptionalquerystringYYYY-MM-DD (Kalendertag des Standorts, inklusive) oder ISO-Zeitpunkt (inklusive)
tooptionalquerystringYYYY-MM-DD (Kalendertag des Standorts, inklusive) oder ISO-Zeitpunkt (exklusive)
curl
curl "https://pos-api.mellavo.de/v1/cash-book" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200 application/json
Felder der Antwort (33)
FeldTypBeschreibung
dataarray<object>
data[].idstringstabil: Zahlung, Kassenbewegung oder Z-Bericht
data[].type"sale" | "reversal" | "opening_float" | "carryover_adjustment" | "deposit" | "withdrawal" | "bank_transfer" | "tip_payout" | "difference" | "z_close" | "auto_day_close" | "late_sync_close" | "late_sync_shift"
data[].textstring
data[].location_idstring
data[].device_idstring
data[].device_namestring
data[].shift_idstring
data[].z_report_numberinteger | nullZ-Bericht der Schicht; null = Schicht noch offen
data[].business_datestringYYYY-MM-DD, Kalendertag des Standorts
data[].currencystring
data[].amount_centsintegermit Vorzeichen: + Zugang, − Abgang; Vermerke 0
data[].balance_after_centsintegerBargeldbestand des Standorts nach der Buchung
data[].till_balance_after_centsintegerBargeldbestand dieser Kasse nach der Buchung
data[].receipt_numberinteger | nullBon- bzw. Belegnummer
data[].order_idstring | nullinterne Beleg-ID (siehe /v1/orders/{id})
data[].receipt_urlstring | nulldauerhafter E-Bon-Link (nur Verkauf/Storno)
data[].tip_centsintegerganze Cent
data[].cash_splitarray<object>
data[].cash_split[].target"revenue" | "voucher_sale" | "room_receivable"
data[].cash_split[].rate_bpinteger | nullSteuersatz in Basispunkten (nur revenue)
data[].cash_split[].gross_centsintegerganze Cent
data[].late_syncedbooleanOffline-Verkauf, der erst nach dem Abschluss seiner Schicht ankam
data[].sale_occurred_atstring | nullVerkaufszeitpunkt laut Gerät
data[].z_reportobject | null
data[].z_report.numberinteger
data[].z_report.expected_cash_centsintegerganze Cent
data[].z_report.counted_cash_centsintegerganze Cent
data[].z_report.difference_centsintegerganze Cent
data[].z_report.cash_countedboolean
data[].z_report.auto_closedboolean
data[].created_atstringBuchungszeitpunkt im Kassenbuch
next_cursorstring | nullfür ?cursor=; null = letzte Seite
Beispiel

Beispielwerte, erzeugt aus dem Schema.

200 · JSON
{
  "data": [
    {
      "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "type": "sale",
      "text": "string",
      "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "device_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "device_name": "Margherita",
      "shift_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "z_report_number": 1,
      "business_date": "2026-11-20",
      "currency": "EUR",
      "amount_cents": 1290,
      "balance_after_cents": 1290,
      "till_balance_after_cents": 1290,
      "receipt_number": 42,
      "order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
      "receipt_url": "https://example.com/…",
      "tip_cents": 0,
      "cash_split": [
        {
          "target": "revenue",
          "rate_bp": 1900,
          "gross_cents": 1290
        }
      ],
      "late_synced": false,
      "sale_occurred_at": "2026-11-20T09:15:00.000Z",
      "z_report": {
        "number": 1,
        "expected_cash_cents": 1290,
        "counted_cash_cents": 1290,
        "difference_cents": 1290,
        "cash_counted": true,
        "auto_closed": true
      },
      "created_at": "2026-11-20T09:15:00.000Z"
    }
  ],
  "next_cursor": "eyJ1IjoiMjAyNi0xMS0yMFQwOToxNTowMC4wMDBaIn0"
}
GET/v1/cash-book/datevScopecashbook:read

Kassenbuch als DATEV-Buchungsstapel (EXTF, Windows-1252)

Eine Buchung je Kassenbuch-Eintrag (Barverkauf je Steuersatz), Konto Kasse, Bon-Link in „Beleglink“. Ersetzt für Bargeld die Tagessummen des Backoffice-Exports: Wurde für einen überlappenden Zeitraum Bargeld schon in anderer Form exportiert, antwortet die API mit 409 datev_cash_overlap (mit confirm_overlap=true trotzdem exportieren). Header KassaOne-Export-Warnings = Anzahl der Hinweise.

Parameter
NameOrtTypBeschreibung
confirm_overlapoptionalquerystringtrue = trotz Überschneidung exportieren
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
toPflichtquerystringYYYY-MM-DD (gleiches Jahr)
fromPflichtquerystringYYYY-MM-DD
curl
curl "https://pos-api.mellavo.de/v1/cash-book/datev?to=2026-11-20T09:15:00.000Z&from=2026-11-20T09:15:00.000Z" \
  -H "Authorization: Bearer k1_live_…"
Antwort 200

Datei statt JSON (PDF der archivierten Rechnung).

Webhooks

Webhooks: mellavoPOS meldet sich bei dir.

Abos legst du im Backoffice unter API-Zugang → Webhooks an, bis zu 10 je Betrieb. Ziel ist immer eine https://-Adresse; das Secret whsec_… erscheint nur einmal.

Ereignisse

order.paidEin Beleg wurde bezahlt, auch nach einem Offline-Abgleich.
order.voidedEin Beleg wurde storniert; data ist der Stornobeleg.
invoice.createdEine Rechnung oder Gutschrift wurde ausgestellt (keine Entwürfe).
customer.createdEin Kunde wurde angelegt, etwa im Backoffice, über die API oder im Shop.
booking.createdEine Buchung in Pension oder Hotel wurde angelegt.
booking.updatedEine Buchung wurde geändert, verschoben, ein- oder ausgecheckt.

webhook.ping ist das Testereignis. Du löst es mit „Test senden“ aus; es wird einmal zugestellt und zählt nicht zur Abschaltung.

Header

  • KassaOne-EventArt des Ereignisses
  • KassaOne-DeliveryID dieser Zustellung
  • KassaOne-SignatureZeitstempel und HMAC-SHA256 über <t>.<roher Body>
Header
POST /kassaone/webhook HTTP/1.1
Content-Type: application/json
KassaOne-Event: order.paid
KassaOne-Delivery: 0193a5f3-4b6c-7d10-9e2f-1a3b5c7d9e0f
KassaOne-Signature: t=1795252500,v1=5f8c…e41a

Umschlag

POST mit Content-Type: application/json. data hat dieselbe Form wie die passende GET /v1/…-Antwort. Die id bleibt je Ereignis gleich, damit du doppelte Zustellungen erkennst.

order.paid · JSON
{
  "id": "0193a5f3-1d2e-7c40-8b1a-6e2f9d0c4a21",
  "type": "order.paid",
  "created_at": "2026-11-20T09:15:00.000Z",
  "tenant": {
    "slug": "bella-vista"
  },
  "data": {
    "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "receipt_number": 42,
    "kind": "sale",
    "status": "paid",
    "voided": false,
    "reverses_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "reversed_by_order_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "reversal_reason": "string",
    "location_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "device_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "cashier_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "customer_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
    "order_type": "dine_in",
    "source": "pos",
    "currency": "EUR",
    "total_cents": 1290,
    "tip_cents": 0,
    "offline": false,
    "late_synced": false,
    "tse_status": "signed",
    "occurred_at": "2026-11-20T09:15:00.000Z",
    "created_at": "2026-11-20T09:15:00.000Z",
    "lines": [
      {
        "id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
        "product_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
        "variant_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
        "name": "Margherita",
        "variant_name": "Groß",
        "quantity": 2,
        "weight_grams": 500,
        "unit_price_cents": 1290,
        "discount_cents": 0,
        "total_cents": 1290,
        "tax_rate_code": "string",
        "staff_user_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
        "modifiers": [
          {
            "modifier_id": "0193a5f2-7c1e-7b40-9a6d-3f1c2b8e4d10",
            "name": "Extra Käse",
            "quantity": 2,
            "price_delta_cents": 1290
          }
        ]
      }
    ],
    "taxes": [
      {
        "rate_code": "string",
        "rate_bp": 1900,
        "gross_cents": 1290,
        "net_cents": 1290,
        "tax_cents": 1290
      }
    ],
    "payments": [
      {
        "method": "cash",
        "amount_cents": 1290,
        "tip_cents": 0
      }
    ]
  }
}

Signatur prüfen

Rechne die Signatur über den unveränderten Body nach, vergleiche zeitkonstant und verwirf Zeitstempel, die älter als 5 Minuten sind.

Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody: the unmodified request body as a string, secret: whsec_…
export function verifyKassaOne(rawBody, header, secret) {
  const parts = Object.fromEntries(
    String(header ?? '').split(',').map((p) => p.trim().split('=')),
  );
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest();
  const given = Buffer.from(parts.v1 ?? '', 'hex');
  return given.length === expected.length && timingSafeEqual(given, expected);
}

// Express: app.post('/kassaone/webhook', express.raw({ type: 'application/json' }), (req, res) => {
//   if (!verifyKassaOne(req.body.toString('utf8'), req.get('kassaone-signature'), process.env.KASSAONE_WEBHOOK_SECRET))
//     return res.sendStatus(400);
//   res.sendStatus(204);
// });

Zustellung und Wiederholung

  • Erfolgreich ist eine Antwort mit HTTP 2xx innerhalb von 10 Sekunden.
  • Sonst folgen Wiederholungen nach 30 s, 2 min, 10 min, 30 min, 2 h, 6 h und 12 h: 8 Versuche über rund 21 Stunden.
  • Weiterleitungen (3xx) werden nicht verfolgt und zählen als Fehler.
  • Nach 5 endgültig fehlgeschlagenen Zustellungen in Folge schaltet mellavoPOS das Abo ab und schreibt den Inhabern eine E-Mail.
  • Im Zustellprotokoll (30 Tage) siehst du Status und Dauer und kannst einzelne Zustellungen erneut senden.

Sicherheit & Limits

Sicherheit und Grenzen.

  • Nur einmal sichtbar

    Token und Webhook-Secret erscheinen nur direkt nach dem Anlegen. Gespeichert wird der Schlüssel nur als HMAC-SHA256 mit einem Server-Secret, das nicht in der Datenbank liegt.

  • Scopes und Standort

    Jede Route verlangt ihren Scope. Ein an einen Standort gebundener Schlüssel sieht dessen Belege, Buchungen und Lager, keine anderen.

  • IP-Allowlist und Ablauf

    Erlaubte Adressen, Ablaufdatum, Sperren und Rotieren je Schlüssel. Fehlversuche mit bekanntem Schlüssel stehen im Audit-Log.

  • Getrennte Betriebe

    Der Betrieb ergibt sich nur aus dem Schlüssel, alle Abfragen laufen mit dem Filter auf ihn. IDs eines fremden Betriebs ergeben 404.

  • Was die API nie ausgibt

    Keine TSE-Zugangsdaten oder -Secrets, keine Passwort- oder PIN-Hashes, keine Tokens, keine internen Notizen und keine Referenzen von Zahlungsanbietern.

  • Webhooks nur nach draußen

    Ziele nur per https, keine lokalen oder privaten Adressen; die Zieladresse wird beim Senden erneut geprüft.

Wie wir den Rest von mellavoPOS absichern, steht unter Sicherheit.

Version

Version v1

Alle Routen liegen unter /v1. Neue Felder und Endpunkte können dazukommen; dein Code sollte unbekannte Felder ignorieren. Was bestehende Felder bricht, käme unter einer neuen Version.

Die API ist neu und bisher nur in unseren eigenen Tests und auf dem Demo-Server gelaufen, nicht im echten Betrieb.

  • v120.11.2026v1 veröffentlicht: API-Schlüssel, 17 Endpunkte, Webhooks.

Du baust eine Anbindung?

Erzähl uns, was du vorhast. Wir sagen dir, welche Daten die API heute liefert und was noch fehlt.