Get Billing Data
List all billing data for a user id
GET or POST Request
Get a JSON object of all billing data for a user id
HTTP Post Variables Supported
Argument
Required
Type
user_id
yes
5 digit user_id
start_date
yes
2025-05-03
end_date
yes
2025-05-05
key
yes
api key
curl https://v1.api19.com/account/billing/data \
-d 'key=api_token' \
-d 'user_id=20000' \
-d 'start_date=2025-05-03' \
-d 'end_date=2025-05-04'{
"status": "ok",
"call_data": [
{
"call_type": "did_usa",
"minutes": "7.6000000",
"cost": "0.0380000"
},
{
"call_type": "usa_term",
"minutes": "0.3000000",
"cost": "0.0030000"
}
],
"msg_data": [
{
"msg_type": "sms",
"direction": "in",
"service_type": "longcode",
"count": "22",
"cost": "0.0550000"
},
{
"msg_type": "sms",
"direction": "in",
"service_type": "tollfree",
"count": "3",
"cost": "0.0075000"
}
],
"service_data": [
{
"type": "local_number",
"model_type": "mrc",
"count": "101",
"amount": "-101.000000"
},
{
"type": "local_number",
"model_type": "nrc",
"count": "5",
"amount": "-5.000000"
},
{
"type": "tollfree_number",
"model_type": "mrc",
"count": "3",
"amount": "-3.000000"
},
{
"type": "registered_agent",
"model_type": "one-time",
"count": "7",
"amount": "-315.000000"
}
]
}Last updated