Info
The stockist API is designed to be a predictable and intuitive interface for interacting with group wide stockists.
All Stockists
Get an array of all Silentnight stockists
api/stockists
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockists"
const url = new URL("https://api.silentnight.io/api/stockists");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"stockist_name": "Crockerton Furniture Centre Ltd",
"stockist_address_line1": "Crockerton Shopping Centre",
"stockist_address_line2": "",
"stockist_city": "Warminster",
"stockist_county": "",
"stockist_postcode": "BA12 8AP",
"latitude": "51.180296",
"longitude": "-2.192241",
"stockist_tel_number": "01985-211690",
"stockist_email": "",
"stockist_site_url": "http:\/\/www.silentnight.co.uk\/local-stockists\/south-west-England\/crockerton-furniture-centre\/||",
"brand_codes": "150, 150, 150, 150, 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": "219, 230, 235, 235, 239, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257",
"range_descriptions": "",
"model_codes": "2ET, 2AD, 1ZJ, 2AR, 2AQ, 2HG, 2HI, 2HK, 2HL, 2HO, 2HQ, 2HS, 2HU, 2HV, 2HW, 2HX",
"model_descriptions": "",
"customer_number": "30014",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "",
"sales_rep_name": "",
"commitment": "HSR",
"created_at": "2019-03-10 21:30:03",
"updated_at": "2019-03-10 21:30:03"
},
{
"id": 2,
"stockist_name": "Bensons For Beds",
"stockist_address_line1": "Unit 7",
"stockist_address_line2": "",
"stockist_city": "Llanelli",
"stockist_county": "",
"stockist_postcode": "SA14 9UZ",
"latitude": "51.679908",
"longitude": "-4.129319",
"stockist_tel_number": "01554-778340",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": "250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": "255, 264, 264, 264, 264",
"range_descriptions": "",
"model_codes": "2GX, 2K5, 2K7, 2K8, 2KA",
"model_descriptions": "",
"customer_number": "30025",
"kam_name": "David Johnstone",
"search_type": "",
"channel_code": "MUL",
"forecasting_code": "",
"sales_rep_name": "",
"commitment": "M",
"created_at": "2019-03-10 21:30:03",
"updated_at": "2019-03-10 21:30:03"
},
{
"id": 3,
"stockist_name": "Bensons for Beds",
"stockist_address_line1": "Within Harveys",
"stockist_address_line2": "",
"stockist_city": "Milton Keynes",
"stockist_county": "",
"stockist_postcode": "MK6 1AZ",
"latitude": "52.029216",
"longitude": "-0.767317",
"stockist_tel_number": "01908-237174",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": "250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": "255, 264, 264, 264, 264",
"range_descriptions": "",
"model_codes": "2GX, 2K5, 2K7, 2K8, 2KA",
"model_descriptions": "",
"customer_number": "30032",
"kam_name": "David Johnstone",
"search_type": "",
"channel_code": "MUL",
"forecasting_code": "",
"sales_rep_name": "",
"commitment": "M",
"created_at": "2019-03-10 21:30:03",
"updated_at": "2019-03-10 21:30:03"
}
]
}
HTTP Request
GET api/stockists
Brands
Returns a list of stockists based on a specified brand.
Multiple brands can be specified by comma separation, an example api/stockist/brand/250,150
api/stockist/brand/{brandId}
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockist/brand/{brandId}" \
-H "Content-Type: application/json" \
-d '{"brandId":"250"}'
const url = new URL("https://api.silentnight.io/api/stockist/brand/{brandId}");
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
}
let body = {
"brandId": "250"
}
fetch(url, {
method: "GET",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"stockist_name": "Crockerton Furniture Centre Ltd",
"stockist_address_line1": "Crockerton Shopping Centre",
"stockist_address_line2": "",
"stockist_city": "Warminster",
"stockist_county": "",
"stockist_postcode": "BA12 8AP",
"latitude": "51.180296",
"longitude": "-2.192241",
"stockist_tel_number": "01985-211690",
"stockist_email": "",
"stockist_site_url": "http:\/\/www.silentnight.co.uk\/local-stockists\/south-west-England\/crockerton-furniture-centre\/||",
"brand_codes": "150, 150, 150, 150, 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": "219, 230, 235, 235, 239, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257",
"range_descriptions": "",
"model_codes": "2ET, 2AD, 1ZJ, 2AR, 2AQ, 2HG, 2HI, 2HK, 2HL, 2HO, 2HQ, 2HS, 2HU, 2HV, 2HW, 2HX",
"model_descriptions": "",
"customer_number": "30014",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "",
"sales_rep_name": "",
"commitment": "HSR",
"created_at": "2019-03-10 21:30:03",
"updated_at": "2019-03-10 21:30:03"
},
{
"id": 2,
"stockist_name": "Bensons For Beds",
"stockist_address_line1": "Unit 7",
"stockist_address_line2": "",
"stockist_city": "Llanelli",
"stockist_county": "",
"stockist_postcode": "SA14 9UZ",
"latitude": "51.679908",
"longitude": "-4.129319",
"stockist_tel_number": "01554-778340",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": "250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": "255, 264, 264, 264, 264",
"range_descriptions": "",
"model_codes": "2GX, 2K5, 2K7, 2K8, 2KA",
"model_descriptions": "",
"customer_number": "30025",
"kam_name": "David Johnstone",
"search_type": "",
"channel_code": "MUL",
"forecasting_code": "",
"sales_rep_name": "",
"commitment": "M",
"created_at": "2019-03-10 21:30:03",
"updated_at": "2019-03-10 21:30:03"
}
]
}
HTTP Request
GET api/stockist/brand/{brandId}
Body Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| brandId | string | required | The id of a brand. |
Channel
Returns a list of stockists based a provided channel code
api/stockist/channel/{channelCode}
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockist/channel/{channelCode}" \
-H "Content-Type: application/json" \
-d '{"channelID":"IND"}'
const url = new URL("https://api.silentnight.io/api/stockist/channel/{channelCode}");
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
}
let body = {
"channelID": "IND"
}
fetch(url, {
method: "GET",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"stockist_name": "Crockerton Furniture Centre Ltd",
"stockist_address_line1": "Crockerton Shopping Centre",
"stockist_address_line2": "",
"stockist_city": "Warminster ",
"stockist_county": "",
"stockist_postcode": "BA12 8AP ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01985-211690",
"stockist_email": "",
"stockist_site_url": "http:\/\/www.silentnight.co.uk\/local-stockists\/south-west-England\/crockerton-furniture-centre\/||",
"brand_codes": " 150, 150, 150, 150, 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": " 219, 230, 235, 272, 272, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 257, 274",
"range_descriptions": "",
"model_codes": " 2ET, 2AD, 1ZJ, 293, 2O2, 2HG, 2HI, 2HK, 2HL, 2HO, 2HQ, 2HS, 2HU, 2HV, 2HW, 2HX, 2NC",
"model_descriptions": "",
"customer_number": "30014",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "GNR",
"sales_rep_name": "",
"commitment": "HSR",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
},
{
"id": 5,
"stockist_name": "Celebrations",
"stockist_address_line1": "Department Store",
"stockist_address_line2": "",
"stockist_city": "Turriff ",
"stockist_county": "",
"stockist_postcode": "AB53 4AA ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01888-563361",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 250, 250",
"brand_descriptions": "",
"range_codes": " 252, 252",
"range_descriptions": "",
"model_codes": " 2FZ, 2GL",
"model_descriptions": "",
"customer_number": "30057",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "AIS",
"sales_rep_name": "",
"commitment": "M ",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
}
]
}
HTTP Request
GET api/stockist/channel/{channelCode}
Body Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| channelID | string | required | The channel code id. |
Commitment
Returns a list of stockists based a provided commitment rating
api/stockist/commitment/{commitmentId}
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockist/commitment/{commitmentId}" \
-H "Content-Type: application/json" \
-d '{"commitmentId":"H"}'
const url = new URL("https://api.silentnight.io/api/stockist/commitment/{commitmentId}");
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
}
let body = {
"commitmentId": "H"
}
fetch(url, {
method: "GET",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 26,
"stockist_name": "Fitzgeralds",
"stockist_address_line1": "77 Westlode Street",
"stockist_address_line2": "",
"stockist_city": "Spalding ",
"stockist_county": "",
"stockist_postcode": "PE11 2AE ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01775-711014",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 150, 150, 150, 250, 250",
"brand_descriptions": "",
"range_codes": " 235, 235, 235, 155, 257",
"range_descriptions": "",
"model_codes": " 1ZH, 1ZJ, 1ZK, 1MT, 2HN",
"model_descriptions": "",
"customer_number": "30358",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "GNR",
"sales_rep_name": "",
"commitment": "H ",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
},
{
"id": 47,
"stockist_name": "Briercliffe Bed Centre",
"stockist_address_line1": "unit 5",
"stockist_address_line2": "",
"stockist_city": "Burnley ",
"stockist_county": "",
"stockist_postcode": "BB10 2HG ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01282-433000",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 150, 150, 150, 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": " 239, 272, 272, 272, 155, 257, 257, 257, 257, 257, 257, 257, 257, 274, 274",
"range_descriptions": "",
"model_codes": " 2AQ, 293, 2O6, W36, 1MT, 2HG, 2HH, 2HI, 2HO, 2HP, 2HQ, 2HT, 2HV, 2N9, 2NC",
"model_descriptions": "",
"customer_number": "30612",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "GNR",
"sales_rep_name": "",
"commitment": "H ",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
}
]
}
HTTP Request
GET api/stockist/commitment/{commitmentId}
Body Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| commitmentId | string | required | The id of a commitment. |
Forecasting
Returns a list of stockists based a provided forecasting code
api/stockist/forecasting/{forecastingCode}
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockist/forecasting/{forecastingCode}" \
-H "Content-Type: application/json" \
-d '{"forcastingCode":"AIS"}'
const url = new URL("https://api.silentnight.io/api/stockist/forecasting/{forecastingCode}");
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
}
let body = {
"forcastingCode": "AIS"
}
fetch(url, {
method: "GET",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 5,
"stockist_name": "Celebrations",
"stockist_address_line1": "Department Store",
"stockist_address_line2": "",
"stockist_city": "Turriff ",
"stockist_county": "",
"stockist_postcode": "AB53 4AA ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01888-563361",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 250, 250",
"brand_descriptions": "",
"range_codes": " 252, 252",
"range_descriptions": "",
"model_codes": " 2FZ, 2GL",
"model_descriptions": "",
"customer_number": "30057",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "AIS",
"sales_rep_name": "",
"commitment": "M ",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
},
{
"id": 6,
"stockist_name": "Bakers & Larner Home Furnishing",
"stockist_address_line1": "Lion House",
"stockist_address_line2": "",
"stockist_city": "Holt ",
"stockist_county": "",
"stockist_postcode": "NR25 6BN ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01263-710498",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 250, 250",
"brand_descriptions": "",
"range_codes": " 155, 252",
"range_descriptions": "",
"model_codes": " 1MT, 2FZ",
"model_descriptions": "",
"customer_number": "30062",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "AIS",
"sales_rep_name": "",
"commitment": "M ",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
}
]
}
HTTP Request
GET api/stockist/forecasting/{forecastingCode}
Body Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| forcastingCode | string | required | The forecasting code. |
Models
Returns a list of stockists based on a specified model
api/stockist/model/{modelId}
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockist/model/{modelId}" \
-H "Content-Type: application/json" \
-d '{"modelId":"ILM"}'
const url = new URL("https://api.silentnight.io/api/stockist/model/{modelId}");
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
}
let body = {
"modelId": "ILM"
}
fetch(url, {
method: "GET",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 37,
"stockist_name": "Bed World",
"stockist_address_line1": "57 Beverley Road",
"stockist_address_line2": "",
"stockist_city": "Hull",
"stockist_county": "",
"stockist_postcode": "HU3 1XL",
"latitude": "53.751351",
"longitude": "-0.3484",
"stockist_tel_number": "01482-226425",
"stockist_email": "",
"stockist_site_url": "http:\/\/www.silentnight.co.uk\/local-stockists\/east-midlands-in-england\/bedworld-hull-ltd||",
"brand_codes": "150, 150, 150, 150, 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": "219, 235, 235, 235, 235, 155, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222",
"range_descriptions": "",
"model_codes": "2ET, 1ZH, 1ZJ, 1ZK, 2AR, 1MT, 1VU, 1VV, 1VW, 1VX, 1VZ, 1WD, 1WE, 1WF, 1WG, 1WH",
"model_descriptions": "",
"customer_number": "30519",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "",
"sales_rep_name": "",
"commitment": "SSC",
"created_at": "2019-03-09 10:48:59",
"updated_at": "2019-03-09 10:48:59"
},
{
"id": 70,
"stockist_name": "Discount Beds (Sheffield) Ltd",
"stockist_address_line1": "The Old School House",
"stockist_address_line2": "",
"stockist_city": "Sheffield",
"stockist_county": "",
"stockist_postcode": "S2 4UD",
"latitude": "53.367625",
"longitude": "-1.473185",
"stockist_tel_number": "01142-584656",
"stockist_email": "",
"stockist_site_url": "http:\/\/www.silentnight.co.uk\/local-stockists\/east-midlands-in-england\/discount-beds||http:\/\/www.rest-assured.co.uk\/where-to-buy\/local\/discount-beds,sheffield\/",
"brand_codes": "150, 150, 150, 250, 250, 250, 250, 250, 250",
"brand_descriptions": "",
"range_codes": "235, 235, 235, 155, 222, 222, 222, 246, 246",
"range_descriptions": "",
"model_codes": "1ZH, 1ZJ, 1ZK, 1MT, 1VV, 1VZ, 1WA, 1VT, 1VU",
"model_descriptions": "",
"customer_number": "30895",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "",
"sales_rep_name": "",
"commitment": "SSC",
"created_at": "2019-03-09 10:48:59",
"updated_at": "2019-03-09 10:48:59"
}
]
}
HTTP Request
GET api/stockist/model/{modelId}
Body Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| modelId | string | required | The id of a model. |
Ranges
Returns a list of stockists based on a specified range
api/stockist/range/{rangeId}
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockist/range/{rangeId}" \
-H "Content-Type: application/json" \
-d '{"rangeId":"255"}'
const url = new URL("https://api.silentnight.io/api/stockist/range/{rangeId}");
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
}
let body = {
"rangeId": "255"
}
fetch(url, {
method: "GET",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 5,
"stockist_name": "Celebrations",
"stockist_address_line1": "Department Store",
"stockist_address_line2": "",
"stockist_city": "Turriff ",
"stockist_county": "",
"stockist_postcode": "AB53 4AA ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01888-563361",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 250, 250",
"brand_descriptions": "",
"range_codes": " 252, 252",
"range_descriptions": "",
"model_codes": " 2FZ, 2GL",
"model_descriptions": "",
"customer_number": "30057",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "AIS",
"sales_rep_name": "",
"commitment": "M ",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
},
{
"id": 6,
"stockist_name": "Bakers & Larner Home Furnishing",
"stockist_address_line1": "Lion House",
"stockist_address_line2": "",
"stockist_city": "Holt ",
"stockist_county": "",
"stockist_postcode": "NR25 6BN ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "01263-710498",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 250, 250",
"brand_descriptions": "",
"range_codes": " 155, 252",
"range_descriptions": "",
"model_codes": " 1MT, 2FZ",
"model_descriptions": "",
"customer_number": "30062",
"kam_name": "Stuart Law",
"search_type": "",
"channel_code": "IND",
"forecasting_code": "AIS",
"sales_rep_name": "",
"commitment": "M ",
"created_at": "2019-08-08 10:02:37",
"updated_at": "2019-08-08 10:02:37"
}
]
}
HTTP Request
GET api/stockist/range/{rangeId}
Body Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| rangeId | string | required | The id of a range. |
Search
Returns a list of stockists based on one defined query parameters
api/stockist/search
Example request:
curl -X GET -G "https://api.silentnight.io/api/stockist/search"
const url = new URL("https://api.silentnight.io/api/stockist/search");
let params = {
"name": "Silentnight Showroom",
"postcode": "SA14 9UZ",
"telephone": "01985-211690",
"city": "Manchester",
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1157,
"stockist_name": "Silentnight Showroom BSQ",
"stockist_address_line1": "Unit 2A",
"stockist_address_line2": "",
"stockist_city": "Manchester ",
"stockist_county": "",
"stockist_postcode": "M17 8AS ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "---",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 150, 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 350, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900",
"brand_descriptions": "",
"range_codes": " 242, 242, 126, 190, 202, 202, 211, 211, 211, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 242, 242, 249, 249, 258, 258, 266, 266, 103, 055, 055, 055, 055, 055, 055, 055, 055, 055, 055, 126, 198",
"range_descriptions": "",
"model_codes": " 153, E53, 616, L35, 1JH, 1JK, 1SN, 1SP, 1SQ, 1VT, 1VU, 1VV, 1VW, 1VX, 1VY, 1VZ, 1WA, 1WB, 1WC, 1WD, 1WE, 1WF, 1WG, 1WH, 2AF, 2AJ, 2AN, 1WR, 1WS, 2BX, 375, 2EW, 2FB, 2HY, 2I3, 2KM, 2KN, 1CA, 1B7, 1WK, A80, F37, K08, M04, S30, ZPC, ZPD, ZY2, 1WU, 1EY",
"model_descriptions": "",
"customer_number": "38722",
"kam_name": "Beth Hansell",
"search_type": "",
"channel_code": "SPR",
"forecasting_code": "SHR",
"sales_rep_name": "",
"commitment": "SSC",
"created_at": "2019-08-08 10:02:40",
"updated_at": "2019-08-08 10:02:40"
},
{
"id": 1158,
"stockist_name": "Silentnight Showroom LKS",
"stockist_address_line1": "Unit 260",
"stockist_address_line2": "",
"stockist_city": "West Thurrock ",
"stockist_county": "",
"stockist_postcode": "RM20 2ZP ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "---",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 150, 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 350, 350, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900",
"brand_descriptions": "",
"range_codes": " 242, 242, 156, 202, 211, 211, 211, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 242, 242, 249, 258, 258, 266, 266, 266, 103, 103, 055, 055, 055, 055, 055, 055, 055, 055, 055, 055, 126, 198",
"range_descriptions": "",
"model_codes": " 153, E53, J75, 1JH, 1SN, 1SP, 1SQ, 1VT, 1VU, 1VV, 1VW, 1VX, 1VY, 1VZ, 1WA, 1WB, 1WC, 1WD, 1WE, 1WF, 1WG, 1WH, 2AF, 2AJ, 2AN, 1WS, 1WT, ZUZ, 2BX, 375, 2FB, 2HY, 2I3, 2KM, 2KN, 2KP, 2DV, 2DW, 1B7, 1WK, A80, F37, K08, M04, S30, ZPC, ZPD, ZY2, 1WU, 1EY",
"model_descriptions": "",
"customer_number": "39525",
"kam_name": "Beth Hansell",
"search_type": "",
"channel_code": "SPR",
"forecasting_code": "SHR",
"sales_rep_name": "",
"commitment": "SSC",
"created_at": "2019-08-08 10:02:40",
"updated_at": "2019-08-08 10:02:40"
},
{
"id": 1159,
"stockist_name": "Silentnight Showroom KNG",
"stockist_address_line1": "Unit 10 Bentall Centre",
"stockist_address_line2": "",
"stockist_city": "Kingston upon Thames ",
"stockist_county": "",
"stockist_postcode": "KT1 1TP ",
"latitude": "",
"longitude": "",
"stockist_tel_number": "---",
"stockist_email": "",
"stockist_site_url": "#N\/A",
"brand_codes": " 150, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 900, 900, 900, 900, 900, 900, 900",
"brand_descriptions": "",
"range_codes": " 242, 202, 211, 211, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 242, 258, 258, 266, 266, 055, 055, 055, 055, 055, 055, 198",
"range_descriptions": "",
"model_codes": " E53, 1JH, 1SN, 1SP, 1VT, 1VU, 1VV, 1VW, 1VX, 1VY, 1WB, 1WF, 1WG, 1WH, 2AJ, 1WR, 1WS, 375, 2HY, 2I3, 2KN, 2KP, 1B7, 1WK, A80, S30, ZPD, ZY2, 1EY",
"model_descriptions": "",
"customer_number": "39526",
"kam_name": "Beth Hansell",
"search_type": "",
"channel_code": "SPR",
"forecasting_code": "SHR",
"sales_rep_name": "",
"commitment": "SSC",
"created_at": "2019-08-08 10:02:40",
"updated_at": "2019-08-08 10:02:40"
}
]
}
HTTP Request
GET api/stockist/search
Query Parameters
| Parameter | Status | Description |
|---|---|---|
| name | optional | optional The name of a stockist. |
| postcode | optional | optional The post code of a stockist. |
| telephone | optional | optional The telephone number of a stockist. |
| city | optional | optional The city of a stockist. |