# Fracht Leg-Split Validator

> Fracht Leg-Split Validator is a paid API for AI agents from fracht.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Validates and orders a sequence of multimodal shipment legs, returning derived metadata with sourcing disclosures and flagging any missing fields as null.

## Facts

- Endpoint: POST https://fracht.halowerk.com/v1/leg-split
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fracht-leg-split-validator-bedf2476
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_re4dpuWWV1n_EPQu06d7s

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fracht-leg-split-validator-bedf2476 -d '<json body>'
```

Example prompt: Can you validate and order these 3 shipment legs for me: leg 1 from Shanghai (CN) to Singapore (SG) by sea at 2100 km, leg 2 from Singapore (SG) to Frankfurt (DE) by air at 9900 km, and leg 3 from Frankfurt (DE) to Munich (DE) by road at 310 km? Flag any missing or unavailable fields.

## When to prefer this

Choose this endpoint when you have a pre-specified list of multimodal shipment legs and need to validate their completeness, order, and field availability before downstream processing. It is ideal for freight brokers, logistics agents, or supply chain tools that need structured validation with transparent provenance (derived vs source-backed). Prefer this over general routing or distance-calculation endpoints when the legs are already defined and the goal is verification and gap-detection rather than route planning.

## Known failure modes

- Missing required leg fields (sequence, from, to, mode, distance_km) cause validation rejection
- Sequence numbers out of range (below 1 or above 1000) trigger schema errors
- Distance values exceeding maximum threshold are rejected
- Legs array with more than 100 items is rejected
- Malformed or ambiguous location strings may result in null-valued fields
- Duplicate or non-contiguous sequence numbers may cause ordering errors

## How this service works

Validates and orders caller-supplied multimodal shipment legs. 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. 

## Output

Returns a validated and ordered array of shipment legs with derived values annotated with their derivation method, source-backed values annotated with source, time window, and age, and any missing or unresolvable fields listed as null with their names included in an unavailable_fields array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "legs": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "sequence",
     "from",
     "to",
     "mode",
     "distance_km"
    ],
    "properties": {
     "to": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1,
      "description": ""
     },
     "from": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1,
      "description": ""
     },
     "mode": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1,
      "description": ""
     },
     "sequence": {
      "type": "integer",
      "maximum": 1000,
      "minimum": 1,
      "description": ""
     },
     "distance_km": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": 0,
      "description": ""
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fracht-leg-split-validator-bedf2476/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fracht.halowerk.com](https://www.zero.xyz/host/fracht.halowerk.com/llms.txt)
