did_inventory
Â
Description
List the inventory of all DIDs in the system, can be filtered by status, country and number_type.
Â
Parameters
status country number_type
Â
Request
curl -X POST \ -H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \ -H "Content-Type: application/json" \ -d '{"status":"allocated","country":"US","number_type":"geographic"}' \ -k https://your.domain.com/api/users/did_inventory
Â
Response
{ Â "status": "success", Â "results": [ Â Â Â { Â Â Â Â Â "cust_max_channels": 100, Â Â Â Â Â "notify_client_when_allocate": true, Â Â Â Â Â "blocksize": null, Â Â Â Â Â "tertiary_destination": null, Â Â Â Â Â "carrier_monthly_fee": null, Â Â Â Â Â "primary_route": "device", Â Â Â Â Â "primary_destination": "2842980251XlJPbB", Â Â Â Â Â "monthly_fee": "0.500", Â Â Â Â Â "line_type": null, Â Â Â Â Â "id": 5248538101772491, Â Â Â Â Â "description": null, Â Â Â Â Â "backup_destination": null, Â Â Â Â Â "limit_call_length": false, Â Â Â Â Â "did_alias": null, Â Â Â Â Â "state": null, Â Â Â Â Â "number_type": "geographic", Â Â Â Â Â "enable_ech": false, Â Â Â Â Â "provider": 3777204457689089, Â Â Â Â Â "bill_on_allocation": false, Â Â Â Â Â "port_status": null, Â Â Â Â Â "customer_plan": 5223032351472319, Â Â Â Â Â "backup_route": "congestion", Â Â Â Â Â "status": "allocated", Â Â Â Â Â "terminated_date": null, Â Â Â Â Â "rate_center": null, Â Â Â Â Â "max_call_length": null, Â Â Â Â Â "date_port_submitted": null, Â Â Â Â Â "range_holder": null, Â Â Â Â Â "setup_fee": "0.500", Â Â Â Â Â "principal_did": null, Â Â Â Â Â "date_last_updated": null, Â Â Â Â Â "tenant": 3066934978789185, Â Â Â Â Â "customer": 5662853492693467, Â Â Â Â Â "country": "US", Â Â Â Â Â "tertiary_route": "congestion", Â Â Â Â Â "did_address": null, Â Â Â Â Â "did_number": "12125552345", Â Â Â Â Â "ported_from": null, Â Â Â Â Â "carrier_setup_fee": null, Â Â Â Â Â "created_date": "2018-08-31T11:16:21.067526Z" Â Â Â }