BSRO For Store Output (v 1.2.1)

BSRO For Store Output (v 1.2.1)

OVERVIEW

Output REST. API to get exclude list by request.

#

Api method

url

description

#

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}

EGhttps://bsro.tireconnect.ca/api/for_store/suppression/by_vehtype/VAN

Request Parameters

Parameter(s)

example value and explanation if needed

Required

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

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}

EGhttps://bsro.tireconnect.ca/api/for_store/suppression/by_store/26824

Request Parameters

Parameter(s)

example value and explanation if needed

Required

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

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: 

TP_SUPPRESSION_PBID_SKU

RTMS_WEBDB.TP_STORE_LIST

TP_SUPPRESSION_PBID_SKU.CSV

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}

EGhttps://bsro.tireconnect.ca/api/for_store/websource/FCAC

Request Parameters

Parameter(s)

example value and explanation if needed

Required

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

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

URL: https://bsro.tireconnect.ca/api/search/by_size?cross=195&aspect=65&rim=15&websource={websource}&storeNumber={storeNumber}

EGhttps://bsro.tireconnect.ca/api/for_store/search/by_size?cross=195&aspect=65&rim=15&websource=FCAC&storeNumber=23817

Request Parameters

Parameter(s)

example value and explanation if needed

Required

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

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}

EGhttps://bsro.tireconnect.ca/api/for_store/search/by_brand/Firestone/AffinityTouring?websource=FCAC

Request Parameters

Parameter(s)

example value and explanation if needed

Required

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

URL: https://bsro.tireconnect.ca/api/for_store/search/by-vehicle?acesVehicleId={acesVehicleId}&websource={websource}&storeNumber={storeNumber}

EGhttps://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

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

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}

EGhttps://bsro.tireconnect.ca/api/for_store/tire/category/winter/FCAC

Request Parameters

Parameter(s)

example value and explanation if needed

Required

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}

EGhttps://bsro.tireconnect.ca/api/for_store/size/reverse/FCAC

Request Parameters

Parameter(s)

example value and explanation if needed

Required

Parameter(s)

example value and explanation if needed

Required