← Back to directory

Allocate a payment to several debts under §§ 366, 367 BGB: debtor designation, e...

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

Overview

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.

Protocol x402 (POST)
Price $0.0020
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider rechen
Source bazaar
Indexed 2026-11-21 05:10:45

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "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 }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "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" }, "type": "json" }