Skip to content
HALOWERK

Frachtwerk

shipment lot expiry fefo plan

Return an expiry-first lot allocation after excluding lots expired before a supplied shipment date.

POST https://fracht.halowerk.com/v1/shipment-lot-expiry-fefo-plan

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
ship_datestringYes
requiredintegerYes
lotsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "ship_date": {
      "type": "string",
      "maxLength": 10,
      "minLength": 1
    },
    "required": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "lots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 60,
            "minLength": 1
          },
          "expiry": {
            "type": "string",
            "maxLength": 10,
            "minLength": 1
          },
          "available": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          }
        },
        "required": [
          "id",
          "expiry",
          "available"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "ship_date",
    "required",
    "lots"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "ship_date": "2026-11-17",
  "required": 80,
  "lots": [
    {
      "id": "LOT-1",
      "expiry": "2026-11-30",
      "available": 50
    },
    {
      "id": "LOT-2",
      "expiry": "2026-12-31",
      "available": 100
    },
    {
      "id": "LOT-0",
      "expiry": "2026-11-16",
      "available": 20
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’