Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Configuration

Demo Credentials

API KEY:

88b97fa1ecb79698ecd2b59aceb655ef

...

Code Block
{  
   "notice":"Success",
   "data":{  
      "locations":[  
         {  
            "id":4250,
            "name":"Location #1",
            "dealer_id":3758,
            "external_id":null,
            "address_line_1":"3903 SE 10th Pl",
            "address_line_2":"",
            "city":"Del City",
            "country":"United States",
            "country_code":"US",
            "province":"Oklahoma",
            "postal_code":"73115",
            "phone":"416 895 8685",
            "latitude":35.4553,
            "longitude":-97.45
         }
      ]
   }
}

Usage

TireConnect Search Form Access

...

https://app.tireconnect.ca/pos/88b97fa1ecb79698ecd2b59aceb655ef#/!search?state=SD&license=12345&location_id=4250

Quote summary for parsing

JSON quote summary is generated in hidden DIV  with id “tcwlw_raw_quote” on the summary page.

...

https://tutorials.tireconnect.ca/pos_demo/pos_container.html

Supplier order summary for parsing

JSON quote summary is generated in hidden DIV  with id “tcwlw_pos_supplier_order_submitted” on results or summary page.

...

  1. DIV with this id is detected, you can extract the content of the quote from the JSON formatted quote summary.

  2. supplier_order_submitted=1 - READY URL parameter is equal 1

URL Examples (PIN for both

...

416905)

Results page:

https://devapptutorials.tireconnect.ca/pos/05198c64d142efd851ef15e54fdd917d#/demo/pos_callback.html#!results?size=2055516&location_id=12674&order_by=best_match&display=full&location_id=22592&min_quantity=1&page=1

Summary page:

https://devapptutorials.tireconnect.ca/demo/pos/05198c64d142efd851ef15e54fdd917d#/_callback.html#!summary?location_id=1267422592&vehicle[year]=2009&vehicle[make]=Aston Martin&vehicle[model]=V8 Vantage&vehicle[trim]=(22mm hex lug nut)&vehicle[car_tire_id]=93137||93139&optional_services=use_default&quantities%5B0%5Dquantities[0]=4&tire_ids%5B0%5D=SGFua29va3x8MTAxNDM1OHx8a218fDEyNjc0fHxCids[0]=QnJpZGdlc3RvbmV8fDEyMzU2NXx8Y29tbXVuaXR5d2hvbGVzYWxldGlyZXx8MjI1OTJ8fEI%3D&ready=1

JSON Example
Code Block
{
  "branches_status": [
    {
      "branch_name": "common",
      "status": "success",
      "invoice": "999999999"
    }
  ],
  "order_info": {
    "cost": 43,
    "quantity": 1,
    "total_cost": 43,
    "shipping_cost": null,
    "total_order": 43
  },
  "supplier_order_fields": {
    "delivery_method": "Deliver",
    "po_number": "Test PO"
  },
  "supplier": {
    "name": "KM",
    "nice_name": "K&M"
  },
  "tire": {
    "brand": "Thunderer",
    "model": "Mach II R301",
    "part_number": "TH0090",
    "size_h": 55,
    "size_r": 16,
    "size_w": 205,
    "size": "205/55R16 91V",
    "image": "https://dev.tireconnect.ca/uploads/tires/pre_up/Thunderer/images/th_mach_ii_r301_l.jpg",
    "category": "Performance",
    "season": "All Season"
  }
}