VocalDocscontracts 1.65.0

CostReport

The estimated cost of the Calls of a window, rated from the price list at read time: the total, the means per Call and per minute, and the share of each stage. An estimate from list prices, not a bill.

An object with 19 fields.

Fields

FieldTypeRequiredDescription
by_agent_versionarray of CostByAgentVersionnoThe charge per billable minute by Agent version. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown.
by_lanearray of CostByLanenoThe amount by lane. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown.
by_providerarray of CostByProvidernoThe amount by Provider or party, largest first. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown.
by_stagearray of CostReportStageyesOne item per cost stage, in the order of CostStage; 0 for a stage with no line.
callsintegeryesEnded Calls in the window.
currency"USD"yes
estimatetrueyesAlways true: the figures are rated from list prices at read time and are not a bill.
fromstringyesThe start of the window, RFC 3339.
granularityAnalyticsGranularitynoThe rollup rows read. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown.
groupsarray of CostGroupnoOne item per group of group_by; empty when the read named none. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown.
mean_per_call_microsnumber or nullyesThe mean estimate per rated Call in micro-USD; null when no Call was rated.
mean_per_minute_microsnumber or nullyesThe rated total per Call minute of the rated Calls in micro-USD; null when no Call was rated or none had a duration.
object"cost_report"yes
per_outcomeCostPerOutcome or nullnoCost per Outcome value; null when no counted Call has a rollup Outcome value. Added in 1.57.0 (roadmap slice 2.11); absent from an older api, which a reader treats as unknown.
price_list_versionstringyesThe version of the price list the estimate used; a date in 1.5.0.
rated_callsintegeryesEnded Calls whose estimate is complete (every line priced); only these count towards the amounts.
tostringyesThe end of the window, RFC 3339.
total_microsintegeryesThe rated total of the rated_calls in whole micro-USD.
windowAnalyticsWindowyes

Used by

The operations whose parameters, request body or responses name this shape directly.