Table of Contents |
---|
Request example
...
Table of Contents |
---|
Request example
Code Block |
---|
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
Code Block | ||
---|---|---|
| ||
{ "notice": "Success", "data": { "nb_results": 2, "tires": [ { "part_number": "000112000063", "brand": "Bridgestone", "suppliersstock": [ { "tire_id": "QnJpZGdlc3RvbmV8fDAwMDExMnx8YnJpZGdlc3RvbmV8fDEyODI1fHxCQnJpZGdlc3RvbmV8fDAwMDA2M3x8YnJpZGdlc3RvbmVpd3Nsd3N8fDM0MDI3fHxC", "pricesupplier": 117.17"bridgestoneiwslws", "quantitysupplier_name": 878,"Bridgestone DC "supplier": "bridgestone"(Run Day)", "stockbranches": [ { "branchid": "D005D009", "idquantity": "D005"33, "quantityname": 878 "D009 Ontario DC", "namedelivery_date_time": { "D005 Allentown DC", "branch_typedate": null"2023-11-22", "delivery_date_ "time": null, "cutofftimezone": null, } "notes": null ], }, "delivery_date_time": { "datecutoff": "2023-12-16",null "time": null,} ] "timezone": null, }, "notes": null { } "tire_id": "QnJpZGdlc3RvbmV8fDAwMDA2M3x8bnRkfHwzNDAyN3x8Qg==", } "supplier": "ntd", ] }, "supplier_name": "NTD", { "part_numberbranches": "116833",[ "brand": "Bridgestone", { "suppliers": [ { "id": "localplus", "id": "QnJpZGdlc3RvbmV8fDExNjgzM3x8YnJpZGdlc3RvbmV8fDEyODI1fHxC", "quantity": 17, "price": 200.52, "name": "Local Plus", "quantity": 241, "supplierdelivery_date_time": "bridgestone",{ "supplier_name": "Bridgestone DC (Run Day)", "date": "2023-11-23", "stock": [ "time": null, { "timezone": null, "branch": "D005", "idnotes": "D005",null "quantity": 241}, "namecutoff": "D005{ Allentown DC", "branch_typedate": null"2023-11-22", "delivery_date_ "time": null"15:00", "cutofftimezone": null"-05:00" } ], } "delivery_date_time": { ] } "date": "2023-12-16", ] }, "time": null, { "part_number": "001131", "timezone": null, "brand": "Bridgestone", "notesstock": [ null { } }"tire_id": "QnJpZGdlc3RvbmV8fDAwMTEzMXx8bnRkfHwzNDAyN3x8Qg==", { "id": "QnJpZGdlc3RvbmV8fDExNjgzM3x8Z3JvdXBldG91Y2hldGV8fDEyODI1fHxC", "price": null, "quantity": 94, "supplier": "groupetouchete", "supplier_name": "Group Touchette", "stock": [ { "branch": "Default", "id": "Default", "quantity": 94, "name": "Default", "branch_type": null, "delivery_date_time": null, "cutoff": null } ], "delivery_date_time": { "date": "2023-12-16", "time": null, "timezone": null, "notes": null } }, { "id": "QnJpZGdlc3RvbmV8fDExNjgzM3x8bnRkfHwxMjgyNXx8Qg==", "price": null, "quantity": 2, "supplier": "ntd", "supplier_name": "NTD", "stock": [ "supplier": "ntd", { "supplier_name": "NTD", "branchbranches": "local",[ { "id": "local", "quantityid": 2"local", "namequantity": "Local - Same-day delivery (if ordered before cut off time)"63, "branch_typename": "primaryLocal", "delivery_date_time": { "date": "2023-1211-1422", "time": null, "timezone": null, "notes": null }, "cutoff": { "date": "2023-1211-1422", "time": "1110:00", "timezone": "-0705: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 |
suppliersstock[] array | Stock information |
tire_id string | Tire ID |
quantity integer | Tire quantity |
supplier string | Supplier |
stocksupplier_name string | Supplier nice name |
branches[] 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 |