Returns the location specified by the location code.
get
/primeapi/restapi/v16.2/location/code/{code}
Request
Path Parameters
- code
-
Type:
stringRequired:trueCode of the location to be found.
Response
Supported Media Types
- application/json
200 Response
successful operation
Body
Root Schema : ApiEntityLocation
Type:
object- addressLine1
-
Type:
stringAllowed Values:[ "Length[1-200]" ]The first line of the address of a location. This might be the building number and street address. - addressLine2
-
Type:
stringAllowed Values:[ "Length[1-200]" ]The second line of the address of a location. This might be a neighborhood or town. - cityName
-
Type:
stringAllowed Values:[ "Length[1-200]" ]The city name for a location. - countryCode
-
Type:
stringAllowed Values:[ "Length[1-3]" ]The country for a location. The value is expressed as a three letter code. - description
-
Type:
stringAdditional details about the location. - latitude
-
Type:
number(double)The geographical coordinate for the latitude of the location. The default format for latitude is decimal degrees format, but the format you need to use will depend on your geolocation service. - locationCode
-
Type:
stringAllowed Values:[ "Length[1-60]" ]The unique identifier for the location. - locationId
-
Type:
integer(int64)The unique identifier for the location. - locationName
-
Type:
stringAllowed Values:[ "Length[1-255]" ]A name for the location that your users will understand and recognize. - longitude
-
Type:
number(double)The geographical coordinate for the longitude of the location. The default format for longitude is decimal degrees format, but the format you need to use will depend on your geolocation service. - postalCode
-
Type:
stringAllowed Values:[ "Length[1-20]" ]The postal code, post code, or zip code of a location. - stateCode
-
Type:
stringAllowed Values:[ "Length[1-2]" ]A unique identifier for the state or province. - stateName
-
Type:
stringAllowed Values:[ "Length[1-200]" ]The state, region, or province of a location. - workspaceId
-
Type:
integer(int64)
404 Response
The Location do not exist or you do not have access to it.