Locations
Locations are the store master and its features: every store — and every digital channel that is modelled as a store — plus the taxonomies that group them by region, format, franchise or country.
The pattern mirrors the catalogue: locations are the records, taxonomies and features are the classification, and campaigns filter on the classification. "All stores in the north region" is a location feature, not a hardcoded list.
Channel and schedule for this entity: a daily delta is the usual starting point, either as a Locations file or through the API. See Data → Two channels for the same data.
Locations (stores)
Every store that can appear on a cart should exist as a location before carts from it arrive.
| Concept | Integration responsibility |
|---|---|
| Stable ID / code | Must match the location_id or store code on cart payloads — see One ID strategy |
| Country, status, address attributes | Used by store filters, audiences and reporting. Country also drives currency behaviour on carts |
| Feature membership | Enables "all stores in region X" or "all stores of format Y" campaigns |
API path: POST /locations, GET /locations/{value}, PATCH /locations/{value}, DELETE /locations/{value}.
Taxonomies and features
Same structure and the same ordering rule as products: the classification is loaded before the locations that reference it.
| Step | Endpoint |
|---|---|
| Create / update / delete taxonomy | POST / PATCH / DELETE on /locations/taxonomies |
| Create / update / delete feature | POST / PATCH / DELETE on /locations/taxonomies/{taxonomy_slug}/features |
Core endpoints
Implementation map only. Schemas, auth, errors and rate limits: API Reference.
| Action | Endpoint |
|---|---|
| Create / upsert location | POST /locations |
| Get location | GET /locations/{value} |
| Update location | PATCH /locations/{value} |
| Delete location | DELETE /locations/{value} |
| Create location taxonomy | POST /locations/taxonomies |
| Update location taxonomy | PATCH /locations/taxonomies/{slug} |
| Delete location taxonomy | DELETE /locations/taxonomies/{slug} |
| Create location feature | POST /locations/taxonomies/{taxonomy_slug}/features |
| Update location feature | PATCH /locations/taxonomies/{taxonomy_slug}/features/{id} |
| Delete location feature | DELETE /locations/taxonomies/{taxonomy_slug}/features/{id} |
Markdown endpoint catalog: Locations · HTTP API
Checklist
- Location IDs match exactly what carts will carry as
location_idor store code. - Country is set correctly on every location — it affects currency handling and country-scoped campaigns.
- Location taxonomies and features exist before the locations that reference them.
- New stores are loaded before the first cart from that store arrives.
- Closed stores keep their ID so historical carts still reconcile.
Troubleshooting
| Symptom | What to check |
|---|---|
| Campaign works in one store but not another | Location external ID, country, and location feature membership. |
| Store-scoped campaign matches nothing | Whether the campaign filters on a feature the stores were never assigned to. |
| Carts arrive but are not attributed to a store | The location_id in the payload against the loaded location IDs. |
| Multi-country reporting looks wrong | Country on each location; carts in a currency other than the customer's registration country are flagged international in cart responses. |
Whole-section symptoms are in Company Data → Troubleshooting.