Nominal case
One offer match
-
Given I have the merchant URL http://www.mymerchant.com?offerId=111&utmCampaign=kelkoo
-
When I call KelkooGroup API with a valid JWT and merchantUrl parameter on https://api.kelkoogroup.net/publisher/shopping/v2/search/link?country=fr
-
Then I get a response with status 200
-
And I get following json body response
{
"result": {
"offer": {
"offerId": "111",
"offerTitle": "myOffer",
"offerImageUrl": "http://www.mymerchant.com/offerId/111/image.jpg",
"offerUrl": "http://www.mymerchant.com?offerId=111",
"goUrl": "https://fr-go.kelkoogroup.net/sitesearchGo?.ts=1546300800000&.sig=FlZdZVEuZ.UlQBS_dopEChdeYuw-&affiliationId=123&catId=133401&comId=100480137&country=fr&merchantid=100480137&offerId=111&searchId=1076992041209_1556144897286_189200&service=30&tokenId=tokenId1234&url=http%3A%2F%2Fwww.mymerchant.com%3FofferId%3D111%26utmCampaign%3Dkelkoo",
"link": "https://fr-go.kelkoogroup.net/permanentLinkGo?country=fr&id=6827289c-e7f0-49f3-93b3-344bd0033b95&merchantUrl=http%3A%2F%2Fwww.mymerchant.com%3FofferId%3D111%26utmCampaign%3Dkelkoo",
"estimatedCPC": 0.14,
"estimatedMobileCPC": 0.108,
"merchantTier": "Static",
"currency": "FRA"
}
}
}
Fallback case
No offer match with fallback - details
-
Given I have the merchant URL http://fnac.com?offerId=222&utmCampaign=kelkoo
-
And availabilities for traffic in country fr are
|
profileId |
comId |
links |
|---|---|---|
|
321 |
12345 |
true |
-
When I call KelkooGroup API with a valid JWT and merchantUrl parameter on https://api.kelkoogroup.net/publisher/shopping/v2/search/link?country=fr&fallback=true
-
Then I get a response with status 200
-
And I get following json body response
{
"result": {
"directory": {
"merchantId": 12345,
"merchantName": "Fnac",
"merchantLogo": "http://r6.kelkoo.com/data/merchantlogos/12345/logo.png",
"merchantUrl": "http://www.fnac.com",
"goUrl": "https://fr-go.kelkoogroup.net/merchantGo?.ts=1546300800000&.sig=sJkYFRynunEUMgbSWk_13x50YDw-&affiliationId=123&comId=12345&country=fr&cpcId=654&merchantName=Fnac&searchId=1076992041209_1556144897286_189200&service=30&tokenId=tokenId1234&url=http%3A%2F%2Ffnac.com%3FofferId%3D222%26utmCampaign%3Dkelkoo",
"link": "https://fr-go.kelkoogroup.net/permanentLinkGo?country=fr&id=6827289c-e7f0-49f3-93b3-344bd0033b95&merchantUrl=http%3A%2F%2Ffnac.com%3FofferId%3D222%26utmCampaign%3Dkelkoo",
"estimatedCPC": 0.14,
"estimatedMobileCPC": 0.114,
"merchantTier": "Static",
"currency": "EUR"
}
}
}
Custom parameter case
The custom parameters provided are added in the Go URL
One offer match - use custom parameters
-
Given I have the merchant URL http://www.mymerchant.com?offerId=111&utmCampaign=kelkoo
-
When I call KelkooGroup API with a valid JWT and merchantUrl parameter on https://api.kelkoogroup.net/publisher/shopping/v2/search/link?country=fr&custom1=mycustom1&custom2=mycustom2&custom3=mycustom3
-
Then I get a response with status 200
-
And I get following json body response
{
"result": {
"offer": {
"offerId": "111",
"offerTitle": "myOffer",
"offerImageUrl": "http://www.mymerchant.com/offerId/111/image.jpg",
"offerUrl": "http://www.mymerchant.com?offerId=111",
"goUrl": "https://fr-go.kelkoogroup.net/sitesearchGo?.ts=1546300800000&.sig=FlZdZVEuZ.UlQBS_dopEChdeYuw-&affiliationId=123&catId=133401&comId=100480137&country=fr&merchantid=100480137&offerId=111&searchId=1076992041209_1556144897286_189200&service=30&tokenId=tokenId1234&url=http%3A%2F%2Fwww.mymerchant.com%3FofferId%3D111%26utmCampaign%3Dkelkoo&custom1=mycustom1&custom2=mycustom2&custom3=mycustom3",
"link": "https://fr-go.kelkoogroup.net/permanentLinkGo?country=fr&custom1=mycustom1&custom2=mycustom2&custom3=mycustom3&id=6827289c-e7f0-49f3-93b3-344bd0033b95&merchantUrl=http%3A%2F%2Fwww.mymerchant.com%3FofferId%3D111%26utmCampaign%3Dkelkoo",
"estimatedCPC": 0.14,
"estimatedMobileCPC": 0.108,
"merchantTier": "Static",
"currency": "FRA"
}
}
}