Version: 202607
Get location
GET/openapi/2026-07/locations/:location_id
Get location for shipping, inventory, and order fulfillment by id
Request
Path Parameters
location_id uint64required
Location ID
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
location object
Location
iduint64
Location ID
activeboolean
Whether active
defaultboolean
Default
countrystring
Country name
country_codestring
Country code (e.g. CN)
provincestring
Province or state
province_codestring
Province code
citystring
City
areastring
Area or region
addressstring
Address
address1string
Primary address line
namestring
Name
phonestring
Phone number
zipstring
Postal or ZIP code
companystring
Company name
latitudestring
Latitude coordinate
longitudestring
Longitude coordinate
created_atstring
Creation timestamp, in ISO-8601 format
updated_atstring
Last update timestamp, in ISO-8601 format
{
"code": "string",
"message": "string",
"data": {
"location": {
"id": 0,
"active": true,
"default": true,
"country": "string",
"country_code": "string",
"province": "string",
"province_code": "string",
"city": "string",
"area": "string",
"address": "string",
"address1": "string",
"name": "string",
"phone": "string",
"zip": "string",
"company": "string",
"latitude": "string",
"longitude": "string",
"created_at": "string",
"updated_at": "string"
}
}
}