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
Name | Description |
---|---|
baseUrl | API host url |
apiKey | Your DIDWW API key |
Collection variables
Name | Description |
---|---|
did_group_type.id | Local group type id |
country.id | GB country id |
city.id | London id |
stock_keeping_unit.id | ID of Stock keeping unit with 2 channels included |
-
Get DID Group Types GET https://{{host}}/v3/did_group_types?filter[name]=Local
-
Get Countries GET https://{{host}}/v3/countries?filter[iso]=GB
-
Get Cities GET https://{{host}}/v3/cities?filter[name]=London&filter[country.id]={{country.id}}
-
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}}
-
Create DID order POST https://{{host}}/v3/orders