← Market

Payment Allocation

Allocate a payment to several debts under §§ 366, 367 BGB: debtor designation, else due first, least security, most burdensome, oldest, then pro rata; inside each debt costs, interest, principal.

POST https://rechen.halowerk.com/v1/payment-allocation

0.002 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.002 USDC · payTo 0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E · via cdp · settles direct
{
  "debts": [
    {
      "costs": 10,
      "id": "D1",
      "interest": 20,
      "principal": 200,
      "security_rank": 0
    },
    {
      "costs": 5,
      "id": "D2",
      "interest": 15,
      "principal": 100,
      "security_rank": 2
    }
  ],
  "payment_amount": 300
}
{
  "limitations": [
    "Information computed by formula from the stated data and conventions; not legal, tax or financial advice.",
    "Results depend on the inputs supplied (dates of default, amounts, agreements); these are not verified.",
    "Security and burden ranks are the caller’s legal assessment; a designation within one debt deviating from § 367(1) allows the creditor to refuse the payment (§ 367(2))."
  ],
  "result": {
    "allocations": [
      {
        "basis": "statutory order (§ 366(2) BGB)",
        "costs": 10,
        "id": "D1",
        "interest": 20,
        "order_within_debt": "costs → interest → principal (§ 367(1) BGB)",
        "principal": 200,
        "rank": 1,
        "remaining": {
          "costs": 0,
          "interest": 0,
          "principal": 0,
          "total": 0
        },
        "shares_rank_proportionally": false,
        "total": 230
      },
      {
        "basis": "statutory order (§ 366(2) BGB)",
        "costs": 5,
        "id": "D2",
        "interest": 15,
        "order_within_debt": "costs → interest → principal (§ 367(1) BGB)",
        "principal": 50,
        "rank": 2,
        "remaining": {
          "costs": 0,
          "interest": 0,
          "principal": 50,
          "total": 50
        },
        "shares_rank_proportionally": false,
        "total": 70
      }
    ],
    "payment_amount": 300,
    "reasons": [
      "§ 366(2) BGB: D1 before D2: D1 offers the creditor less security (0 < 2).",
      "Debts without due or due_date are treated as due."
    ],
    "unapplied": 0
  },
  "service": "payment-allocation",
  "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://rechen.halowerk.com/v1/payment-allocation · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "payment_amount",
    "debts"
  ],
  "properties": {
    "payment_amount": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1000000000000
    },
    "payment_date": {
      "type": "string",
      "format": "date"
    },
    "designation": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "maxLength": 64
      }
    },
    "debts": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "principal"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "principal": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000000
          },
          "interest": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000000,
            "default": 0
          },
          "costs": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000000,
            "default": 0
          },
          "due": {
            "type": "boolean"
          },
          "due_date": {
            "type": "string",
            "format": "date"
          },
          "security_rank": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "default": 0
          },
          "burden_rank": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "default": 0
          },
          "created": {
            "type": "string",
            "format": "date"
          },
          "consumer_credit": {
            "type": "boolean",
            "default": false
          },
          "real_estate_consumer_loan": {
            "type": "boolean",
            "default": false
          }
        }
      }
    }
  }
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://rechen.halowerk.com/v1/payment-allocation' \
  -H 'content-type: application/json' -d '{"payment_amount":300,"debts":[{"id":"D1","principal":200,"interest":20,"costs":10,"security_rank":0},{"id":"D2","principal":100,"interest":15,"costs":5,"security_rank":2}]}'

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

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