GET - Extended product information by Eancode
Get extended product information based on Eancode
URL
Verb |
Url |
GET - Basic authentication |
/api/ExtendedProduct/GetExtendedProductByEancode?ShopCode=shopcode&Eancode=eancode |
Request Parameters
Parameter |
Description |
Format |
ShopCode |
Shop identifier as provided with your account |
string |
Eancode |
Ean13 code of the product |
string |
Response Elements
[
{
"Identifier": "LX_NL_123",
"Brand": "Brand",
"Eancode": "1234567890123",
"BasicData":
{
"ProductName": "Webshop name",
"Content": "100",
"Unit": "ml",
"BronId": 1 /* Id of the Bron */
},
"Bron":
{
"Id": "1", /* Id of the Bron */
"Name": "LuxeNL", /* Name of the Bron */
"Number": "LU0000001" /* Number of the Bron */
},
"AlternativeDescriptions":
[
{
"Type":"Detailed Description", /* The type of the description */
"Description":"Extended description for the Webshop", /* The description itself */
"BronId": 1 /* Id of the Bron */
}
],
"ApplicationAreas":
[
{
"Application": "Feet", /* where to use */
"BronId": 493606 /* Id of the Bron */
}
],
"Variant":
{
"Name": "Feet", /* Variant of the product */
"BronId": 1 /* Id of the Bron */
},
"Pictures":
[
{
"URL":"https://retailnxtapitest.etc", /* Full Url of the Picture */
""BronId": 1 /* Id of the Bron */
}
],
"Color":
{
"Name":"Blond",
"BronId: 1 /* Id of the Bron */
},
"FPC": /* Franchise Product Category */
[
{
"Number": "1-1000",
"Description": "Voet verzorging",
"Mothergroup": {}, /* higher level Category */
"ProductCategoryName": "Keep it Tight", /* highest level */
"Children": [], /* categories below current category */
"LowestLevel": true /* is this category the lowest level */
}
]
,
"Genders":
[
{
"Name": "Unisex",
"BronId": 493606 /* Id of the Bron */
}
],
"TargetGroups":
[
{
"Name": "Volwassenen",
"BronId": 493606 /* Id of the Bron */
}
],
"Usage":
{
"Usage": "Olie",
"BronId": 493606 /* Id of the Bron */
},
"ProductOptions":
[
{
"Option":"Gevoelige huid",
"BronId": 493606 /* Id of the Bron */
}
],
"SkinType":
{
"Name": "Droge huid",
"BronId": 493606 /* Id of the Bron */
},
"HairType":
{
"Name": "Dof haar",
"BronId": 493606 /* Id of the Bron */
},
"DesiredEffects":
[
{
"Effect": "Herstellend",
"BronId": 493606 /* Id of the Bron */
}
],
"ProductIngredients":
[
{
"Ingredient":"Vitamine C",
"BronId": 493606 /* Id of the Bron */
}
],
"SPFFactor":
{
"Factor":"50",
"BronId": 493606 /* Id of the Bron */
},
"BodyPart": {
"Name": "Voet",
"BronId": 493606 /* Id of the Bron */
},
"Sports":
[
{
"Sport":"Hockey",
"BronId": 493606 /* Id of the Bron */
}
],
"Complaints":
[
{
"Complaint":"Holle voet",
"BronId": 493606 /* Id of the Bron */
}
],
"ConsumerProductGroups":
[
{
"MainMenu": "Zelfzorg",
"ProductCategory": "Benen & Voetverzorging",
"Category": "Dagelijkse voetverzorging",
"BronId": 493606 /* Id of the Bron */
}
],
"Fragrances":
[
{
"Name": "Lavendel",
"BronId": 493606 /* Id of the Bron */
}
],
"Flavors":
[
{
"Name": "Honing",
"BronId": 493606 /* Id of the Bron */
}
],
"Videos":
[
{
"Title":"How to use this product", /* Title of the video */
"URL":"https://retailnxtapitest.etc", /* Full Url of the Video */
"BronId": 1 /* Id of the Bron */
}
],
"Packaging":
{
"Length":1.0,
"Width":1.0,
"Heigth":1.0,
"Volume":1.0,
"Weight":1.0,
"BronId": 1 /* Id of the Bron */
},
"Size":
{
"Length":1.0,
"Width":1.0,
"Heigth":1.0,
"Volume":1.0,
"Weight":1.0
},
"BookInformation":
{
"Author":"William Shakespeare",
"Publisher":"Het groene boek",
"Edition":"Editon 5",
"BookForm":"Paperback",
"NSTC":"501625941",
"CoverText":"https://link.to.covertext.pdf",
"Language":"eng",
"OriginalTitle":"Original title of the book"
}
}
]
Code Samples
C#.net
public string RequestUrlGET(string URL, string SourceUser, string SourcePassword)
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(URL);
string credentials = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(SourceUser + ":" + SourcePassword));
request.Headers.Add("Authorization", "Basic " + credentials);
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
using (StreamReader content = new StreamReader(response.GetResponseStream()))
{
return content.ReadToEnd();
}
}
}