Skip to content
HALOWERK

Blockchain Data

coinwerk / invoice retention

Coinwerk: Calculate the amount released for payment after rounding contractual retention upward. 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-retention

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
invoice_unitsstringYes
retention_bpsstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "invoice_units",
    "retention_bps"
  ],
  "properties": {
    "invoice_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "retention_bps": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,3}|10000)(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "invoice_units": "101",
  "retention_bps": "1000"
}

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 โ†’