# Twilio consult items
## Active Numbers
### 1. How to get monthly billing details per number
We want to calculate our Active Phone Number billing info, but the current possible flow seems be like:
1. Get the **country**(from lookup API or console UI) and **type**(tollfree/mobile/local from console UI) of a number

2. Compare to the pricing CSV file from [Twilio website](https://console.twilio.com/us1/billing/manage-billing/pricing?frameUrl=%2Fconsole%2Fbilling%2Fpricing%3Fx-target-region%3Dus1)

However, we have some active numbers have no corresponding pricing info in the file but still got charged with an unexpected price:
| Number | Country | Type |
| ------------- | ------- | ------ |
| +525549998882 | MX | Mobile |
| +525549998751 | MX | Mobile |
| +33644607939 | FR | Mobile |
| +601130116837 | MY | Mobile |
| +601130116870 | MY | Mobile |
| +601130116721 | MY | Mobile |
We are wondering if we can simply get the monthly price per number from API or at least got the newest version of pricing CSV file?
### 2. How to get message service id from API
After getting the price per number, we also want to get the message service ID of the number to recognize who owns it.
We found that message service are shown in Active Number console UI:

But neither Lookup API nor unreleased Active Number API can get the service, we are wondering if there exist a robust way to get the information without check it in console UI
- response of Lookup API
```
{
"caller_name": null,
"carrier": {
"error_code": null,
"mobile_country_code": "310",
"mobile_network_code": "456",
"name": "verizon",
"type": "mobile"
},
"country_code": "US",
"national_format": "(510) 867-5310",
"phone_number": "+15108675310",
"add_ons": null,
"url": "https://lookups.twilio.com/v1/PhoneNumbers/+15108675310"
}
```
- response of Active Number API
```
{
"items": [
{
"phone_number": "+18559728742",
"url": "https://preview.twilio.com/Numbers/ActiveNumbers/PNyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
"capabilities": {
"voice": {
"inbound_connectivity": true,
"outbound_connectivity": true,
"e911": false,
"fax": true,
"calls_per_second": 20,
"concurrent_calls_limit": 40,
"long_record_length": 30,
"inbound_called_dtmf": true,
"inbound_caller_dtmf": true,
"sip_trunking": true,
"inbound_caller_id_preservation": "international",
"inbound_reachability": "global"
},
"sms": {
"inbound_connectivity": true,
"outbound_connectivity": true,
"gsm7": true,
"ucs2": true,
"inbound_sender_id_preservation": "international",
"inbound_reachability": "global",
"inbound_mps": -1
},
"mms": null
},
"account_sid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"sid": "PNyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
"regulatory": {
"address_requirements": "none"
},
"configuration": {
"friendly_name": "(855) 972-8742",
"status_callback_url": "",
"status_callback_method": "POST",
"voice": {
"url": "",
"method": "POST",
"fallback_url": null,
"fallback_method": "POST",
"application_sid": null,
"trunk_sid": null,
"emergency_address_sid": null,
"emergency_status": "Inactive",
"caller_id_lookup": false
},
"sms": {
"url": "",
"method": "POST",
"fallback_url": "",
"fallback_method": "POST",
"application_sid": ""
}
},
"type": "tollfree",
"lifecycle": "generally-available",
"geography": {
"iso_country": "US",
"lata": null,
"rate_center": null,
"latitude": null,
"longitude": null,
"region": null,
"locality": null,
"postal_code": null
}
}
],
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://preview.twilio.com/Numbers/ActiveNumbers&PageSize=50&Page=0",
"previous_page_url": null,
"url": "https://preview.twilio.com/Numbers/ActiveNumbers&PageSize=50&Page=0",
"next_page_url": null,
"key": "items"
}
}
```
### 3. Can we get the Active Number API early access
## Message carrier fee
We got SMS carrier fee in our invoice details, but from [message resource API](https://www.twilio.com/docs/sms/api/message-resource) we can only get the price per message without the carrier fee.
We have found the carrier fee billing info in console, but the information can't let us map the fee to corresponding message log.

We are wondering is there any method to get the carrier fee per message? API would be better.