Skip to content

Developers

Build on mellavoPOS.

A JSON REST API for accounting, reporting and your own website, plus signed webhooks when a receipt is paid, an invoice is issued or a customer is created.

  • REST and JSON
  • Version v1
  • Webhooks with HMAC signature
  • OpenAPI 3
First call
curl https://pos-api.mellavo.de/v1/me \
  -H "Authorization: Bearer k1_live_…"
Response · 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"
  }
}

Quickstart

Four steps to your first call.

  1. 1

    Create a key

    In the back office under Settings → API access. Owners and managers can do this, signed in with password and two-factor code.

  2. 2

    Set permissions

    Pick only the scopes your application needs. Optionally bind the key to one location, allow IP addresses and set an expiry date.

  3. 3

    Store the token

    The key k1_live_… is shown exactly once. Keep it in your password or secret store, never in browser code.

  4. 4

    Test the connection

    GET /v1/me needs no scope and shows which key and business you are connected to.

Base URL

All routes live under /v1. Send the key as a bearer token.

Base URL
https://pos-api.mellavo.de/v1
  • ScopesRead or write per area. Write includes read.
  • LocationReceipts, daily sales, bookings and stock of one location only. Catalogue, customers and invoices apply to the whole business.
  • IP allowlistUp to 20 IPv4 or IPv6 addresses or CIDR ranges.
  • Expiry & rotationOptional expiry date. When rotating, the old key can stay valid for up to 7 days.

Scopes

catalog:readRead products with variants and prices
catalog:writeActivate or deactivate products, change variant prices
orders:readRead receipts, sales and voids
customers:readRead customers
customers:writeCreate and update customers
invoices:readRead invoices and credit notes, fetch the PDF
reports:readDaily sales per location
bookings:readRead guesthouse and hotel bookings
inventory:readRead stock levels per location
cashbook:readRead the cash book with receipt links and DATEV export

Conventions

What is the same everywhere.

Lists and pages

limit from 1 to 100 (default 50), cursor from next_cursor of the previous page. Sorted ascending by updated_at (receipts: created_at). To sync, remember the last timestamp and pass it as updated_since; the bound is inclusive, and you recognise duplicates by their 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

Per key 60, 120, 300 or 600 requests per minute (default 120), fixed one-minute window. Every response carries the current values; when exceeded you get 429 with Retry-After in seconds.

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

Money, time, fields

  • Amounts always in whole cents with currency (EUR), never as decimals.
  • Timestamps in ISO 8601 and UTC, calendar days as YYYY-MM-DD.
  • Field names in snake_case, responses as JSON (invoice PDF as a file).
  • Tax rates in basis points: 19 % = 1900.

Errors

Every error has the same shape. The code is stable, the message is for humans.

403 · JSON
{
  "error": {
    "code": "insufficient_scope",
    "message": "Dem API-Schlüssel fehlt ein Scope.",
    "details": {
      "required": [
        "orders:read"
      ]
    }
  }
}
StatusCodeMeaning
401invalid_api_keyKey missing, wrong, revoked or expired (deliberately not distinguished)
403ip_not_allowedThe address is not on the key’s IP allowlist
403insufficient_scopeScope missing, details.required names it
403location_not_allowedThe key is bound to a different location
404not_foundUnknown ID or one from another business
400validation_failedInvalid input, details.issues lists the fields
409conflictConflict with the current state
429rate_limitedToo many requests, wait for the seconds in Retry-After

Reference

Every endpoint.

Generated from the API’s OpenAPI file. Endpoint descriptions appear exactly as in the specification.

Endpoint descriptions are in German, as in the specification. The running API serves the same file without signing in at /v1/openapi.json.

Show endpoints

Allgemein

GET/v1/meScopeno 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_…"
Response 200 application/json
Response fields (12)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
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_…"
Response 200 application/json
Response fields (23)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
idRequiredpathstring
curl
curl "https://pos-api.mellavo.de/v1/products/<id>" \
  -H "Authorization: Bearer k1_live_…"
Response 200 application/json
Response fields (21)
FieldTypeDescription
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
Example

Example values generated from the 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).

Parameters
NameInTypeDescription
idRequiredpathstring
Request body application/json
FieldTypeDescription
activeoptionalboolean
variantsoptionalarray<object>items 1–50
variants[].idRequiredstringuuid
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}]}'
Response 200 application/json
Response fields (21)
FieldTypeDescription
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
Example

Example values generated from the 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.

Parameters
NameInTypeDescription
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_…"
Response 200 application/json
Response fields (52)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
idRequiredpathstring
curl
curl "https://pos-api.mellavo.de/v1/orders/<id>" \
  -H "Authorization: Bearer k1_live_…"
Response 200 application/json
Response fields (50)
FieldTypeDescription
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
Example

Example values generated from the 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.

Parameters
NameInTypeDescription
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_…"
Response 200 application/json
Response fields (19)
FieldTypeDescription
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
Example

Example values generated from the 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
FieldTypeDescription
first_nameRequiredstringlen 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"}'
Response 201 application/json
Response fields (17)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
idRequiredpathstring
curl
curl "https://pos-api.mellavo.de/v1/customers/<id>" \
  -H "Authorization: Bearer k1_live_…"
Response 200 application/json
Response fields (17)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
idRequiredpathstring
Request body application/json
FieldTypeDescription
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"}'
Response 200 application/json
Response fields (17)
FieldTypeDescription
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
Example

Example values generated from the 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)

Parameters
NameInTypeDescription
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_…"
Response 200 application/json
Response fields (36)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
idRequiredpathstring
curl
curl "https://pos-api.mellavo.de/v1/invoices/<id>" \
  -H "Authorization: Bearer k1_live_…"
Response 200 application/json
Response fields (34)
FieldTypeDescription
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
Example

Example values generated from the 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)

Parameters
NameInTypeDescription
idRequiredpathstring
curl
curl "https://pos-api.mellavo.de/v1/invoices/<id>/pdf" \
  -H "Authorization: Bearer k1_live_…"
Response 200

A file instead of JSON (PDF of the archived invoice).

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.

Parameters
NameInTypeDescription
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
dateRequiredquerystringYYYY-MM-DD
curl
curl "https://pos-api.mellavo.de/v1/reports/daily?date=2026-11-20" \
  -H "Authorization: Bearer k1_live_…"
Response 200 application/json
Response fields (26)
FieldTypeDescription
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
Example

Example values generated from the 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.

Parameters
NameInTypeDescription
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_…"
Response 200 application/json
Response fields (36)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
idRequiredpathstring
curl
curl "https://pos-api.mellavo.de/v1/hotel/bookings/<id>" \
  -H "Authorization: Bearer k1_live_…"
Response 200 application/json
Response fields (34)
FieldTypeDescription
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
Example

Example values generated from the 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

Parameters
NameInTypeDescription
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_…"
Response 200 application/json
Response fields (12)
FieldTypeDescription
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
Example

Example values generated from the 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.

Parameters
NameInTypeDescription
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_…"
Response 200 application/json
Response fields (33)
FieldTypeDescription
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
Example

Example values generated from the 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.

Parameters
NameInTypeDescription
confirm_overlapoptionalquerystringtrue = trotz Überschneidung exportieren
location_idoptionalquerystringnur dieser Standort (Schlüssel mit Standort-Bindung: nur der eigene)
toRequiredquerystringYYYY-MM-DD (gleiches Jahr)
fromRequiredquerystringYYYY-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_…"
Response 200

A file instead of JSON (PDF of the archived invoice).

Webhooks

Webhooks: mellavoPOS calls you.

Create subscriptions in the back office under API access → Webhooks, up to 10 per business. The target is always an https:// address; the secret whsec_… is shown only once.

Events

order.paidA receipt was paid, including after an offline sync.
order.voidedA receipt was voided; data is the void receipt.
invoice.createdAn invoice or credit note was issued (no drafts).
customer.createdA customer was created, for example in the back office, via the API or in the shop.
booking.createdA guesthouse or hotel booking was created.
booking.updatedA booking was changed, moved, checked in or checked out.

webhook.ping is the test event. You trigger it with “Send test”; it is delivered once and does not count towards disabling.

Headers

  • KassaOne-EventType of event
  • KassaOne-DeliveryID of this delivery
  • KassaOne-SignatureTimestamp and HMAC-SHA256 over <t>.<raw body>
Headers
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

Envelope

POST with Content-Type: application/json. data has the same shape as the matching GET /v1/… response. The id stays the same per event so you can spot duplicate deliveries.

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
      }
    ]
  }
}

Verify the signature

Recompute the signature over the unmodified body, compare in constant time and reject timestamps older than 5 minutes.

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);
// });

Delivery and retries

  • A delivery succeeds with an HTTP 2xx response within 10 seconds.
  • Otherwise it is retried after 30 s, 2 min, 10 min, 30 min, 2 h, 6 h and 12 h: 8 attempts over about 21 hours.
  • Redirects (3xx) are not followed and count as failures.
  • After 5 deliveries in a row that finally fail, mellavoPOS disables the subscription and emails the owners.
  • The delivery log (30 days) shows status and duration and lets you resend single deliveries.

Security & limits

Security and limits.

  • Shown only once

    Token and webhook secret appear only right after creation. The key is stored only as HMAC-SHA256 with a server secret that is not in the database.

  • Scopes and location

    Every route requires its scope. A key bound to a location sees that location’s receipts, bookings and stock, no others.

  • IP allowlist and expiry

    Allowed addresses, expiry date, revoking and rotating per key. Failed attempts with a known key are recorded in the audit log.

  • Separate businesses

    The business comes only from the key, and every query is filtered to it. IDs from another business return 404.

  • What the API never returns

    No TSE credentials or secrets, no password or PIN hashes, no tokens, no internal notes and no payment provider references.

  • Webhooks only go outside

    Targets only via https, no local or private addresses; the target address is checked again when sending.

How we secure the rest of mellavoPOS is described under Security.

Version

Version v1

All routes live under /v1. New fields and endpoints may be added; your code should ignore unknown fields. Anything that breaks existing fields would come under a new version.

The API is new and has so far only run in our own tests and on the demo server, not in real operation.

  • v120 Nov 2026v1 released: API keys, 17 endpoints, webhooks.

Building an integration?

Tell us what you have in mind. We will tell you which data the API delivers today and what is still missing.