Scenario: Buying a specific number by NPA/NXX prefix
Number of APIs: 5
To do this you need to select a NPA/NXX group by country (US) and region name (New York) as well as by NPA/NXX value (212461). You also need to select a Stock keeping unit (sku_id) which indicates DID number price and one of its available capacity options (usually DID price + 0 channels/2 channels).
Attention
Requests should be run one-by-one on real environment for real values usage
Environment variables
Name | Description |
---|---|
host | API host |
apiKey | Your DIDWW API key |
Collection variables
Name | Description |
---|---|
country.id | US country id |
region.id | New York region id |
nanpa_prefix.id | The id if NPA/NXX prefix group, having NPA: 212, NXX: 461 |
stock_keeping_unit.id | ID of Stock keeping unit with 2 channels included |
-
Get Countries GET https://{{host}}/v3/countries?filter[iso]=US
-
Get Regions GET https://{{host}}/v3/regions?filter[name]=new york&filter[country.id]={{country.id}}
-
Get NANPA Prefixes GET https://{{host}}/v3/nanpa_prefixes?filter[npanxx]=212461&filter[country.id]={{country.id}}&filter[region.id]={{region.id}}&filter[did_group.is_available]=true
-
Get DID Groups GET https://{{host}}/v3/did_groups?include=stock_keeping_units&filter[nanpa_prefix.id]={{nanpa_prefix.id}}
-
Create DID order POST https://{{host}}/v3/orders