Skip to content
Fourohtwo

finops.halowerk.com/v1/billed-basis-proration-transcript

From the original billed flat price and chronological unbilled price changes, reconstruct flexible credit basis, exact rational unused credit, new-price debit and net; verify supplied claims. Quantity one, seconds, no tax/discount/real invoice validity or Stripe-cent rounding assertion. A schema-valid unknown is a successful result at the same fixed price. Invalid input raises native HTTP400 befor

BaseAnswering
POSThttps://finops.halowerk.com/v1/billed-basis-proration-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/billed-basis-proration-transcript", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"change_at":20,"new_price_minor":1000,"original_billed_price_minor":2000,"period_end":30,"period_start":0,"report":{"basis_minor":2000,"credit":{"d":"3","n":"-2000"},"current_minor":3000,"debit":{"d":"3","n":"1000"},"net":{"d":"3","n":"-1000"}},"unbilled_price_changes":[{"at":5,"price_minor":3000}]}),
});
console.log(await res.json());

Example input

{
  "change_at": 20,
  "new_price_minor": 1000,
  "original_billed_price_minor": 2000,
  "period_end": 30,
  "period_start": 0,
  "report": {
    "basis_minor": 2000,
    "credit": {
      "d": "3",
      "n": "-2000"
    },
    "current_minor": 3000,
    "debit": {
      "d": "3",
      "n": "1000"
    },
    "net": {
      "d": "3",
      "n": "-1000"
    }
  },
  "unbilled_price_changes": [
    {
      "at": 5,
      "price_minor": 3000
    }
  ]
}