{
  "x402Version": 2,
  "id": 15305,
  "slug": "15305",
  "resource": "https://fracht.halowerk.com/v1/locode-resolve",
  "description": "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. ",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "locode": "DEHAM",
            "records": [
              {
                "coordinates": "5333N 01000E",
                "functions": "12345---",
                "locode": "DEHAM",
                "name": "Hamburg",
                "subdivision": "HH"
              }
            ],
            "source": {
              "published_at": "2026-07-01T00:00:00Z",
              "title": "UN/LOCODE",
              "url": "https://unece.org/trade/uncefact/unlocode"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "locode": {
                    "pattern": "^[A-Za-z]{2}[A-Za-z0-9]{3}$",
                    "type": "string"
                  },
                  "records": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "coordinates": {
                          "description": "",
                          "maxLength": 20,
                          "minLength": 0,
                          "type": "string"
                        },
                        "functions": {
                          "description": "",
                          "maxLength": 20,
                          "minLength": 0,
                          "type": "string"
                        },
                        "locode": {
                          "description": "",
                          "maxLength": 5,
                          "minLength": 5,
                          "type": "string"
                        },
                        "name": {
                          "description": "",
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        },
                        "subdivision": {
                          "description": "",
                          "maxLength": 20,
                          "minLength": 0,
                          "type": "string"
                        }
                      },
                      "required": [
                        "locode",
                        "name",
                        "subdivision",
                        "functions",
                        "coordinates"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  "source": {
                    "additionalProperties": false,
                    "properties": {
                      "published_at": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "title": {
                        "description": "",
                        "maxLength": 300,
                        "minLength": 3,
                        "type": "string"
                      },
                      "url": {
                        "format": "uri",
                        "type": "string"
                      }
                    },
                    "required": [
                      "url",
                      "published_at",
                      "title"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "locode",
                  "records",
                  "source"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "fracht.halowerk.com",
  "lastUpdated": "2026-09-14T20:02:51.271Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-14T20:02:50.823Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "fracht.halowerk.com",
    "manifest_name": "fracht.halowerk.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}