Campaign
Operations for campaigns
Required Roles: ApiPublicQueries
The channel
Use this parameter to override the geo setting "exclude products not in range" for this request.
Filters for field values of returned pushed products.
If the value true is passed, then only the record IDs will be returned, streamlining the results. Additionally, if the Geo module is enabled, the IDs of all markets the product is mapped to will be also included. If you do not need the other information in the results, this will help you to improve performance.
false
The latitude coordinate of the current location.
The longitude coordinate of the current location.
Currently selected markets
Use this parameter to override the geo setting "maximum distance" for this request.
Use this parameter to pass a page ID for which you wish to obtain campaigns.
Use this parameter to pass the purchaser ID. This ID is only needed, if the 'Customer-Specific Info' module is active. Otherwise it will be ignored.
Specifies whether the list of all existing markets and their distance to the search location should be included in the response. By default, the GEO setting "showMarkets" is applied.
This parameter is used to pass an id for the user session. This is important for recognising the user, if you want to trigger personalised campaigns, as well as for FACT-Finder tracking.
OK
Bad Request
Unauthorized
Forbidden
Server Error
GET /fact-finder//rest/v5/campaign/{channel}/page HTTP/1.1
Host: ng-demo.fact-finder.de
Authorization: Basic username:password
Accept: */*
{
"campaigns": [
{
"activeQuestions": [
{
"answers": [
"[Circular Reference]"
],
"id": "text",
"text": "text",
"visible": true
}
],
"ad": true,
"advisorTree": [
{
"answers": [
"[Circular Reference]"
],
"id": "text",
"text": "text",
"visible": true
}
],
"category": "text",
"excludeProductsNotInMarkets": true,
"excludeProductsNotInRange": true,
"feedbackTexts": [
{
"html": true,
"label": "product detail - below product",
"position": 1,
"teaser": true,
"text": "text"
}
],
"flavour": "ADVISOR",
"hits": [
{
"id": "text",
"masterValues": {
"ANY_ADDITIONAL_PROPERTY": {}
},
"variantValues": [
{
"ANY_ADDITIONAL_PROPERTY": {}
}
]
}
],
"id": "text",
"name": "text",
"target": {
"destination": "https://www.shop.de/about-us/contact.html",
"name": "text"
}
}
],
"geo": {
"markets": [
{
"distance": 1,
"hasProducts": true,
"id": "text",
"location": {
"latitude": 1,
"longitude": 1
},
"searchParams": {
"activeAbTests": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"advisorStatus": {
"answerPath": "_0_0_0_1",
"id": "text"
},
"articleNumberSearch": "DETECT",
"customParameters": [
{
"cacheIrrelevant": true,
"name": "text",
"values": [
"text"
]
}
],
"exactSearchMode": "LEGACY",
"excludeProductsNotInRange": true,
"filters": [
{
"filterWarning": "NON_EXISTING_FIELD",
"name": "text",
"substring": true,
"values": [
{
"exclude": true,
"type": "or",
"value": "text"
}
]
}
],
"followSearch": "text",
"hitsPerPage": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"marketIds": [
"text"
],
"maxCountVariants": 1,
"maxDistance": 1,
"page": 1,
"purchaserId": "text",
"query": "text",
"searchField": "text",
"showMarkets": true,
"showPermutedSearchParams": true,
"sortItems": [
{
"name": "text",
"order": "asc"
}
],
"splitDocumentsAt": 1
},
"selected": "TRUE"
}
],
"selectedMarkets": [
{
"distance": 1,
"hasProducts": true,
"id": "text",
"location": {
"latitude": 1,
"longitude": 1
},
"searchParams": {
"activeAbTests": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"advisorStatus": {
"answerPath": "_0_0_0_1",
"id": "text"
},
"articleNumberSearch": "DETECT",
"customParameters": [
{
"cacheIrrelevant": true,
"name": "text",
"values": [
"text"
]
}
],
"exactSearchMode": "LEGACY",
"excludeProductsNotInRange": true,
"filters": [
{
"filterWarning": "NON_EXISTING_FIELD",
"name": "text",
"substring": true,
"values": [
{
"exclude": true,
"type": "or",
"value": "text"
}
]
}
],
"followSearch": "text",
"hitsPerPage": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"marketIds": [
"text"
],
"maxCountVariants": 1,
"maxDistance": 1,
"page": 1,
"purchaserId": "text",
"query": "text",
"searchField": "text",
"showMarkets": true,
"showPermutedSearchParams": true,
"sortItems": [
{
"name": "text",
"order": "asc"
}
],
"splitDocumentsAt": 1
},
"selected": "TRUE"
}
],
"showDistance": true,
"showMarkets": true
}
}
Required Roles: ApiPublicQueries
The channel
Use this parameter to override the geo setting "exclude products not in range" for this request.
Filters for field values of returned pushed products.
Use this parameter to pass a ID (master or product) for which you wish to obtain campaigns.
Use this parameter to determine the type of ID passed to the method. Use 'productNumber' if the given ID is from the field with 'productNumber' role. Use 'id' if it is from the field with 'masterId' role.
productNumber
Possible values: If the value true is passed, then only the record IDs will be returned, streamlining the results. Additionally, if the Geo module is enabled, the IDs of all markets the product is mapped to will be also included. If you do not need the other information in the results, this will help you to improve performance.
false
The latitude coordinate of the current location.
The longitude coordinate of the current location.
Currently selected markets
Use this parameter to override the geo setting "maximum distance" for this request.
Use this parameter to pass the purchaser ID. This ID is only needed, if the 'Customer-Specific Info' module is active. Otherwise it will be ignored.
Specifies whether the list of all existing markets and their distance to the search location should be included in the response. By default, the GEO setting "showMarkets" is applied.
This parameter is used to pass an id for the user session. This is important for recognising the user, if you want to trigger personalised campaigns, as well as for FACT-Finder tracking.
OK
Bad Request
Unauthorized
Forbidden
Server Error
GET /fact-finder//rest/v5/campaign/{channel}/product HTTP/1.1
Host: ng-demo.fact-finder.de
Authorization: Basic username:password
Accept: */*
{
"campaigns": [
{
"activeQuestions": [
{
"answers": [
"[Circular Reference]"
],
"id": "text",
"text": "text",
"visible": true
}
],
"ad": true,
"advisorTree": [
{
"answers": [
"[Circular Reference]"
],
"id": "text",
"text": "text",
"visible": true
}
],
"category": "text",
"excludeProductsNotInMarkets": true,
"excludeProductsNotInRange": true,
"feedbackTexts": [
{
"html": true,
"label": "product detail - below product",
"position": 1,
"teaser": true,
"text": "text"
}
],
"flavour": "ADVISOR",
"hits": [
{
"id": "text",
"masterValues": {
"ANY_ADDITIONAL_PROPERTY": {}
},
"variantValues": [
{
"ANY_ADDITIONAL_PROPERTY": {}
}
]
}
],
"id": "text",
"name": "text",
"target": {
"destination": "https://www.shop.de/about-us/contact.html",
"name": "text"
}
}
],
"geo": {
"markets": [
{
"distance": 1,
"hasProducts": true,
"id": "text",
"location": {
"latitude": 1,
"longitude": 1
},
"searchParams": {
"activeAbTests": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"advisorStatus": {
"answerPath": "_0_0_0_1",
"id": "text"
},
"articleNumberSearch": "DETECT",
"customParameters": [
{
"cacheIrrelevant": true,
"name": "text",
"values": [
"text"
]
}
],
"exactSearchMode": "LEGACY",
"excludeProductsNotInRange": true,
"filters": [
{
"filterWarning": "NON_EXISTING_FIELD",
"name": "text",
"substring": true,
"values": [
{
"exclude": true,
"type": "or",
"value": "text"
}
]
}
],
"followSearch": "text",
"hitsPerPage": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"marketIds": [
"text"
],
"maxCountVariants": 1,
"maxDistance": 1,
"page": 1,
"purchaserId": "text",
"query": "text",
"searchField": "text",
"showMarkets": true,
"showPermutedSearchParams": true,
"sortItems": [
{
"name": "text",
"order": "asc"
}
],
"splitDocumentsAt": 1
},
"selected": "TRUE"
}
],
"selectedMarkets": [
{
"distance": 1,
"hasProducts": true,
"id": "text",
"location": {
"latitude": 1,
"longitude": 1
},
"searchParams": {
"activeAbTests": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"advisorStatus": {
"answerPath": "_0_0_0_1",
"id": "text"
},
"articleNumberSearch": "DETECT",
"customParameters": [
{
"cacheIrrelevant": true,
"name": "text",
"values": [
"text"
]
}
],
"exactSearchMode": "LEGACY",
"excludeProductsNotInRange": true,
"filters": [
{
"filterWarning": "NON_EXISTING_FIELD",
"name": "text",
"substring": true,
"values": [
{
"exclude": true,
"type": "or",
"value": "text"
}
]
}
],
"followSearch": "text",
"hitsPerPage": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"marketIds": [
"text"
],
"maxCountVariants": 1,
"maxDistance": 1,
"page": 1,
"purchaserId": "text",
"query": "text",
"searchField": "text",
"showMarkets": true,
"showPermutedSearchParams": true,
"sortItems": [
{
"name": "text",
"order": "asc"
}
],
"splitDocumentsAt": 1
},
"selected": "TRUE"
}
],
"showDistance": true,
"showMarkets": true
}
}
Required Roles: ApiPublicQueries
The channel
Use this parameter to override the geo setting "exclude products not in range" for this request.
Filters for field values of returned pushed products.
If the value true is passed, then only the record IDs will be returned, streamlining the results. Additionally, if the Geo module is enabled, the IDs of all markets the product is mapped to will be also included. If you do not need the other information in the results, this will help you to improve performance.
false
The latitude coordinate of the current location.
The longitude coordinate of the current location.
Currently selected markets
Use this parameter to override the geo setting "maximum distance" for this request.
Use this parameter to pass product ID(s) for which you wish to obtain campaigns.
Use this parameter to pass the purchaser ID. This ID is only needed, if the 'Customer-Specific Info' module is active. Otherwise it will be ignored.
Specifies whether the list of all existing markets and their distance to the search location should be included in the response. By default, the GEO setting "showMarkets" is applied.
This parameter is used to pass an id for the user session. This is important for recognising the user, if you want to trigger personalised campaigns, as well as for FACT-Finder tracking.
OK
Bad Request
Unauthorized
Forbidden
Server Error
GET /fact-finder//rest/v5/campaign/{channel}/shoppingcart HTTP/1.1
Host: ng-demo.fact-finder.de
Authorization: Basic username:password
Accept: */*
{
"campaigns": [
{
"activeQuestions": [
{
"answers": [
"[Circular Reference]"
],
"id": "text",
"text": "text",
"visible": true
}
],
"ad": true,
"advisorTree": [
{
"answers": [
"[Circular Reference]"
],
"id": "text",
"text": "text",
"visible": true
}
],
"category": "text",
"excludeProductsNotInMarkets": true,
"excludeProductsNotInRange": true,
"feedbackTexts": [
{
"html": true,
"label": "product detail - below product",
"position": 1,
"teaser": true,
"text": "text"
}
],
"flavour": "ADVISOR",
"hits": [
{
"id": "text",
"masterValues": {
"ANY_ADDITIONAL_PROPERTY": {}
},
"variantValues": [
{
"ANY_ADDITIONAL_PROPERTY": {}
}
]
}
],
"id": "text",
"name": "text",
"target": {
"destination": "https://www.shop.de/about-us/contact.html",
"name": "text"
}
}
],
"geo": {
"markets": [
{
"distance": 1,
"hasProducts": true,
"id": "text",
"location": {
"latitude": 1,
"longitude": 1
},
"searchParams": {
"activeAbTests": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"advisorStatus": {
"answerPath": "_0_0_0_1",
"id": "text"
},
"articleNumberSearch": "DETECT",
"customParameters": [
{
"cacheIrrelevant": true,
"name": "text",
"values": [
"text"
]
}
],
"exactSearchMode": "LEGACY",
"excludeProductsNotInRange": true,
"filters": [
{
"filterWarning": "NON_EXISTING_FIELD",
"name": "text",
"substring": true,
"values": [
{
"exclude": true,
"type": "or",
"value": "text"
}
]
}
],
"followSearch": "text",
"hitsPerPage": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"marketIds": [
"text"
],
"maxCountVariants": 1,
"maxDistance": 1,
"page": 1,
"purchaserId": "text",
"query": "text",
"searchField": "text",
"showMarkets": true,
"showPermutedSearchParams": true,
"sortItems": [
{
"name": "text",
"order": "asc"
}
],
"splitDocumentsAt": 1
},
"selected": "TRUE"
}
],
"selectedMarkets": [
{
"distance": 1,
"hasProducts": true,
"id": "text",
"location": {
"latitude": 1,
"longitude": 1
},
"searchParams": {
"activeAbTests": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"advisorStatus": {
"answerPath": "_0_0_0_1",
"id": "text"
},
"articleNumberSearch": "DETECT",
"customParameters": [
{
"cacheIrrelevant": true,
"name": "text",
"values": [
"text"
]
}
],
"exactSearchMode": "LEGACY",
"excludeProductsNotInRange": true,
"filters": [
{
"filterWarning": "NON_EXISTING_FIELD",
"name": "text",
"substring": true,
"values": [
{
"exclude": true,
"type": "or",
"value": "text"
}
]
}
],
"followSearch": "text",
"hitsPerPage": 1,
"location": {
"latitude": 1,
"longitude": 1
},
"marketIds": [
"text"
],
"maxCountVariants": 1,
"maxDistance": 1,
"page": 1,
"purchaserId": "text",
"query": "text",
"searchField": "text",
"showMarkets": true,
"showPermutedSearchParams": true,
"sortItems": [
{
"name": "text",
"order": "asc"
}
],
"splitDocumentsAt": 1
},
"selected": "TRUE"
}
],
"showDistance": true,
"showMarkets": true
}
}
Was this helpful?