Zum Inhalt
HALOWERK

Frachtwerk

locode resolve

Resolves a UN/LOCODE against a supplied official code-list record. Missing facts are returned as null and named in unavailable_fields where applicable. Derived values disclose their method; source-backed values disclose source, time window and age.

POST https://fracht.halowerk.com/v1/locode-resolve

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
locodestringJa
recordsarrayJa
sourceobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "locode",
    "records",
    "source"
  ],
  "additionalProperties": false,
  "properties": {
    "locode": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}[A-Za-z0-9]{3}$"
    },
    "records": {
      "type": "array",
      "maxItems": 10000,
      "items": {
        "type": "object",
        "required": [
          "locode",
          "name",
          "subdivision",
          "functions",
          "coordinates"
        ],
        "additionalProperties": false,
        "properties": {
          "locode": {
            "type": "string",
            "minLength": 5,
            "maxLength": 5,
            "description": ""
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "description": ""
          },
          "subdivision": {
            "type": "string",
            "minLength": 0,
            "maxLength": 20,
            "description": ""
          },
          "functions": {
            "type": "string",
            "minLength": 0,
            "maxLength": 20,
            "description": ""
          },
          "coordinates": {
            "type": "string",
            "minLength": 0,
            "maxLength": 20,
            "description": ""
          }
        }
      }
    },
    "source": {
      "type": "object",
      "required": [
        "url",
        "published_at",
        "title"
      ],
      "additionalProperties": false,
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "published_at": {
          "type": "string",
          "format": "date-time"
        },
        "title": {
          "type": "string",
          "minLength": 3,
          "maxLength": 300,
          "description": ""
        }
      }
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "locode": "DEHAM",
  "records": [
    {
      "locode": "DEHAM",
      "name": "Hamburg",
      "subdivision": "HH",
      "functions": "12345---",
      "coordinates": "5333N 01000E"
    }
  ],
  "source": {
    "url": "https://unece.org/trade/uncefact/unlocode",
    "published_at": "2026-07-01T00:00:00Z",
    "title": "UN/LOCODE"
  }
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://fracht.halowerk.com/v1/locode-resolve/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

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 →