Request example
curl --location 'https://devdemo.tireconnect.ca/api/v2/tire/search/costcoSearch?key=19a41bee2c2e09d279226ab754166d2a' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'location_id=12825' \ --data-urlencode 'quantity=4' \ --data-urlencode 'part_numbers%5B0%5D=477761' \ --data-urlencode 'part_numbers%5B1%5D=1218573'
Request parameters
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
{ "notice": "Success", "data": { "nb_results": 2, "tires": [ { "part_number": "000112", "brand": "Bridgestone", "stock": [ { "id": "QnJpZGdlc3RvbmV8fDAwMDExMnx8YnJpZGdlc3RvbmV8fDEyODI1fHxC", "price": 117.17, "quantity": 878, "supplier": "bridgestone", "supplier_name": "Bridgestone DC (Run Day)", "branches": [ { "id": "D005", "quantity": 878, "name": "D005 Allentown DC", "type": null, "delivery_date_time": null, "cutoff": null } ], "delivery_date_time": { "date": "2023-12-16", "time": null, "timezone": null, "notes": null } } ] }, { "part_number": "116833", "brand": "Bridgestone", "stock": [ { "tire_id": "QnJpZGdlc3RvbmV8fDExNjgzM3x8YnJpZGdlc3RvbmV8fDEyODI1fHxC", "price": 200.52, "quantity": 241, "supplier": "bridgestone", "supplier_name": "Bridgestone DC (Run Day)", "branches": [ { "id": "D005", "quantity": 241, "name": "D005 Allentown DC", "type": null, "delivery_date_time": null, "cutoff": null } ], "delivery_date_time": { "date": "2023-12-16", "time": null, "timezone": null, "notes": null } }, { "tire_id": "QnJpZGdlc3RvbmV8fDExNjgzM3x8Z3JvdXBldG91Y2hldGV8fDEyODI1fHxC", "price": null, "quantity": 94, "supplier": "groupetouchete", "supplier_name": "Group Touchette", "branches": [ { "id": "Default", "quantity": 94, "name": "Default", "type": null, "delivery_date_time": null, "cutoff": null } ], "delivery_date_time": { "date": "2023-12-16", "time": null, "timezone": null, "notes": null } }, { "tire_id": "QnJpZGdlc3RvbmV8fDExNjgzM3x8bnRkfHwxMjgyNXx8Qg==", "price": null, "quantity": 2, "supplier": "ntd", "supplier_name": "NTD", "branches": [ { "id": "local", "quantity": 2, "name": "Local - Same-day delivery (if ordered before cut off time)", "type": "primary", "delivery_date_time": { "date": "2023-12-14", "time": null, "timezone": null, "notes": null }, "cutoff": { "date": "2023-12-14", "time": "11:00", "timezone": "-07:00" } } ], "delivery_date_time": null } ] } ] } }
Response parameters
Parameter | Value |
---|---|
notice string | Response status |
nb_results integer | Number of found tires |
part_number string | Tire part number |
brand string | Tire brand |
suppliers[] array | Stock information |
id string | Tire ID |
quantity integer | Tire quantity |
supplier string | Supplier |
stock[] array | An array with stock per branch |
branch string | Deprecated parameter |
id string | Branch ID |
quantity integer | Tire quantity |
name string | Branch name |
delivery_date_time object | Estimated delivery information specific for this branch |
date string | Estimated delivery date |
time string | Estimated delivery time |
timezone string | Time zone |
notes string | Information about estimated delivery |
cutoff object | Information about cut off date&time for current branch |
date string | Cut-off date |
time string | Cut-off time |
timezone string | Cut-off time zone |