Skip to content
HALOWERK

Blockchain Data

coinwerk / invoice writeoff

Coinwerk: Return the residual eligible for write-off under both absolute and relative tolerance caps. 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-writeoff

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
original_unitsstringYes
remaining_unitsstringYes
absolute_limit_unitsstringYes
relative_bpsstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "original_units",
    "remaining_units",
    "absolute_limit_units",
    "relative_bps"
  ],
  "properties": {
    "original_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "remaining_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "absolute_limit_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "relative_bps": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,3}|10000)(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "original_units": "10000",
  "remaining_units": "20",
  "absolute_limit_units": "25",
  "relative_bps": "25"
}

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