Get Area#

Returns an area for a given area ID. Note that a unique identification number is allocated to each area.

Request#

HTTP Method: GET

URI Path: /v3/areas/

Note

For all returned data attributes, see Area Object.

URI Query Parameters#

Name

Type

Is Required?

Description

id

string

Yes

Unique ID number for the area.

include

string

No

Inclusion.

Includes#

Value

Description

country

Country Object

Examples#

http

1GET /v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3 HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API Token]

curl

1curl -i -X GET https://api.didww.com/v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3 -H "Accept: application/vnd.api+json" -H "Api-Key: [API Token]" -H "Content-Type: application/vnd.api+json"

response

 1HTTP/1.1 200 OK
 2Content-Type: application/vnd.api+json
 3
 4{
 5  "data": {
 6    "id": "9fcc7390-84a2-47f1-a900-0558cdcb6ce3",
 7    "type": "areas",
 8    "attributes": {
 9      "name": "Tuscany"
10    },
11    "relationships": {
12      "country": {
13        "links": {
14          "self": "https://api.didww.com/v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3/relationships/country",
15          "related": "https://api.didww.com/v3/areas/9fcc7390-84a2-47f1-a900-0558cdcb6ce3/country"
16        }
17      }
18    }
19  }
20}

Other Responses#

Code

Success

Description

404

No

Not Found

401

No

Unauthorized