Zum Inhalt
HALOWERK

Grundpreiswerk

unit price

Calculate price per kg or litre from your price and quantity or an available EAN pack size. Example: price_eur 1.29, quantity 4x125g. This is a calculation, not an observed store quote.

POST https://grundpreis.halowerk.com/v1/unit-price

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
price_eurnumberJa
quantitystringNeinPack quantity text, e.g. "500 g", "6 x 0,33 l".
eanstringNeinAlternative to quantity: pack size from Open Food Facts.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "price_eur"
  ],
  "properties": {
    "price_eur": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 100000
    },
    "quantity": {
      "type": "string",
      "minLength": 1,
      "maxLength": 40,
      "description": "Pack quantity text, e.g. \"500 g\", \"6 x 0,33 l\"."
    },
    "ean": {
      "type": "string",
      "minLength": 8,
      "maxLength": 14,
      "description": "Alternative to quantity: pack size from Open Food Facts."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "price_eur": 2.49,
  "quantity": "6 x 0,33 l"
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →