Simplified search & ordering flow for BJ's
Demo API key: 89341dcdebfa37018f24ea227a5ca591
Get Location ID by External ID
Request example
curl --location 'https://devdemo.tireconnect.ca/api/v2/location/by_external_id/025?key=89341dcdebfa37018f24ea227a5ca591' \
Request parameters
Parameter | Value |
---|---|
key query | API key Required |
external_id query | Location external ID Required |
Response Example
{
"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"
}
]
}
}
Response parameters
id | Location id |
---|---|
is_active | Shows whether the location is active or not |
name | Location name |
address_line_1 | Address line 1 |
address_line_2 | Address line 2 |
city | Location city |
latitude | Location latitude |
longitude | Location longitude |
province | Location province |
province_code | Location province code |
postal_code | Location zip/postal code |
phone | Location phone number |
contact_name | Contact name |
logo | Dealer’s logo |
dealer_id | Dealer id |
external_id | Location external id |
bs_account_number | Location Bridgestone account number |
holidays | Array with location’s holidays. Can be null |
working_hours | Array with location’s working hours |
country | Location country |
country_code | Location country code |
mobile_phone | Location mobile phone |
email | Location email |
Simplified Search
Request example
curl --location 'https://devdemo.tireconnect.ca/api/v2/tire/search/simplifiedSearch?key=89341dcdebfa37018f24ea227a5ca591' \
--header 'accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'location_id=13118' \
--data-urlencode 'part_numbers%5B0%5D=178720' \
--data-urlencode 'part_numbers%5B1%5D=332104' \
--data-urlencode 'quantity=4'
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
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 id |
supplier_name string | Supplier name |
price integer | Tire price |
tax integer | Tax |
cost integer | Tire cost |
fet integer | FET |
fet_source string | Shows if FET comes from supplier or it’s calculated on TC side. Can be:
|
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 |
Get/Refresh Token (Orders Auth)
Request Example
Request parameters
dealer_location_id | Dealer location required |
---|---|
pin_code | Pin Code required |
key | API key required |
Response Example
Response Parameters
token | Authorisation token |
---|---|
expire | expire time |
Get PO# by location
Request Example
Request parameters
token | Dealer location required |
---|
Response Example
Response Parameters
poNumber | PO Number |
---|
Simplified Ordering
Request example
Request parameters
token | Authorisation token |
---|---|
tires | Array of tires. Please note that you can place several tires in one orders only in case they have same supplier. |
tire_id | Tire ID |
quantity | Tire quantity |
branch | Supplier branch. You should take this value from |
po_number | PO Number |
Response example
Response parameters
order_id | Order ID in TireConnect system |
---|---|
invoice | Invoice ID returned by supplier |
shipping_cost | Shipping cost of order |
tires | Array of tires |
id | Tire ID |
part_number | Tire part number |
quantity_demand | Requested tire quantity |
quantity_ordered | Ordered tire quantity |
price | Requested tire price |
price_ordered | Ordered tire price |
status | Tire status in order |
message | Message returned by supplier for each tire |
status | Order status |
message | Message returned by supplier for whole order |
delivery_date_time | Estimated Delivery Date & Time provided by the supplier |