GET
Call Billing Margin

Authorizations

Authorization
string
header
required

Interactive user session: the login JWT, sent as Authorization: Bearer <token>.

Response

Successful Response

today
MarginWindow ┬╖ object
required

One window (today / month-to-date) of the ledger.

telephony_usd and failover_usd are OPERATOR-ONLY BREAKOUTS OF cogs_usd, both sitting below that line and neither added on top of it: the carrier pass-through and the external-provider cost of a partially failed-over call are each already inside the total. Neither is, or has ever been, part of revenue_usd тАФ the retail charge is minutes x price and nothing else, which test_revenue_is_byte_identical_whatever_the_failover_slice_is pins at both the write path and here.

month
MarginWindow ┬╖ object
required

One window (today / month-to-date) of the ledger.

telephony_usd and failover_usd are OPERATOR-ONLY BREAKOUTS OF cogs_usd, both sitting below that line and neither added on top of it: the carrier pass-through and the external-provider cost of a partially failed-over call are each already inside the total. Neither is, or has ever been, part of revenue_usd тАФ the retail charge is minutes x price and nothing else, which test_revenue_is_byte_identical_whatever_the_failover_slice_is pins at both the write path and here.

price_per_min_usd
number
required
avg_call_minutes
number
required
revenue_per_call_usd
number
required
marginal_cogs_per_call_usd
number
required
contribution_per_call_usd
number
required
fixed_daily_cost_usd
number
required
fixed_daily_gpu_usd
number
required
fixed_daily_aws_usd
number
required
aws_monthly_usd
number
required
aws_cost_basis
string
required
per_org
OrgMargin ┬╖ object[]
required
fixed_daily_gpu_source
string
default:unmeasured
break_even_calls_per_day
number | null
cogs_unallocated_planes
UnallocatedPlane ┬╖ object[]