Dealer territories
territoryWho OWNS an address, as distinct from who can reach it. A service radius says how far a location travels; a territory decides which dealer an enquiry belongs to. Use action=list first. Postcode territories can be built here; polygons and regions are drawn on the map in the dashboard. Nothing reaches a visitor until action=publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The territory, for delete and add_postcodes. | |
| op | No | For add_postcodes: whether this list grants coverage or carves it out. Default include. | |
| lat | No | For explain. | |
| lng | No | For explain. | |
| mode | No | For set_mode. off ignores territories; preferred pins the owner and keeps the rest; exclusive returns only the owner; fallback shows the owner only when the ordinary search found nothing. | |
| name | No | What the territory is called, for create. | |
| rank | No | Lower wins when two territories cover the same address. Default 0. | |
| action | Yes | What to do. list and explain are read-only. | |
| postcode | No | For explain: the visitor's postcode, when known. Postcode rules cannot match without it. | |
| exclusive | No | An exclusive territory returns only its owner for a covered address; otherwise the owner is pinned to the top and the rest still show. | |
| postcodes | No | For add_postcodes. Full codes or prefixes written like SW1A*. Free text is accepted and split on commas, spaces and newlines. | |
| locationId | No | The dealer that owns this territory, for create. |