Get DID Groups
Description
Returns a list of DID Groups, which is essentially a list of the current DIDWW coverage. DID Groups are phone numbers that share a common city or area code.
Request
HTTP Method: GET
URI Path: /v3/did_groups
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
---|---|---|---|
filter[<filter_name>] |
|
Optional |
|
include |
|
Optional |
|
sort |
|
Optional |
Includes:
Value |
Description |
---|---|
country |
|
region |
|
city |
|
did_group_type |
|
stock_keeping_units |
A list of Stock Keeping Unit Objects |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
---|---|---|---|---|
id |
|
No |
Yes |
Group |
prefix |
|
Yes |
Yes |
The city |
local_prefix |
|
Yes |
Yes |
The |
area_name |
|
Yes |
Yes |
The |
is_metered |
|
No |
No |
The |
allow_additional_channels |
|
No |
No |
The |
available_dids_enabled |
|
No |
No |
The |
features |
|
No |
Yes |
The |
needs_registration |
|
No |
No |
The |
is_available |
|
No |
No |
The |
country.id |
|
Yes |
Yes |
The |
region.id |
|
Yes |
Yes |
The |
city.id |
|
Yes |
Yes |
The |
did_group_type.id |
|
Yes |
Yes |
The |
Sorting:
Value |
Sorts by: |
---|---|
country.name |
The |
did_group_type.name |
The |
prefix |
City |
local_prefix |
The |
is_metered |
The |
area_name |
The |
allow_additional_channels |
The |
Examples
GET /v3/did_groups HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
curl -i -X GET https://api.didww.com/v3/did_groups -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [{
"id": "ac160b14-e670-490f-b158-d3ba552c623f",
"type": "did_groups",
"attributes": {
"prefix": "241",
"local_prefix": "",
"features": [
"voice",
"voice_out",
"t38"
],
"is_metered": false,
"area_name": "Aachen",
"allow_additional_channels": true
},
"relationships": {
"country": {
"links": {
"self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/country",
"related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/country"
}
},
"city": {
"links": {
"self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/city",
"related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/city"
}
},
"did_group_type": {
"links": {
"self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/did_group_type",
"related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/did_group_type"
}
},
"region": {
"links": {
"self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/region",
"related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/region"
}
},
"stock_keeping_units": {
"links": {
"self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/stock_keeping_units",
"related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/stock_keeping_units"
}
}
},
"meta": {
"available_dids_enabled": false,
"needs_registration": true,
"is_available": true,
"total_count": 21,
"restrictions": "German Local DID registration requirements:\r\n1. Name, business name and contact phone number.\r\n2. Passport or ID copy.*\r\n3. Current address in Germany, must be from the same city in Germany as the DID ordered (street, building number, postal code, city).\r\n4. Proof of address form (a copy of utility bill no older than of 6 months).\r\n5. Specific registration form is provided during registration process which has to be filled in and signed by the customer.\r\n\r\n* Number provided online is demo. Active number will be provided when registration process is complete.\r\n** In case registration process is performed under a company name, German company registration certificate shall be provided instead of passport or ID copy.\r\n\r\nInformation should be sent to customer.care@didww.com within 10 days.\r\n\r\nDID number will not be activated until full registration details are provided and approved.\r\n\r\nPlease download and fill in the required form by clicking the following link:\r\nhttps://www.didww.com/docs/Germany_Registration_Form.pdf"
}
}],
"meta": {
"total_records": 1,
"api_version": "2017-09-18"
},
"links": {
"first": "https://api.didww.com/v3/did_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
"last": "https://api.didww.com/v3/did_groups?page%5Bnumber%5D=32&page%5Bsize%5D=50"
}
}
GET /v3/did_groups?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&include=stock_keeping_units&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955 HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API Token]
curl -i -X GET 'https://api.didww.com/v3/did_groups?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&include=stock_keeping_units&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955' -H "Accept: application/vnd.api+json" -H "Api-Key: [API Token]" -H "Content-Type: application/vnd.api+json"
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [{
"id": "1d5aad75-b853-4125-9a1a-da3fedfc5674",
"type": "did_groups",
"attributes": {
"prefix": "7",
"local_prefix": "",
"features": [
"voice",
"voice_out",
"sms",
"sms_out"
],
"is_metered": false,
"area_name": "Mobile",
"allow_additional_channels": true
},
"relationships": {
"country": {
"links": {
"self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/country",
"related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/country"
}
},
"city": {
"links": {
"self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/city",
"related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/city"
}
},
"did_group_type": {
"links": {
"self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/did_group_type",
"related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/did_group_type"
}
},
"region": {
"links": {
"self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/region",
"related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/region"
}
},
"stock_keeping_units": {
"links": {
"self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/stock_keeping_units",
"related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/stock_keeping_units"
},
"data": [{
"type": "stock_keeping_units",
"id": "cb17c069-098e-4be1-a7eb-eb4529e8c5f5"
},
{
"type": "stock_keeping_units",
"id": "e194165e-eda7-4718-9bbe-c5c583bd189a"
}
]
}
},
"meta": {
"available_dids_enabled": true,
"needs_registration": false,
"is_available": true,
"total_count": 99,
"restrictions": null
}
}],
"included": [{
"id": "cb17c069-098e-4be1-a7eb-eb4529e8c5f5",
"type": "stock_keeping_units",
"attributes": {
"setup_price": "0.0",
"monthly_price": "0.3",
"channels_included_count": 0
}
},
{
"id": "e194165e-eda7-4718-9bbe-c5c583bd189a",
"type": "stock_keeping_units",
"attributes": {
"setup_price": "0.0",
"monthly_price": "0.8",
"channels_included_count": 2
}
}
],
"meta": {
"total_records": 1,
"api_version": "2017-09-18"
},
"links": {
"first": "https://api.didww.com/v3/did_groups?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50",
"last": "https://api.didww.com/v3/did_groups?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50"
}
}
GET /v3/did_groups?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&include=stock_keeping_units&filter%5Bprefix%5D=20 HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API Token]
curl -i -X GET 'https://api.didww.com/v3/did_groups?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&include=stock_keeping_units&filter%5Bprefix%5D=20' -H "Accept: application/vnd.api+json" -H "Api-Key: [API Token]" -H "Content-Type: application/vnd.api+json"
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [{
"id": "fc271bcc-1f9c-4c19-8174-28b7c55a208a",
"type": "did_groups",
"attributes": {
"prefix": "20",
"local_prefix": "",
"features": [
"voice",
"voice_out",
"t38"
],
"is_metered": false,
"area_name": "London",
"allow_additional_channels": true
},
"relationships": {
"country": {
"links": {
"self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/country",
"related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/country"
}
},
"city": {
"links": {
"self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/city",
"related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/city"
}
},
"did_group_type": {
"links": {
"self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/did_group_type",
"related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/did_group_type"
}
},
"region": {
"links": {
"self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/region",
"related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/region"
}
},
"stock_keeping_units": {
"links": {
"self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/stock_keeping_units",
"related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/stock_keeping_units"
},
"data": [{
"type": "stock_keeping_units",
"id": "0ba87a94-7143-48cb-a0f6-d50a6a0c8cfa"
},
{
"type": "stock_keeping_units",
"id": "1a86de53-3131-491f-9e4b-3392da45d441"
}
]
}
},
"meta": {
"available_dids_enabled": true,
"needs_registration": false,
"is_available": true,
"total_count": 932,
"restrictions": null
}
}],
"included": [{
"id": "0ba87a94-7143-48cb-a0f6-d50a6a0c8cfa",
"type": "stock_keeping_units",
"attributes": {
"setup_price": "0.0",
"monthly_price": "0.3",
"channels_included_count": 0
}
},
{
"id": "1a86de53-3131-491f-9e4b-3392da45d441",
"type": "stock_keeping_units",
"attributes": {
"setup_price": "0.0",
"monthly_price": "0.8",
"channels_included_count": 2
}
}
],
"meta": {
"total_records": 1,
"api_version": "2017-09-18"
},
"links": {
"first": "https://api.didww.com/v3/did_groups?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&filter%5Bprefix%5D=20&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50",
"last": "https://api.didww.com/v3/did_groups?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&filter%5Bprefix%5D=20&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50"
}
}
Other Responses
Code |
Success |
Description |
---|---|---|
404 |
No |
|
401 |
No |