Sessions

Get session cost

Returns the finalized cost of a released session as an exact amount in US dollars (e.g. 0.031905), suitable for precise billing passthrough.

get/v1/sessions/{id}/cost

Path parameters

idstring uuid required

Response

Session cost breakdown in US dollars

currency'usd' required

Currency used for the cost values

idstring uuid required

Session ID

totalCostnumber required

Exact total session cost in US dollars (e.g. 0.031905), with no rounding to whole cents. Rounded only to micro-dollar precision (6 decimal places) for precise billing passthrough.

unit'dollar' required

Cost unit. Values are expressed in US dollars.

Changes

Changed in 2 of the 54 revisions of this API.112

  • 3f5e57c85973111See the full diff
    • the totalCost response's property type/format changed from integer/ to number/ for status 200

      response-property-type-changed

    • added the new dollar enum value to the unit response property for the response status 200

      response-property-enum-value-added

    • removed the cent enum value from the unit response property for the response status 200

      response-property-enum-value-removed

    • endpoint added

      endpoint-added