← Market

Discount Run Plan

Plan a payment run: pay invoices whose cash discount would otherwise expire (best annualized return first), overdue and due invoices, defer the rest, within a budget. Each invoice carries terms as fields or as text (same parser as payment-terms-parse).

POST https://daten.halowerk.com/v1/discount-run-plan

0.003 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.003 USDC · payTo 0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E · via cdp · settles direct
{
  "budget": "5000.00",
  "invoices": [
    {
      "amount": "1000.00",
      "id": "R-1",
      "invoice_date": "2026-11-02",
      "terms_text": "2 % Skonto innerhalb 10 Tagen, netto 30 Tage"
    }
  ],
  "next_run_date": "2026-11-17",
  "run_date": "2026-11-10"
}
{
  "limitations": [
    "Information by formula; contractual details (receipt vs. initiation of payment, partial payments) are not evaluated."
  ],
  "result": {
    "arrival_date": "2026-11-11",
    "deferred": [],
    "next_run_date": "2026-11-17",
    "not_paid_budget": [],
    "payments": [
      {
        "annualized_return_percent": 37.24,
        "deadline": "2026-11-12",
        "discount_amount": "20.00",
        "discount_percent": 2,
        "gross_amount": "1000.00",
        "id": "R-1",
        "pay_amount": "980.00",
        "reason": "capture_discount"
      }
    ],
    "run_date": "2026-11-10",
    "totals": {
      "budget_remaining": "4020.00",
      "discount_captured": "20.00",
      "discount_lost_due_to_budget": "0.00",
      "pay_total": "980.00",
      "payments": 1
    }
  },
  "service": "discount-run-plan",
  "status": "success"
}

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://daten.halowerk.com/v1/discount-run-plan · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_date",
    "invoices"
  ],
  "properties": {
    "run_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "next_run_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "lead_days": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "default": 1
    },
    "budget": {
      "type": "string",
      "pattern": "^\\d{1,12}(\\.\\d{1,2})?$"
    },
    "priority": {
      "type": "string",
      "enum": [
        "discount_first",
        "due_first"
      ],
      "default": "discount_first"
    },
    "invoices": {
      "type": "array",
      "minItems": 1,
      "maxItems": 1000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "amount",
          "invoice_date"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "amount": {
            "type": "string",
            "pattern": "^\\d{1,12}(\\.\\d{1,2})?$"
          },
          "invoice_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "terms_text": {
            "type": "string",
            "maxLength": 500
          },
          "discount_percent": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 50
          },
          "discount_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 365
          },
          "net_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 365
          },
          "due_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        }
      }
    }
  }
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://daten.halowerk.com/v1/discount-run-plan' \
  -H 'content-type: application/json' -d '{"run_date":"2026-11-10","next_run_date":"2026-11-17","budget":"5000.00","invoices":[{"id":"R-1","amount":"1000.00","invoice_date":"2026-11-02","terms_text":"2 % Skonto innerhalb 10 Tagen, netto 30 Tage"}]}'

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

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