BSRO For Store Output (v 1.2.1)
OVERVIEW
Output REST. API to get exclude list by request.
# | Api method | url | description |
|---|---|---|---|
1 | api/for_store/suppression/by_store/{type} | Show all excluded displayIds for vehtype | |
2 | api/for_store/suppression/by_store/{id} | Show all excluded articles for storage | |
3 | api/for_store/websource/{websource} | Show all available articles for websource | |
Proxy methods | |||
4 | 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 | /api/for_store/search/by_brand/{brand}/{model} | Show tires, that available in catalog, by brand and number. Using websource filters | |
6 | /api/for_store/search/by-vehicle | Show tires, that available in catalog, by vehicle. Using store and vehtype, websource filters | |
7 | /api/for_store/tire/category/{category} | To get the tire catalog details. Used websource, store filters | |
8 | /api/for_store/size/reverse | To retrieve the entire distinct vehicle rim diameter values.use websource | |
9 | /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
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
{
"statusCode": "SUCCESSFUL",
"payload": {
"suppressionVehicle": {
"vehType": "van",
"displayIds": [
"88955"
],
"articles": [
"1372",
"1373",
"1374",
"1375",
"1376",
"3230",
"3232",
"3233",
"11442",
"11459",
"11476",
"11510",
"11527",
"11561",
"11578",
"11612",
"11629",
"11646",
"11663",
"11680",
"11748",
"11765",
"11782",
"11799",
"11816",
"11833",
"11850",
"11867",
"11901",
"11918",
"17800",
"19687",
"19721",
"19738",
"19772",
"19789"
]
}
}
}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.
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
{
"statusCode": "SUCCESSFUL",
"payload": {
"suppressionStore": {
"storeNumber": "26824",
"displayIds": [
"77268",
"85386"
],
"articles": [
"7091878",
"7091879",
"7091880",
"7091881",
"7091882",
"7091883",
"7091884",
"7091885"
]
}
}
}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.
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(trimmed)
{
"statusCode": "SUCCESSFUL",
"payload": {
"websource": {
"websourceName": "FCAC",
"articles": [
"9",
"10",
"11",
"107",
"168",
"172",
"173",
"174",
"175",
"176",
"177",
"200",
"214",
"215",
"216",
"223",
......
]
}
}
}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.
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.
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.
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.
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.
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 |
|---|---|---|