Skip to content
HALOWERK

Blockchain Data

coinwerk / invoice proration

Coinwerk: Prorate a recurring invoice for covered service days. Round the final charge up. 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-proration

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
period_unitsstringYes
covered_daysstringYes
period_daysstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "period_units",
    "covered_days",
    "period_days"
  ],
  "properties": {
    "period_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "covered_days": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "period_days": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "period_units": "101",
  "covered_days": "2",
  "period_days": "3"
}

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