List Location Types - Pull_ListLocationTypes
This method returns the location hierarchy.
Use Cases
- Understand location hierarchy structure
- Build location filter interfaces
- Categorize locations in search functionality
- Display location breadcrumbs
- Map location types to your internal system
Best Practices
- Cache Permanently: Location types never change - cache indefinitely
- Load on Startup: Fetch once when application starts
- Use in Filters: Build hierarchical location filters
- Breadcrumb Navigation: Use levels for breadcrumb trails
Request
XML request
<Pull_ListLocationTypes_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
</Pull_ListLocationTypes_RQ>
Request fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListLocationTypes_RQ | C | Root element | |
| Pull_ListLocationTypes_RQ/Authentication | C, M | Authentication details | |
| Pull_ListLocationTypes_RQ/Authentication/AccessKey | String(100) | M | Access key |
| Pull_ListLocationTypes_RQ/Authentication/SecretKey | String(100) | M | Secret key |
Response
XML response
<Pull_ListLocationTypes_RS>
<Status ID="0">Success</Status>
<ResponseID>07d879f033104283a0b018561d4b2867</ResponseID>
<LocationTypes>
<LocationType LocationTypeID="6">Worldwide</LocationType>
<LocationType LocationTypeID="1">Continent</LocationType>
<LocationType LocationTypeID="2">Country</LocationType>
<LocationType LocationTypeID="3">Region</LocationType>
<LocationType LocationTypeID="4">City</LocationType>
<LocationType LocationTypeID="5">District</LocationType>
</LocationTypes>
</Pull_ListLocationTypes_RS>
Response fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListLocationTypes_RS | C | Root element | |
| Pull_ListLocationTypes_RS/Status | String(100) | M | See ListStatuses |
| Pull_ListLocationTypes_RS/Status@ID | Integer | M | See ListStatuses |
| Pull_ListLocationTypes_RS/ResponseID | String(32) | M | Unique response ID |
| Pull_ListLocationTypes_RS/LocationTypes | C, M | A collection of all location types | |
| Pull_ListLocationTypes_RS/LocationTypes/LocationType | String(50) | M | A description of the location type |
| Pull_ListLocationTypes_RS/LocationTypes/LocationType@LocationTypeID | Integer | M | Unique location type ID |