Skip to main content

Usage Tracking

📊 Track Customer Usage​

Retrieve usage statistics for an individual customer to monitor transcription activity, costs, and breakdowns by language, token, or time period.


📥 Get Customer Usage​

URL: GET /api/v3/reseller/customer/{id}/usage

Headers​

ParameterDescription
x-zoom-s2t-keyScriptix Reseller API Token

Path Parameters​

NameDescription
idID of the customer

Query Parameters​

NameTypeDefaultDescription
limitinteger10(Optional) Number of records to return (max: 1000)
offsetinteger0(Optional) Pagination offset
viewstringinvoiceView type: invoice, day, week, month, or year
split_bystring-(Optional) Split by: language, token, subscription, or period

✅ Response Codes​

Status CodeDescription
200Usage overview returned successfully
400Bad request – check query parameters
401Unauthorized – missing or invalid token
403Forbidden – token lacks permission
404Not found – customer ID doesn't exist
500Internal error – contact support if persistent

📦 Example: Split by Week​

{
"result": [
{
"units_used": 5926,
"usage_period_start": "2020-12-22",
"usage_period_end": "2020-12-24",
"language": "fr-fr",
"token_name": "TV",
"subscription_id": 1414
}
],
"count": 1,
"total_results": 1
}

📦 Example: Invoice View​

{
"result": [
{
"usage_period_start": "2020-12-01",
"usage_period_end": "2021-01-01",
"units_used": 840000,
"cost": 10000.01,
"subscription_id": 1182
}
],
"count": 1,
"total_results": 1
}

🧠 Use Cases​

  • Analyze monthly or weekly customer usage
  • Track costs and subscription performance
  • Split usage data by token or language for billing granularity

📘 Next Steps​