Scenario: Buying a random number within a specific DID group

Number of APIs: 5

To do this you need to select a DID Group by country (UK) and city name (London) as well as by DID Group Type (local). 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).

This is how this functionality looks in DIDWW user panel:

Attention

Requests should be run one-by-one on real environment for real values usage

Environment variables

NameDescription
baseUrlAPI host url
apiKeyYour DIDWW API key

Collection variables

NameDescription
did_group_type.idLocal group type id
country.idGB country id
city.idLondon id
stock_keeping_unit.idID of Stock keeping unit with 2 channels included
  1. Get DID Group Types GET https://{{host}}/v3/did_group_types?filter[name]=Local

  2. Get Countries GET https://{{host}}/v3/countries?filter[iso]=GB

  3. Get Cities GET https://{{host}}/v3/cities?filter[name]=London&filter[country.id]={{country.id}}

  4. Get DID Groups GET https://{{host}}/v3/did_groups?include=stock_keeping_units&filter[is_available]=true&filter[country.id]={{country.id}}&filter[city.id]={{city.id}}&filter[did_group_type.id]={{did_group_type.id}}

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