Skip to main content

Location

Location represents an outlet/ store/ address to associate the “expected” location of the equipment to be tracked/ monitored​.

Parameters

ParameterTypeRequiredDescription
CodeStringYesUnique code for the location
NameStringYesUnique Location name - Supports unicode
ExternalLocationCodeStringNoExternal reference code in integration system
StreetStringNoStreet addres
Street2StringNoStreet Address Line 2
Street3StringNoStreet Address Line 3
CityStringNoCity Name
PostalCodeStringNoPostal/ Zip Code
SateIdintNoState Id
CountryIdintNoCountry Id
MarketIdintNoMarket Id
StoreOwnerStringNoStore owner name
LocationSalesRepStringNoSales Rep name. Only use this field if not using user accounts for Sales Reps
PrimaryPhoneStringNoLocation Phone#
IsActiveBooleanNoWhether location is active or not
TimeZoneIdintNoDefaults to TimeZone of the tenant
LocationRouteStringNoRoute identifier. Do not use this field if using pre-defined routing system
CustomerIdintNoCustomer. See customer section for more details
DistributorIdintNoDistributor. See customer section for more details
PreSellerRouteIdintNoPre-Seller Route. See route section for more details
RouteIdintNoDistribution/ General Route. See route section for more details
TDLinxStringNoIf customer has TDLinx number
LatitudedecimalNoLatitude of the store
LongitudedecimalNoLongitude of the store
BuyerGTINstringNoGTIN# for the Buyer
OutletGTINstringNoGTIN# for the Outlet
Note
  • Many attributes have been excluded for brevity.
Note
  • Based on your integration needs, additional attributes may be shared with you.
  • You can use MarketName, Channel, LocationType, StateName, CountryName, CustomerName, DistributorName instead of MarketId, ChannelId, LocationTypeId, StateId, CountryId, CustomerId, DistributorId respectively

Example to save/ update a record based on External Location code:

POST /controllers/Location.ashx?action=save&Code=524&Name=Test Location&ExternalLocationCode=Test-01

Details of the following API are not available in this documentation tool at the moment. If you have any query for the specific area, reach out to support@coolrgroup.com and we'll update the section on priority basis/ provide the appropriate Postman collection.

  1. Sales Reps: Reps handling the outlet
  2. Sales Rep Routes: If the routing information differs from week to week
  3. Visit Hitory: Tracking of visit history at the outlet
  4. Business Hours: To track off hours to avoid unnecessary alerts
  5. Addresses: If there are additional addresses to be stored apart from location address itself
  6. Contacts: Any additional contacts apart from Store Owner
  7. Location Images: Images of the store itself. These can be useful to find an outlet or different promotions
  8. Notes: Notes associated with the outlet
  9. Promotios: List of promotional material at the location
  10. Products: If the ordering is restricted on a per outlet basis or the pricing is differnt on per outlet basis
  11. Location Action: Actions planned/ executed at the location

Location has multiple related entities that define various attributes. These are used primarily for segmenting the operational and analytical aspects.

  1. Market:
  2. Classification
  3. Channel
  4. Distributor
  5. Customer
  6. Route
  7. Pre-Seller Route

🧩 Location List API (Response)

GET /Controllers/Location.ashx?action=list&start=0&limit=50&asArray=0

Provides comprehensive details about each location, including geographic coordinates, contact information, classification, market association, ownership, routing, and operational metadata for use in sales, logistics, and monitoring systems

PropertyTypeDescription
LocationIdIntegerUnique ID for the location
LocationTypeIdIntegerType ID of the location
NameStringName of the location
LatitudeFloatLatitude coordinate
LongitudeFloatLongitude coordinate
StateIdIntegerIdentifier for the state
PostalCodeStringPostal or ZIP code
Street2StringSecondary street address
Street3StringTertiary street address
LocationTypeStringLocation type description
IsKeyLocationBooleanWhether the location is a key location
SalesRepIdIntegerPrimary sales rep ID
PrimarySalesRepStringEmail of the primary sales rep
CodeStringInternal location code
PrimaryContactIdIntegerPrimary contact ID
TimeZoneStringTime zone name
CellPhoneStringCell number of contact
CorporateEmailAddressStringCorporate email address
WorkPhoneStringWork contact number
FirstNameStringContact’s first name
LastNameStringContact’s last name
LocationTextStringAdditional location text
MarketIdIntegerAssociated market ID
MarketNameStringMarket or regional name
PrimaryPhoneStringMain phone number for the location
OwnerIdIntegerOwner identifier
ContactPersonNameStringName of contact person
ContactPersonPhoneStringPhone of contact person
StoreOwnerStringStore owner email
OwnerNameStringName of the owner
LocationSalesRepStringSales rep email for the location
ClassificationStringClassification type
ClassificationIdIntegerID for classification
IsSmartBooleanWhether location is smart-enabled
IsSurveyedBooleanIndicates if location is surveyed
IsVisionBooleanWhether vision module is enabled
TimeZoneIdIntegerIdentifier for the timezone
AlertCountIntegerNumber of active alerts
LastPingStringLast ping time (nullable)
LastDoorCloseStringTimestamp of last door close
LastHealthStringLast health check time
AllEMailAddressStringAll associated emails
RestockScheduleDaysIntegerDays between restocks
LastRestockStringTimestamp of last restock
OutletNumberStringNumber identifying outlet
DistributorIdIntegerDistributor ID
DistributorNameStringName of distributor
TDLinxStringTDLink value
SurveyCountIntegerTotal survey records for the location
AddressChecksumIntegerInternal address validation checksum
LatLongIdentifiedForStringReference point for location ID check
ASNToSalesRepBooleanASN flag for sales rep
IsUseSalesRepRouteToOrderBooleanUse sales rep route for order
IsSkipOrderBooleanIf orders should be skipped
SalesModelIdIntegerSales model identifier
SalesModelStringName of the sales model
InfieldContactPersonIdIntegerContact person ID in field
InfieldContactPersonStringName of field contact
KeyAccountIdIntegerKey account identifier
KeyAccountStringName of the key account
BuyerGTINStringGlobal trade item number for buyer
OutletGTINStringGTIN of the outlet
ExternalLocationCodeStringExternal system location code
LocationRouteStringRouting identifier for the location
PreSellerRouteStringPre-seller route reference
CustomerIdIntegerID of the customer entity
CustomerNameStringCustomer name
FullAddressStringCombined address string
IsCreditHoldBooleanIndicates if location is on credit hold
DeliveryNotesStringAdditional delivery instructions
LastDeliveryDateStringTimestamp of last delivery
SecondarySalesRepEmailStringEmail of secondary sales rep
DistributorGTINStringGTIN of the distributor
InfieldContactPersonEmailStringEmail of field contact person
OutletStatusIdIntegerStatus ID of the outlet
OutletStatusStringHuman-readable status of the outlet
OutletTypeIdIntegerID of the outlet type
OutletTypeStringOutlet type name
ChannelStringChannel name (nullable)
ChannelIdIntegerID of the channel
ClassificationNameStringName of the classification
SalesRepEmailStringEmail of the sales rep