Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Request example

Code Block
curl --location 'https://devdemo.tireconnect.ca/api/v2/tire/search/costcoSearch?key=771c4645c853baab29f6551c362d4a33' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'location_id=34027' \
--data-urlencode 'part_numbers%5B%5D=000063' \
--data-urlencode 'part_numbers%5B1%5D=001131'

Request parameters

...

Parameter

...

Value

...

key

string

...

API key

Required

...

location_id

integer

Location id

...

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

...

languagejson

...

integer

Desired Quantity. Used to determine suppliers and their branches with enough quantity

Required

Response example

Code Block
languagejson
{
    "notice": "Success",
    "data": {
        "nb_results": 2,
        "branchtires": "D002",[
             {
                  "idpart_number": "D002000063",
                "brand": "Bridgestone",
                "quantitystock": 7057,[
                    {
           "name": "D002 Chicago DC",          "tire_id": "QnJpZGdlc3RvbmV8fDAwMDA2M3x8YnJpZGdlc3RvbmVpd3Nsd3N8fDM0MDI3fHxC",
                        "branch_typesupplier": null,
       "bridgestoneiwslws",
                         "deliverysupplier_date_timename": null,"Bridgestone DC (Run Day)",
                        "branches": [
   "cutoff": null                        {
    },                             {"id": "D009",
                                "branchquantity": "D012"33,
                                "idname": "D012D009 Ontario DC",
                                "quantitydelivery_date_time": 250,{
                                    "namedate": "D012 Lebanon DC",2023-11-22",
                                    "branch_typetime": null,
                                "delivery_date_time    "timezone": null,
                                    "cutoffnotes": null
                            }     },
                   ],                         "delivery_date_time"cutoff": {null
                            "date": "2023-11-22",}
                        ]
    "time": null,                             "timezone": null,},
                    {
         "notes": null              "tire_id": "QnJpZGdlc3RvbmV8fDAwMDA2M3x8bnRkfHwzNDAyN3x8Qg==",
         }               "supplier": "ntd",
    },                     {"supplier_name": "NTD",
                        "idbranches": "QnJpZGdlc3RvbmV8fDAwMTEzMXx8bnRkfHwzNDAyN3x8Qg==",[
                        "price": null,   {
                     "quantity": 139,          "id": "localplus",
             "supplier": "ntd",                  "quantity": 17,
     "stock": [                          "name":   {"Local Plus",
                                "branchdelivery_date_time": "local",{
                                    "iddate": "local2023-11-23",
                                    "quantitytime": 63null,
                                "name": "Local - Same-day (if ordered before cut off time)", "timezone": null,
                                    "branch_type": "primary",
    notes": null
                           "delivery_date_time": {    },
                                "datecutoff": "2023-11-22",{
                                    "timedate": null"2023-11-22",
                                    "timezonetime": null"15:00",
                                    "notestimezone": null"-05:00"
                                },
                            }
       "cutoff": {                ]
                    "date": "2023-11-22",}
                ]
            },
         "time": "10:00",  {
                "part_number": "001131",
                "timezonebrand": "-05:00Bridgestone",
                "stock": [
              }      {
                         }"tire_id": "QnJpZGdlc3RvbmV8fDAwMTEzMXx8bnRkfHwzNDAyN3x8Qg==",
                        "supplier": "ntd",
  {                      "supplier_name": "NTD",
         "branch": "localplus",              "branches": [
                 "id": "localplus",          {
                      "quantity": 76,         "id": "local",
                      "name": "Local Plus - Next-day (if placed after cut off time)""quantity": 63,
                                "branch_typename": "alternativeLocal",
                                "delivery_date_time": {
                                    "date": "2023-11-2322",
                                    "time": null,
                                    "timezone": null,
                                    "notes": null
                                },
                                "cutoff": {
                                    "date": "2023-11-22",
                                    "time": "1510:00",
                                    "timezone": "-05: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

pricequantity

floatinteger

Tire pricequantityquantity

supplier

integerstring

Tire quantitySupplier

supplier_name

string

Supplier nice name

stockbranches[]

array

An array with stock per branch

branch

string

Deprecated parameter

id

string

Branch ID

quantity

integer

Tire quantity

name

string

Branch namebranch_type

string

Branch type

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

delivery_date_time

object

Information about estimated delivery date & time that have no branch specific info

date

string

Estimated Delivery date

timezone

string

time

string

Estimated Delivery time

Delivery time zone

notes

string

Information about delivery