Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 14 Current »

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": "000063",
                "brand": "Bridgestone",
                "stock": [
                    {
                        "tire_id": "QnJpZGdlc3RvbmV8fDAwMDA2M3x8YnJpZGdlc3RvbmVpd3Nsd3N8fDM0MDI3fHxC",
                        "supplier": "bridgestoneiwslws",
                        "supplier_name": "Bridgestone DC (Run Day)",
                        "branches": [
                            {
                                "id": "D009",
                                "quantity": 33,
                                "name": "D009 Ontario DC",
                                "delivery_date_time": {
                                    "date": "2023-11-22",
                                    "time": null,
                                    "timezone": null,
                                    "notes": null
                                },
                                "cutoff": null
                            }
                        ]
                    },
                    {
                        "tire_id": "QnJpZGdlc3RvbmV8fDAwMDA2M3x8bnRkfHwzNDAyN3x8Qg==",
                        "supplier": "ntd",
                        "supplier_name": "NTD",
                        "branches": [
                            {
                                "id": "localplus",
                                "quantity": 17,
                                "name": "Local Plus",
                                "delivery_date_time": {
                                    "date": "2023-11-23",
                                    "time": null,
                                    "timezone": null,
                                    "notes": null
                                },
                                "cutoff": {
                                    "date": "2023-11-22",
                                    "time": "15:00",
                                    "timezone": "-05:00"
                                }
                            }
                        ]
                    }
                ]
            },
            {
                "part_number": "001131",
                "brand": "Bridgestone",
                "stock": [
                    {
                        "tire_id": "QnJpZGdlc3RvbmV8fDAwMTEzMXx8bnRkfHwzNDAyN3x8Qg==",
                        "supplier": "ntd",
                        "supplier_name": "NTD",
                        "branches": [
                            {
                                "id": "local",
                                "quantity": 63,
                                "name": "Local",
                                "delivery_date_time": {
                                    "date": "2023-11-22",
                                    "time": null,
                                    "timezone": null,
                                    "notes": null
                                },
                                "cutoff": {
                                    "date": "2023-11-22",
                                    "time": "10:00",
                                    "timezone": "-05:00"
                                }
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

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

stock[]

array

Stock information

tire_id

string

Tire ID

quantity

integer

Tire quantity

supplier

string

Supplier

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

  • No labels