GET
/api/v1/customer/manufacturers/{id}/locations
This API method will grab a list of all the locations for the given manufacturer. Locations are forcibly sorted in order of distance to the customer logged in.
Sample Request
Parameter | Value / Type | Required |
|---|---|---|
page | INTEGER (Default 1) | false |
latitude | DECIMAL | false |
longitude | DECIMAL | false |
Sample Response
{
"status": true,
"items": [
{
"id": "gAVGy1a0mgdzK4JkZqxY",
"group_id": null,
"is_locked": 0,
"name": "Middletown",
"pricebook_zone_id": "QD59AxOJm2KlznXb14Pw",
"store_number": 24,
"address": "87 Dolson Ave<br \/>\nMiddletown, NY, 10940",
"address_line_2": null,
"city": "Middletown",
"state": "NY",
"zip": "10940",
"latitude": "41.45120000",
"longitude": "-74.47010000",
"phone": "845-467-4519",
"location_hours": {
"mon": {
"isActive": true,
"timeFrom": "7:30 AM",
"timeTill": "8:00 PM"
},
"tue": {
"isActive": true,
"timeFrom": "7:30 AM",
"timeTill": "8:00 PM"
},
"wed": {
"isActive": true,
"timeFrom": "7:30 AM",
"timeTill": "8:00 PM"
},
"thu": {
"isActive": true,
"timeFrom": "7:30 AM",
"timeTill": "8:00 PM"
},
"fri": {
"isActive": true,
"timeFrom": "7:30 AM",
"timeTill": "9:00 PM"
},
"sat": {
"isActive": true,
"timeFrom": "8:00 AM",
"timeTill": "9:00 PM"
},
"sun": {
"isActive": true,
"timeFrom": "9:00 AM",
"timeTill": "6:00 PM"
}
},
"timezone": "America\/New_York",
"omit_offline_report": 0,
"hide_from_customer": 0,
"created_at": "2015-10-19 22:04:28",
"updated_at": "2019-07-14 18:25:00",
"last_queue_update": null,
"deleted_at": null,
"store_name": "24 - Middletown",
"distance": 6.97,
"store": "SC Choice Management"
}
]
}{
"status": false,
"message": "No manufacturer found"
}