Get redirect URL for location and model
GET
/manufacturers/{id}/redirect_url
const url = 'https://dashboard.dealerstudio.com.au/manufacturers/example/redirect_url?url=example&postcode=example';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/redirect_url?url=example&postcode=example' \ --header 'Authorization: Bearer <token>'This endpoint returns a redirect URL for the closest dealership location based on postcode. If the incoming URL contains a model name, it will return the model-specific URL on the dealership website.
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 ” url
required
string
Incoming URL from the national site
postcode
required
string
Postcode to search for nearby dealerships
Responses
Section titled “ Responses ”Returns website URL when no model match
Media type application/json
Examples
Example success_response
{ "redirect_url": "https://example.com"}Website not found
Geolocation error