Skip to content
HALOWERK

Blockchain Data

coinwerk / billing volume discount

Coinwerk: Apply a whole-volume discount only after an invoice reaches its eligibility threshold. Uses supplied records only. USDC amounts are integer micro-USDC strings; rates labeled bps are basis points.

POST https://kette.halowerk.com/v1/coinwerk/billing-volume-discount

Inputs

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

Open original schema

Published input example

{
  "subtotal_units": "2000",
  "threshold_units": "1500",
  "discount_bps": "750"
}

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