Skip to content
Fourohtwo

finops.halowerk.com/v1/tiered-charge-boundary-transcript

From original quantity and ordered tariff tiers, compute volume or graduated band allocations, flat fees and total; quantity zero bills the first flat fee. Verify supplied totals and each tier claim. Supplied-data reconstruction only; no actual invoice/account validity assertion. A schema-valid unknown is a successful result at the same fixed price. Invalid input raises native HTTP400 before settl

BaseAnswering
POSThttps://finops.halowerk.com/v1/tiered-charge-boundary-transcript

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://finops.halowerk.com/v1/tiered-charge-boundary-transcript", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"mode":"volume","quantity":5,"report":{"rows":[{"charge_minor":4500,"quantity":5},{"charge_minor":0,"quantity":0},{"charge_minor":0,"quantity":0}],"total_minor":4500},"tiers":[{"flat_minor":1000,"unit_minor":700,"up_to":5},{"flat_minor":2000,"unit_minor":650,"up_to":10},{"flat_minor":3000,"unit_minor":600,"up_to":null}]}),
});
console.log(await res.json());

Example input

{
  "mode": "volume",
  "quantity": 5,
  "report": {
    "rows": [
      {
        "charge_minor": 4500,
        "quantity": 5
      },
      {
        "charge_minor": 0,
        "quantity": 0
      },
      {
        "charge_minor": 0,
        "quantity": 0
      }
    ],
    "total_minor": 4500
  },
  "tiers": [
    {
      "flat_minor": 1000,
      "unit_minor": 700,
      "up_to": 5
    },
    {
      "flat_minor": 2000,
      "unit_minor": 650,
      "up_to": 10
    },
    {
      "flat_minor": 3000,
      "unit_minor": 600,
      "up_to": null
    }
  ]
}