Skip to main content

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 PathData TypeTypeDescription
Pull_ListLocationTypes_RQCRoot element
Pull_ListLocationTypes_RQ/AuthenticationC, MAuthentication details
Pull_ListLocationTypes_RQ/Authentication/AccessKeyString(100)MAccess key
Pull_ListLocationTypes_RQ/Authentication/SecretKeyString(100)MSecret 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 PathData TypeTypeDescription
Pull_ListLocationTypes_RSCRoot element
Pull_ListLocationTypes_RS/StatusString(100)MSee ListStatuses
Pull_ListLocationTypes_RS/Status@IDIntegerMSee ListStatuses
Pull_ListLocationTypes_RS/ResponseIDString(32)MUnique response ID
Pull_ListLocationTypes_RS/LocationTypesC, MA collection of all location types
Pull_ListLocationTypes_RS/LocationTypes/LocationTypeString(50)MA description of the location type
Pull_ListLocationTypes_RS/LocationTypes/LocationType@LocationTypeIDIntegerMUnique location type ID