← Market

Inventory Planning First Shortage

Inventory shortage projection finds the first day on which cumulative requirements exceed available stock and arrivals. Use it when an agent needs an exception date in a replenishment schedule.

POST https://rechen.halowerk.com/v1/inventory-planning-first-shortage

0.005 USDC on Base · payTo 0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.005 USDC · payTo 0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E · via cdp · settles direct
{
  "demand": [
    4,
    8,
    5,
    9,
    7,
    2
  ],
  "initial": 12,
  "receipts": [
    0,
    0,
    10,
    0,
    0,
    4
  ]
}
{
  "data": {
    "ending_balance": -9,
    "first_day": 4,
    "short_on_first": 4
  },
  "limitations": "One SKU. Days are consecutive and one-based. Receipts precede demand. Negative balances carry forward unless lost sales are specified.",
  "measured_at": "2026-11-23T17:17:29.796Z",
  "source": {
    "reference": "Buyer-supplied inventory ledger",
    "retrieved_at": "2026-11-23T17:17:29.796Z"
  }
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust scorepending / 100 · breakdown
Probe uptime (30d)— over 0 probes · daily
Avg 402 latency— ms
Paid calls (30d, on-chain)0 calls · 0 buyers

How to call

POST https://rechen.halowerk.com/v1/inventory-planning-first-shortage · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "initial": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "demand": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 366,
      "minItems": 1
    },
    "receipts": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000000
      },
      "maxItems": 366,
      "minItems": 1
    }
  },
  "required": [
    "initial",
    "demand",
    "receipts"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://rechen.halowerk.com/v1/inventory-planning-first-shortage' \
  -H 'content-type: application/json' -d '{"initial":12,"demand":[4,8,5,9,7,2],"receipts":[0,0,10,0,0,4]}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)