Look up geographical locations
Locations are anchored to a geographical place from the Målbar catalog. Call GET /v1/geographical/locations to find thepublicId for the country or city you need.
Save the geographical publicId (lli_ prefix) — you’ll pass it when creating a location.
Create a location
Call POST /v1/logistics/locations using the geographicalpublicId from above.
The response includes a location publicId (trl_ prefix) — save this. You’ll use it as the transportLocation on a screening, and as the origin or destination when creating routes.
The type field
type is required. Set these fields depending on the type:
| Type | Fields |
|---|---|
Supplier | name, geographical, tier, own, vatNumber, externalId, supplier, address, zip, city |
Warehouse | name, geographical, own, totalCapacity, shelfHeight, weeksRotation, address, zip, city |
RetailStore | name, geographical, totalCapacity, weeksRotation, address, zip, city |
RetailLocation | name, geographical, timeperiod, totalCapacity, weeksRotation, stores |
B2B | name, geographical |
FinalClient | name, geographical |
Unknown | (no fields required — name and geographical are set automatically) |
tier accepts Tier1, Tier2, Tier3, or Tier1And2.
Repeat for each location in your supply chain.