Skip to content
HALOWERK

Blockchain Data

coinwerk / invoice late charge

Coinwerk: Compute capped simple overdue interest after grace days, ACT/365, rounded down once. Uses supplied records only. USDC amounts are integer micro-USDC strings; rates labeled bps are basis points.

POST https://kette.halowerk.com/v1/coinwerk/invoice-late-charge

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
principal_unitsstringYes
annual_bpsstringYes
overdue_daysstringYes
grace_daysstringYes
cap_unitsstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "principal_units",
    "annual_bps",
    "overdue_days",
    "grace_days",
    "cap_units"
  ],
  "properties": {
    "principal_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "annual_bps": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "overdue_days": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "grace_days": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "cap_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "principal_units": "365000",
  "annual_bps": "1000",
  "overdue_days": "12",
  "grace_days": "2",
  "cap_units": "2000"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’