All offer fields
-
Given the input parameters are
|
name |
value |
|---|---|
|
fieldsAlias |
all |
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 200
-
And the json response contains offers with the following content
{
"offers": [
{
"offerId": "7701b65469b409bcba9272e6be514c6d",
"title": "PUMA Chaussure de course Flyer Runner, Noir, Taille 48.5, Chaussures",
"lastUpdateDate": "2019-02-25T00:00:00Z",
"description": "PUMA Chaussure de course Flyer Runner",
"country": "fr",
"price": 250,
"priceWithoutRebate": 500,
"monthPrice": 10,
"rebatePercentage": 50,
"deliveryCost": 50,
"priceDiscountText": "Promo!",
"totalPrice": 300,
"currency": "€",
"availabilityStatus": "available_on_order",
"timeToDeliver": "3 days",
"condition": "new",
"greenLabel": "green",
"ethicalType": "Recycled materials",
"flag": {
"offensiveContent": true,
"greenProduct": true,
"saleEvent": false
},
"code": {
"ean": "ean1",
"sku": "sku123",
"mpn": "mpn123",
"gtin": "00000123456789"
},
"images": [
{
"url": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=90&height=90&image=http%3A%2F%2Fwww.lequipe.fr%2Fgoaaaaal.jpg&sign=wvoKAr14OhTXzXNUUSROYX_X954vCV5cgavzuaMcXtg-",
"zoomUrl": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=auto&height=auto&image=http%3A%2F%2Fwww.lequipe.fr%2Fgoaaaaal.jpg&sign=wvoKAr14OhTXzXNUUSROYX_X954vCV5cgavzuaMcXtg-"
},
{
"url": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=90&height=90&image=http%3A%2F%2Fwww.dateam.us%2Fbuuut.jpg&sign=IOEsIaY5laeLFTOiaY50Ptv3BmC6aTbHYc6L9_gNp5c-",
"zoomUrl": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=auto&height=auto&image=http%3A%2F%2Fwww.dateam.us%2Fbuuut.jpg&sign=IOEsIaY5laeLFTOiaY50Ptv3BmC6aTbHYc6L9_gNp5c-"
}
],
"features": {
"color": {
"label": "Couleur",
"values": []
},
"gender": {
"label": "Genre",
"values": [
{
"label": "Homme",
"value": "homme"
}
]
},
"material": {
"label": "Matériaux",
"values": [
{
"label": "Synthétique",
"value": "synthetique"
}
]
},
"type": {
"values": []
}
},
"offerUrl": {
"landingUrl": "http://fc.barcelona.es/leo"
},
"goUrl": "https://fr-go.kelkoogroup.net/sitesearchGo?.ts=1546300800000&.sig=6dmeuQZKV39lhcz2sETDp40dt6I-&affiliationId=1234&comId=777&country=fr&offerId=7701b65469b409bcba9272e6be514c6d&searchId=1076992041209_1556144897286_189200&service=36&tokenId=tokenId1234",
"estimatedCpc": 0.1,
"estimatedMobileCpc": 0.1,
"brand": {
"id": 5,
"name": "Brandy"
},
"merchant": {
"id": 777,
"name": "Lionel Messi",
"logoUrl": "https://r6.kelkoo.com/data/merchantlogos/777/logo.jpg",
"websiteId": 9777
},
"merchantProvidedCategory": "Chaussures à crampons",
"category": {
"id": 4000,
"name": "Gestes techniques"
},
"googleProductCategory": {
"id": 4444
},
"ecotax": 0.3,
"madeIn": "China",
"efficiencyClass": "A+++",
"product": {
"id": "123456abcd",
"popularity": 89
},
"performanceScore": 0.666,
"sellerName": "some seller"
}
]
}
Offer fields using minimal alias
-
Given the input parameters are
|
name |
value |
|---|---|
|
fieldsAlias |
minimal |
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 200
-
And the json response contains offers with the following content
{
"offers": [
{
"offerId": "7701b65469b409bcba9272e6be514c6d",
"title": "PUMA Chaussure de course Flyer Runner, Noir, Taille 48.5, Chaussures",
"price": 250,
"priceWithoutRebate": 500,
"rebatePercentage": 50,
"deliveryCost": 50,
"totalPrice": 300,
"currency": "€",
"availabilityStatus": "available_on_order",
"timeToDeliver": "3 days",
"images": [
{
"url": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=90&height=90&image=http%3A%2F%2Fwww.lequipe.fr%2Fgoaaaaal.jpg&sign=wvoKAr14OhTXzXNUUSROYX_X954vCV5cgavzuaMcXtg-",
"zoomUrl": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=auto&height=auto&image=http%3A%2F%2Fwww.lequipe.fr%2Fgoaaaaal.jpg&sign=wvoKAr14OhTXzXNUUSROYX_X954vCV5cgavzuaMcXtg-"
}
],
"goUrl": "https://fr-go.kelkoogroup.net/sitesearchGo?.ts=1546300800000&.sig=6dmeuQZKV39lhcz2sETDp40dt6I-&affiliationId=1234&comId=777&country=fr&offerId=7701b65469b409bcba9272e6be514c6d&searchId=1076992041209_1556144897286_189200&service=36&tokenId=tokenId1234",
"estimatedCpc": 0.1,
"estimatedMobileCpc": 0.1,
"brand": {
"name": "Brandy"
},
"merchant": {
"id": 777
},
"category": {
"id": 4000
}
}
]
}
Offer fields using minimal alias and additional fields
-
Given the input parameters are
|
name |
value |
|---|---|
|
fieldsAlias |
minimal |
|
additionalFields |
categoryName,flagOffensiveContent,codeSku,merchantLogoUrl |
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 200
-
And the json response contains offers with the following content
{
"offers": [
{
"offerId": "7701b65469b409bcba9272e6be514c6d",
"title": "PUMA Chaussure de course Flyer Runner, Noir, Taille 48.5, Chaussures",
"price": 250,
"priceWithoutRebate": 500,
"rebatePercentage": 50,
"deliveryCost": 50,
"totalPrice": 300,
"currency": "€",
"availabilityStatus": "available_on_order",
"timeToDeliver": "3 days",
"flag": {
"offensiveContent": true
},
"code": {
"sku": "sku123"
},
"images": [
{
"url": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=90&height=90&image=http%3A%2F%2Fwww.lequipe.fr%2Fgoaaaaal.jpg&sign=wvoKAr14OhTXzXNUUSROYX_X954vCV5cgavzuaMcXtg-",
"zoomUrl": "http://r.kelkoo.com/resize.php?country=fr&merchantId=777&categoryId=4000&trackingId=1234&width=auto&height=auto&image=http%3A%2F%2Fwww.lequipe.fr%2Fgoaaaaal.jpg&sign=wvoKAr14OhTXzXNUUSROYX_X954vCV5cgavzuaMcXtg-"
}
],
"goUrl": "https://fr-go.kelkoogroup.net/sitesearchGo?.ts=1546300800000&.sig=6dmeuQZKV39lhcz2sETDp40dt6I-&affiliationId=1234&comId=777&country=fr&offerId=7701b65469b409bcba9272e6be514c6d&searchId=1076992041209_1556144897286_189200&service=36&tokenId=tokenId1234",
"estimatedCpc": 0.1,
"estimatedMobileCpc": 0.1,
"brand": {
"name": "Brandy"
},
"merchant": {
"id": 777,
"logoUrl": "https://r6.kelkoo.com/data/merchantlogos/777/logo.jpg"
},
"category": {
"id": 4000,
"name": "Gestes techniques"
}
}
]
}
Choose specific fields
-
Given the input parameters are
|
name |
value |
|---|---|
|
fieldsAlias |
none |
|
additionalFields |
title,offerId |
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 200
-
And the json response contains offers with the following content
{
"offers": [
{
"offerId": "7701b65469b409bcba9272e6be514c6d",
"title": "PUMA Chaussure de course Flyer Runner, Noir, Taille 48.5, Chaussures"
}
]
}