Search dealerships by postcode
GET
/manufacturers/{id}/search_by_postcode
const url = 'https://dashboard.dealerstudio.com.au/manufacturers/example/search_by_postcode';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.dealerstudio.com.au/manufacturers/example/search_by_postcode \ --header 'Authorization: Bearer <token>'This endpoint allows you to search dealers under an OEM manufacturer by postcode. Returns the closest sales location with valid coordinates, excluding OEM flagged locations.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Manufacturer ID
Query Parameters
Section titled “Query Parameters ” postcode
string
Postcode to search for nearby dealerships
Responses
Section titled “ Responses ”Location not found - no sales locations for postcode
Geolocation error - invalid or unlocatable postcode