BSRO For Store Output (v 1.2.1)
OVERVIEW
Output REST. API to get exclude list by request.
# | Api method | url | description |
---|---|---|---|
1 | vehType suppression | api/for_store/suppression/by_store/{type} | Show all excluded displayIds for vehtype |
2 | Store number suppression | api/for_store/suppression/by_store/{id} | Show all excluded articles for storage |
3 | Websource | api/for_store/websource/{websource} | Show all available articles for websource |
Proxy methods | |||
4 | Search by Size(new) | api/for_store/search/by_size | Show tires, that available in catalog, search by size, with filtered data;Using store and vehtype, websource filters |
5 | Search by model and brand | /api/for_store/search/by_brand/{brand}/{model} | Show tires, that available in catalog, by brand and number. Using websource filters |
6 | Search by vehicle | /api/for_store/search/by-vehicle | Show tires, that available in catalog, by vehicle. Using store and vehtype, websource filters |
7 | Search Tires by Category | /api/for_store/tire/category/{category} | To get the tire catalog details. Used websource, store filters |
8 | Search Size Rims List | /api/for_store/size/reverse | To retrieve the entire distinct vehicle rim diameter values.use websource |
9 | Search Size Cross and Aspect List By Rim | /api/for_store/size/reverse/{rim} | To retrieve the entire distinct tire sizes for the given vehicle rim diameter value by size.used webstore and vehtype |
Size dictionary will help to know actual sizes from database; it returns known sizes linked one to other.
Search returns known tires, used brands & part numbers.
Search by size returns size id & founded tires.
METHODS DESCRIPTION
1. vehType Suppression
Explanation:
Show all excluded displayIds for vehType.
Action: GET
URL: https://bsro.tireconnect.ca/api/for_store/suppression/by_vehtype/{type}
EG. https://bsro.tireconnect.ca/api/for_store/suppression/by_vehtype/VAN
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
type | van(VAN,MVAN,TRK,SUV) | YES |
Output description
value | path | comment |
---|---|---|
statusCode | root.statusCode | =SUCCESSFUL |
payload | root.payload | NODE |
suppressionVehicle | root.payload.suppressionVehicle | NODE |
vehType | root.payload.suppressionVehicle[].vehType | Requested vehType |
displayIds | root.payload.suppressionVehicle[].displayIds | DisplsplayId values that will be suppressed |
articles | root.payload.suppressionVehicle[].articles | List of restricted articles of tires |
Note:
All data actual according to BSRO-catalogue and TP_SUPRESSION_PRODUCT_VEHTYPE source table.
Exception:
if nothing found : 404 error.
2. Store number suppression
Explanation:
Show all excluded articles for selected store.
Action: GET
URL: https://bsro.tireconnect.ca/api/for_store/suppression/by_store/{id}
EG. https://bsro.tireconnect.ca/api/for_store/suppression/by_store/26824
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
storeNumber | 26824 (any valid store number) | YES |
Output description
value | path | comment |
---|---|---|
statusCode | root.statusCode | =SUCCESSFUL |
payload | root.payload | NODE |
suppressionStore | root.payload.suppressionStore | NODE |
storeNumber | root.payload.suppressionStore[].storeNumber | Store Number |
displayIds | root.payload.suppressionStore[].displayIds | NODE |
displayIds[] | root.payload.suppressionStore[].displayIds[] | DisplsplayId values that will be suppressed |
articles | root.payload.suppressionStore.articles[] | List of articles, that restricted for this websource |
Note:
Use logic from business logic document 2.3.13.
Used tables:
Exception:
if nothing found : 404 error.
3. Websource
Explanation:
Show all available articles for websource.
Action: GET
URL: https://bsro.tireconnect.ca/api/for_store/websource/{websource}
EG. https://bsro.tireconnect.ca/api/for_store/websource/FCAC
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
websource | FCAC(FCAC, HT, TP, WWT) | YES |
Output description
value | path | comment |
---|---|---|
statusCode | root.statusCode | =SUCCESSFUL |
payload | root.payload | NODE |
websource | root.payload.websource | NODE |
websourceName | root.payload.websource.websourceName | Websource name |
articles | root.payload.websource.articles[] | List of articles, that available for this websource |
Note:
Websource filter, show only permitted articles for correspondent websource.
Exception:
if nothing found : 404 error.
4. Search by Size(new)
Explanation:
Show tires that available in catalog, search by size with filtered data. Using store and websource filters.
Action: GET
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
cross | 225 (Cross Section). Optional input if acesVehicleId is passed | YES |
aspect | 65 (Aspect Ratio). Optional input if acesVehicleId is passed | YES |
rim | 16 (Rim Diameter). Optional input if acesVehicleId is passed | YES |
storeNumber | 23817 (valid store number from RTMS_WEBDB.STORE table) | YES |
websource | FCAC (FCAC, TP, HT, WWT) | YES |
Output
Equal to #8 method BSRO Catalog REST API filtered by websource and storeNumber
Output description
value | path | comment |
---|---|---|
storeNumber | root.payload.storeNumber | Requested storeNumber |
Note:
vehicleId or cross and aspect and rim must be in request
Exception:
if nothing found for selected store & websource : 404 error.
5. Search by model and brand
Explanation:
Show tires, that available in catalog, by brand and number. Using websource filters.
Action: GET
URL: https://bsro.tireconnect.ca/api/for_store/search/by_brand/{brand}/{model}?websource={websource}
EG. https://bsro.tireconnect.ca/api/for_store/search/by_brand/Firestone/AffinityTouring?websource=FCAC
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
brand | Firestone | YES |
tireName | DestinationLE2 | YES |
websource | FCAC(any valid site name FCAC, TP, HT, WWT) | YES |
Output
Equal to #10 method BSRO Catalog REST API filtered by websource.
Exception:
if nothing found for selected store: 404 error.
6. Search by vehicle
Explanation:
Show tires that available in catalog by acesVehicleId. Using store, vehtype, websource filters.
Action: GET
EG. https://bsro.tireconnect.ca/api/for_store/search/by-vehicle?acesVehicleId=143886&websource=FCAC&storeNumber=23817
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
acesVehicleId | 143886. Optional input if cross/aspect/rim is passed | YES |
storeNumber | 23817 (valid store number from RTMS_WEBDB.STORE table) | YES |
websource | FCAC(any valid site name FCAC, TP, HT, WWT) | YES |
Output
Equal to #9 method BSRO Catalog REST API filtered by websource and storeNumber.
Output description
Field name(required data) | path | comment |
---|---|---|
storeNumber | root.payload.storeNumber | Requested storeNumber |
Rest data equal to correspondent method of vehicle search from bsro API |
Exception:
if nothing found for selected store & websource: 404 error.
7. Search Tires by Category
Explanation:
To get the tire catalog details using websource and store filters.
Action: GET
URL: https://bsro.tireconnect.ca/api/for_store/tire/category/{category}/{websource}
EG. https://bsro.tireconnect.ca/api/for_store/tire/category/winter/FCAC
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
category | light-truck (Any valid categories from {all-tires, winter, light-truck, performance, suv-cuv, car-minivan}) | YES |
websource | FCAC(any valid site name FCAC, TP, HT, WWT) | YES |
Output
Equal to #19 method BSRO Catalog REST API filtered by websource.
Exception:
if nothing found for selected websource: 404 error.
8. Search Size Rims List
Explanation:
To retrieve the entire distinct vehicle rim diameter values with using websource filtering.
Action: GET
URL: https://bsro.tireconnect.ca/api/for_store/size/reverse/{websource}
EG. https://bsro.tireconnect.ca/api/for_store/size/reverse/FCAC
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
websource | FCAC(any valid site name FCAC, TP, HT, WWT) | YES |
Output
Equal to #16 method BSRO Catalog REST API filtered by websource.
Exception:
if nothing found for selected websource: 404 error.
9. Search Size Cross and Aspect List By Rim
Explanation:
To retrieve the entire distinct tire sizes for the given vehicle rim diameter value by size used webstore and vehtype.
Action: GET
URL: https://bsro.tireconnect.ca/api/for_store/size/reverse/{rim}/{websource}
EG. https://bsro.tireconnect.ca/api/for_store/size/reverse/15/FCAC
Request Parameters
Parameter(s) | example value and explanation if needed | Required |
---|---|---|
rim | 16 | YES |
websource | FCAC(any valid site name FCAC, TP, HT, WWT) | YES |
Output
Equal to #17 method BSRO Catalog REST API filtered by websource.
Exception:
if nothing found for selected websource: 404 error.