Get billing-relevant chat count per channel
GET
/openapi/reporting/billingchatsperchannel
const url = 'https://open-api.replyco.com/openapi/reporting/billingchatsperchannel';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://open-api.replyco.com/openapi/reporting/billingchatsperchannel \ --header 'Authorization: Bearer <token>'Returns live chat conversation counts per channel for billing purposes.
Data provided:
- Billable chats per channel
- Channel-specific usage
- Period comparison
- Volume tracking
Use cases:
- Chat-based billing
- Invoice generation
- Cost tracking
- Usage monitoring
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”from
string format: date-time
Start date for billing period (optional)
to
string format: date-time
End date for billing period (optional)
Responses
Section titled “Responses”Returns billing chats per channel
Invalid date parameters
User is not authenticated or authorized