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

NameDescription
hostAPI host
apiKeyYour DIDWW API key

Collection variables

NameDescription
country.idUS country id
region.idNew York region id
nanpa_prefix.idThe id if NPA/NXX prefix group, having NPA: 212, NXX: 461
stock_keeping_unit.idID of Stock keeping unit with 2 channels included
  1. Get Countries GET https://{{host}}/v3/countries?filter[iso]=US

  2. Get Regions GET https://{{host}}/v3/regions?filter[name]=new york&filter[country.id]={{country.id}}

  3. 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

  4. Get DID Groups GET https://{{host}}/v3/did_groups?include=stock_keeping_units&filter[nanpa_prefix.id]={{nanpa_prefix.id}}

  5. Create DID order POST https://{{host}}/v3/orders