Table of Contents | ||
---|---|---|
|
Demo API key: 89341dcdebfa37018f24ea227a5ca591
...
Get Location ID by External ID
...
Request example
Code Block |
---|
curl --location 'https://devdemo.tireconnect.ca/api/v2/location/by_external_id/025?key=89341dcdebfa37018f24ea227a5ca591' \ |
...
Parameter | Value |
---|---|
key string | API key Required |
external_id integer | Location external ID Required |
Response Example
Code Block | ||
---|---|---|
| ||
{ "notice": "Success", "data": { "locations": [ { "id": 13118, "is_active": true, "name": "BJS WHSL B025", "address_line_1": "3805 HARTZDALE DR", "address_line_2": "", "city": "CAMP HILL", "latitude": 40.217, "longitude": -76.9359, "province": "Pennsylvania", "province_code": "PA", "postal_code": "17011-7810", "phone": "717-763-9550", "contact_name": "Myrah St-Onge", "logo": "https://devdemo.tireconnect.ca/uploads/dealer/d06755d1e86461435360ccb2f19072dcd1559cc8.png", "dealer_id": 11840, "external_id": "025", "bs_account_number": "777391", "holidays": null, "working_hours": null, "country": "United States", "country_code": "US", "mobile_phone": null, "email": "bjs0025@bjs.com" } ] } } |
...
Parameter | Value |
---|---|
key string | API key Required |
location_id integer | Location id Required |
part_numbers[] array | Array of part numbers Required |
quantity integer | Desired Quantity. Used to determine suppliers and their branches with enough quantity Required |
Response example
Code Block | ||
---|---|---|
| ||
{ "notice": "Success", "data": { "nb_results": 2, "tires": [ { "part_number": "000112", "brand": "Bridgestone", "stock": [ { "tire_id": "QnJpZGdlc3RvbmV8fDAwMDExMnx8YnJpZGdlc3RvbmV8fDEzMTE4fHxC", "supplier": "bridgestone", "supplier_name": "Bridgestone", "price": 91.36, "tax": 5.4816, "cost": 91.36, "fet": 0, "fet_source": "tireconnect", "branches": [ { "id": "D005", "quantity": 878, "name": "D005 Allentown DC", "delivery_date_time": { "date": "2024-08-14", "time": null, "timezone": null, "notes": null }, "cutoff": null } ] } ] }, { "part_number": "004405", "brand": "Firestone", "stock": [ { "tire_id": "RmlyZXN0b25lfHwwMDQ0MDV8fHRpcmVodWJ8fDEzMTE4fHxC", "supplier": "tirehub", "supplier_name": "TireHub", "price": 112, "tax": 6.72, "cost": 112, "fet": 0, "fet_source": "tireconnect", "branches": [ { "id": "101", "quantity": 61, "name": "TLC 101 BALTIMORE (08/13/2024 12:00pm)", "delivery_date_time": { "date": "2024-08-13", "time": "12:00:00", "timezone": "-04:00", "notes": null }, "cutoff": { "date": "2024-08-13", "time": "06:00:00", "timezone": "-04:00" } } ] } ] } ] } } |
...