espot

This class provides RESTful services to get e-Marketing Spot data. It uses the MarketingSpotData noun.

Handler Class:

com.ibm.commerce.rest.marketing.handler.ESpotDataHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/espot?q={q}Retrieve a list of all search terms that have search rules.
GET/store/{storeId}/espot/{name}Gets an e-Marketing Spot by name.
GET/store/{storeId}/espot/{name}/category/{categoryId}Deprecated: Gets an e-Marketing Spot at a specific category level. For example, Furniture. Alternatively, this can be implemented using the findByName method with the following URL: store/{storeId}/espot/{name}?categoryId=&DM_ReqCmd=CategoryDisplay.
GET/store/{storeId}/espot/{name}/product/{productId}Deprecated: Gets an e-Marketing Spot for a specific product. Alternatively, this can be implemented using the findByName method with the following URL: store/{storeId}/espot/{name}?productId=&DM_ReqCmd=ProductDisplay.
GET/store/{storeId}/espot/{name}/type/{type}Gets e-Marketing Spot data.

Method Details

GET /store/{storeId}/espot?q={q}

Retrieve a list of all search terms that have search rules.

Handler Method:

findAllSearchTerms

Secure Call Mandatory:

false

Partial Authentication Allowed:

true

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

com.ibm.commerce.rest.marketing.handler.ESpotDataHandler$SearchTermsContainer

GET /store/{storeId}/espot/{name}

Gets an e-Marketing Spot by name.

Handler Method:

findByName

Secure Call Mandatory:

false

Partial Authentication Allowed:

true

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
catalogIdThe catalog identifier. If none is specified, the store default catalog shall be used.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

espot-espot


Example

Request:
GET /wcs/resources/store/10001/espot/HomeBottomRight_Content?DM_marketingSpotBehavior=&deleteIfEmpty=*&orderId=14029&toOrderId=.&page=&DM_ReqCmd=TopCategoriesDisplay&calculationUsageId=-1&DM_SubstitutionValue1=Aurora&catalogId=10052&createIfEmpty=1&DM_SubstitutionValue2=http%3A%2F%2Flocalhost%2Fwebapp%2Fwcs%2Fstores%2Fservlet%2Fen%2Faurora&DM_SubstitutionValue3=en_US&DM_SubstitutionValue4=&DM_SubstitutionValue5=&DM_SubstitutionValue6=_8_-2000_1469&storeId=10001&DM_EmsName=HomeBottomRight_Content&continue=1&langId=-1&DM_imagePath=%2Fwcsstore%2FAurora%2F&deleteCartCookie=true&pageGroup=Content&updatePrices=0&DM_SubstitutionName1=%5BstoreName%5D&DM_SubstitutionName2=%5BfullPathHomeURL%5D&DM_SubstitutionName3=%5Blanglocale%5D&DM_SubstitutionName4=%5BproductTotalCount%5D&DM_SubstitutionName5=%5BcontentTotalCount%5D&DM_SubstitutionName6=%5BwidgetSuffix%5D&pageName=HomePage&DM_contextPath=%2Fwebapp%2Fwcs%2Fstores%2Fservlet&fromOrderId=*&responseFormat=json
HTTP Status Code:

200

Response:
{
	"MarketingSpotData": [
		{
			"baseMarketingSpotActivityData": [
				{
					"MarketingContentDescription": [
						{
						}
					],
					"activityIdentifierID": "0",
					"activityPriority": "1",
					"baseMarketingSpotActivityID": "10065",
					"baseMarketingSpotActivityName": "HomeKidsApparelAdContent",
					"baseMarketingSpotDataType": "MarketingContent",
					"contentClickAction": "None",
					"contentFormatId": "2",
					"contentFormatName": "Text",
					"contentId": "10065",
					"contentName": "HomeKidsApparelAdContent",
					"contentStoreId": "10001",
					"marketingContentDescription": [
						{
							"language": "-1",
							"marketingText": "<link rel=\"stylesheet\" href=\"\/wcsstore\/Aurora\/rwdWebAssets\/homePageEspot_Right\/styles.css\" \/> <div class=\"col4\" id=\"homePageEspot_Right\" role=\"region\" aria-label=\"home page Espot kids\">    <div class=\"homeESpotContainer\" id=\"homePageEspot_Right_Slot\">       <div class=\"textContainer\">          <div class=\"title\">                       Kids' Stuff                      <\/div>          <div class=\"bodyText\">             Summer style is all about fun prints, bright colors, comfort, and durability. Stock up on our easy-to-wear and affordable fashions for kids. Spend $100* or more, and earn a $25 gift certificate.                                    <div class=\"finePrint\">                         *Before taxes. Gift certificates are redeemable on your next visit.                       <\/div>          <\/div>          <div class=\"button\"><a alt=\"\" role=\"link\" aria-label=\"Shop now girls category\" href=\"http:\/\/localhost\/webapp\/wcs\/stores\/servlet\/en\/aurora\/apparel\/girls\">shop now<\/a><\/div>       <\/div>       <div class=\"imageContainer\">                     <img alt=\"\" id=\"kids1\" src=\"\/wcsstore\/Aurora\/rwdWebAssets\/homePageEspot_Right\/kids1.jpg\">                     <img alt=\"\" id=\"kids2\" src=\"\/wcsstore\/Aurora\/rwdWebAssets\/homePageEspot_Right\/kids2.png\">                   <\/div>    <\/div> <\/div>"
						}
					],
					"properties": [
						{
							"baseMarketingKey": "mktActivityDescription"
						},
						{
							"baseMarketingKey": "displaySequence",
							"baseMarketingValue": "1.0"
						}
					]
				}
			],
			"behavior": "0",
			"defaultContentDisplaySequence": [
				{
					"displaySequence": "1.0",
					"resultFormat": "MarketingContent",
					"resultId": "10065"
				}
			],
			"eSpotName": "HomeBottomRight_Content",
			"marketingSpotIdentifier": "10562",
			"nextTimeLimit": "-1"
		}
	],
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/espot\/HomeBottomRight_Content?DM_marketingSpotBehavior=&deleteIfEmpty=*&orderId=14029&toOrderId=.&page=&DM_ReqCmd=TopCategoriesDisplay&calculationUsageId=-1&DM_SubstitutionValue1=Aurora&catalogId=10052&createIfEmpty=1&DM_SubstitutionValue2=http%3A%2F%2Flocalhost%2Fwebapp%2Fwcs%2Fstores%2Fservlet%2Fen%2Faurora&DM_SubstitutionValue3=en_US&DM_SubstitutionValue4=&DM_SubstitutionValue5=&DM_SubstitutionValue6=_8_-2000_1469&storeId=10001&DM_EmsName=HomeBottomRight_Content&continue=1&langId=-1&DM_imagePath=%2Fwcsstore%2FAurora%2F&deleteCartCookie=true&pageGroup=Content&updatePrices=0&DM_SubstitutionName1=%5BstoreName%5D&DM_SubstitutionName2=%5BfullPathHomeURL%5D&DM_SubstitutionName3=%5Blanglocale%5D&DM_SubstitutionName4=%5BproductTotalCount%5D&DM_SubstitutionName5=%5BcontentTotalCount%5D&DM_SubstitutionName6=%5BwidgetSuffix%5D&pageName=HomePage&DM_contextPath=%2Fwebapp%2Fwcs%2Fstores%2Fservlet&fromOrderId=*&responseFormat=json",
	"resourceName": "espot"
}

GET /store/{storeId}/espot/{name}/category/{categoryId}

Deprecated: Gets an e-Marketing Spot at a specific category level. For example, Furniture. Alternatively, this can be implemented using the findByName method with the following URL: store/{storeId}/espot/{name}?categoryId=&DM_ReqCmd=CategoryDisplay.

Handler Method:

findByNameWithCategory

Secure Call Mandatory:

false

Partial Authentication Allowed:

true

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
categoryIdThe category identifier.pathstringtrueN/A
catalogIdThe catalog identifier. If none is specified, the store default catalog shall be used.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

espot-espot


Example

Request:
GET /wcs/resources/store/10001/espot/ESpotDataHandlerESpotName/category/10044?numberProductsToDisplay=2&DM_ReqCmd=CategoryDisplay2
HTTP Status Code:

200

Response:
{
	"MarketingSpotData": [
		{
			"behavior": "0",
			"eSpotName": "ESpotDataHandlerESpotName",
			"marketingSpotIdentifier": "15560",
			"nextTimeLimit": "-1"
		}
	],
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/espot\/ESpotDataHandlerESpotName\/category\/10044?numberProductsToDisplay=2&DM_ReqCmd=CategoryDisplay2",
	"resourceName": "espot"
}

GET /store/{storeId}/espot/{name}/product/{productId}

Deprecated: Gets an e-Marketing Spot for a specific product. Alternatively, this can be implemented using the findByName method with the following URL: store/{storeId}/espot/{name}?productId=&DM_ReqCmd=ProductDisplay.

Handler Method:

findByNameWithProduct

Secure Call Mandatory:

false

Partial Authentication Allowed:

true

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
productIdThe product identifier.pathstringtrueN/A
catalogIdThe catalog identifier. If none is specified, the store default catalog shall be used.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

espot-espot


Example

Request:
GET /wcs/resources/store/10001/espot/ESpotDataHandlerESpotName/product/12973?numberContentToDisplay=1&DM_ReqCmd=ProductDisplay2
HTTP Status Code:

200

Response:
{
	"MarketingSpotData": [
		{
			"behavior": "0",
			"eSpotName": "ESpotDataHandlerESpotName",
			"marketingSpotIdentifier": "15562",
			"nextTimeLimit": "-1"
		}
	],
	"resourceId": "http:\/\/localhost:80\/wcs\/resources\/store\/10001\/espot\/ESpotDataHandlerESpotName\/product\/12973?numberContentToDisplay=1&DM_ReqCmd=ProductDisplay2",
	"resourceName": "espot"
}

GET /store/{storeId}/espot/{name}/type/{type}

Gets e-Marketing Spot data.

Handler Method:

findESpotData

Secure Call Mandatory:

false

Partial Authentication Allowed:

true

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
typeE-Spot type. Sample value : SEARCHpathstringtrueN/A
catalogIdThe catalog identifier. If none is specified, the store default catalog shall be used.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

espot-espot

Data Type Details

com.ibm.commerce.foundation.common.datatypes.AttachmentDescriptionType

Properties:
NameData TypeRequired
shortDescriptionstringfalse
longDescriptionstringfalse
userDatacom.ibm.commerce.foundation.common.datatypes.AttachmentDescriptionType.userDatafalse
languagestringfalse
namestringfalse

com.ibm.commerce.foundation.common.datatypes.AttachmentDescriptionType.userData

com.ibm.commerce.foundation.common.datatypes.AttachmentDescriptionType.userData.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

com.ibm.commerce.foundation.common.datatypes.StoreExternalIdentifierType

Properties:
NameData TypeRequired
nameIdentifierstringfalse
ownerIDstringfalse

com.ibm.commerce.foundation.common.datatypes.StoreIdentifierType

Properties:
NameData TypeRequired
externalIdentifiercom.ibm.commerce.foundation.common.datatypes.StoreIdentifierType.externalIdentifierfalse
uniqueIDstringfalse

com.ibm.commerce.foundation.common.datatypes.StoreIdentifierType.externalIdentifier

Properties:
NameData TypeRequired
nameIdentifierstringfalse
ownerIDstringfalse

com.ibm.commerce.marketing.facade.datatypes.AreaType

Properties:
NameData TypeRequired
shapestringfalse
targetstringfalse
displaySequencestringfalse
userDatacom.ibm.commerce.marketing.facade.datatypes.AreaType.userDatafalse
alternateTextstringfalse
titlestringfalse
coordinatesstringfalse
uniqueIDstringfalse
urlstringfalse

com.ibm.commerce.marketing.facade.datatypes.AreaType.userData

Properties:
NameData TypeRequired
userDataFieldcom.ibm.commerce.marketing.facade.datatypes.AreaType.userData.userDataField arrayfalse

com.ibm.commerce.marketing.facade.datatypes.AreaType.userData.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

com.ibm.commerce.rest.marketing.handler.ESpotDataHandler$SearchTermsContainer

Structure containing multiple search terms.

Properties:
NameData TypeRequired
searchTermsstringtrue

espot-ActivityExternalIdentifier

Properties:
NameData TypeRequired
activityIdentifierNamestringfalse
activityIdentifierStoreIdcom.ibm.commerce.foundation.common.datatypes.StoreIdentifierTypefalse

espot-ActivityIdentifier

Properties:
NameData TypeRequired
activityExternalIdentifierstringfalse
activityIdentifierIDstringfalse

espot-Attachment

Properties:
NameData TypeRequired
attachmentDisplaySequencestringfalse
attachmentReferenceIdstringfalse
attachmentReferenceDescriptionespot-AttachmentReferenceDescription arrayfalse
AttachmentReferenceDescriptionespot-Attachment.AttachmentReferenceDescription arrayfalse
userDataFieldespot-Attachment.userDataField arrayfalse
attachmentDescriptionespot-AttachmentDescription arrayfalse
AttachmentDescriptionespot-Attachment.AttachmentDescription arrayfalse
attachmentIdentifierstringfalse
attachmentAssetespot-AttachmentAsset arrayfalse
attachmentUsagestringfalse

espot-Attachment.AttachmentDescription

Properties:
NameData TypeRequired
userDataFieldespot-Attachment.AttachmentDescription.userDataField arrayfalse

espot-Attachment.AttachmentDescription.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-Attachment.AttachmentReferenceDescription

Properties:
NameData TypeRequired
userDataFieldespot-Attachment.AttachmentReferenceDescription.userDataField arrayfalse

espot-Attachment.AttachmentReferenceDescription.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-Attachment.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-AttachmentAsset

Properties:
NameData TypeRequired
attachmentAssetPathstringtrue
attachmentAssetLanguagestring arrayfalse
attachmentAssetDirectoryPathstringfalse
userDataFieldespot-AttachmentAsset.userDataField arrayfalse
attachmentLocalAssetstringfalse
attachmentAssetIdstringfalse
attachmentAssetStoreExternalIdcom.ibm.commerce.foundation.common.datatypes.StoreExternalIdentifierTypefalse
attachmentAssetMimeTypestringfalse
attachmentAssetRootDirectorystringfalse
attachmentAssetStoreIdstringfalse

espot-AttachmentAsset.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-AttachmentDescription

Properties:
NameData TypeRequired
attachmentShortDescriptionstringfalse
attachmentLanguagestringfalse
attachmentLongDescriptionstringfalse
attachmentNamestringfalse

espot-AttachmentExternalIdentifier

Properties:
NameData TypeRequired
attachementOwnerIdstringfalse
attachementExternalIdstringtrue
attachementStoreExternalIdcom.ibm.commerce.foundation.common.datatypes.StoreExternalIdentifierTypefalse
attachementStoreIdstringfalse

espot-AttachmentIdentifier

Properties:
NameData TypeRequired
attachmentExternalIdentifierstringfalse
attachementIdstringfalse

espot-AttachmentReferenceDescription

Properties:
NameData TypeRequired
attachmentShortDescriptionstringfalse
attachmentLanguagestringfalse
attachmentLongDescriptionstringfalse
attachmentNamestringfalse

espot-AttachmentUsage

Properties:
NameData TypeRequired
attachmentDisplaySequencestringfalse
attachmentImagestringfalse
attachmentUsageNamestringtrue
attachmentUsageDescriptioncom.ibm.commerce.foundation.common.datatypes.AttachmentDescriptionTypefalse

espot-BaseMarketingSpotActivityData

Properties:
NameData TypeRequired
baseMarketingSpotActivityIDstringtrue
baseMarketingSpotActivityNamestringtrue
baseMarketingSpotCampaignNamestringfalse
activityPrioritystringfalse
propertiesespot-BaseMarketingSpotActivityData.properties arrayfalse
userDataFieldespot-BaseMarketingSpotActivityData.userDataField arrayfalse
activityFormatstringfalse
activityIdentifierstringfalse
experimentResultespot-ExperimentResult arrayfalse
baseMarketingSpotDataTypestringtrue

espot-BaseMarketingSpotActivityData.properties

Properties:
NameData TypeRequired
baseMarketingKeystringtrue
baseMarketingValuestringfalse

espot-BaseMarketingSpotActivityData.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-DefaultContentDisplaySequence

Properties:
NameData TypeRequired
displaySequencestringfalse
resultFormatstringfalse
resultIdstringfalse

espot-espot

Properties:
NameData TypeRequired
MarketingSpotDataespot-espot_item arrayfalse

espot-espot_item

Properties:
NameData TypeRequired
baseMarketingSpotActivityDataespot-BaseMarketingSpotActivityData arrayfalse
marketingSpotIdentifierstringfalse
behaviorstringfalse
filteredResultespot-espot_item.filteredResult arrayfalse
marketingSpotDataTitleespot-MarketingSpotDataTitle arrayfalse
nextTimeLimitstringfalse
defaultContentDisplaySequenceespot-DefaultContentDisplaySequence arrayfalse
previewReportstring arrayfalse

espot-espot_item.filteredResult

Properties:
NameData TypeRequired
filteredResultFormatstringfalse
filteredResultIdstringfalse

espot-Experiment

Properties:
NameData TypeRequired
experimentResultNamestringfalse
experimentResultIdstringtrue

espot-ExperimentResult

Properties:
NameData TypeRequired
testElementstringfalse
experimentstringfalse
controlElementstringfalse

espot-MarketingContent

Properties:
NameData TypeRequired
attachmentstringfalse
marketingContentImageMapespot-MarketingContentImageMap arrayfalse
contentClickActionstringfalse
userDataFieldespot-MarketingContent.userDataField arrayfalse
contentInputOptionstringfalse
contentUrlstringfalse
contentMimeTypestringfalse
marketingContentDescriptionespot-MarketingContentDescription arrayfalse
MarketingContentDescriptionespot-MarketingContent.MarketingContentDescription arrayfalse
contentFormatNamestringfalse
contentFormatIdstringfalse
marketingContentIdentifierstringfalse

espot-MarketingContent.MarketingContentDescription

Properties:
NameData TypeRequired
userDataFieldespot-MarketingContent.MarketingContentDescription.userDataField arrayfalse

espot-MarketingContent.MarketingContentDescription.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-MarketingContent.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-MarketingContentDescription

Properties:
NameData TypeRequired
marketingTextstringfalse
languagestringfalse
contentLocationstringfalse

espot-MarketingContentExternalIdentifier

Properties:
NameData TypeRequired
contentStoreIdstringfalse
contentNamestringfalse
contentStoreExternalIdcom.ibm.commerce.foundation.common.datatypes.StoreExternalIdentifierTypefalse

espot-MarketingContentIdentifier

Properties:
NameData TypeRequired
contentIdstringfalse
marketingContentExternalIdentifierstringfalse

espot-MarketingContentImageMap

Properties:
NameData TypeRequired
userDataFieldespot-MarketingContentImageMap.userDataField arrayfalse
sourcestringfalse
namestringfalse
areacom.ibm.commerce.marketing.facade.datatypes.AreaType arrayfalse

espot-MarketingContentImageMap.userDataField

Properties:
NameData TypeRequired
valuestringfalse
keystringtrue

espot-MarketingSpotDataTitle

Properties:
NameData TypeRequired
marketingSpotDataTitleActivityIDstringfalse
marketingSpotDataTitleIdstringtrue
marketingSpotDataTitleNamestringtrue
marketingContentstringtrue
experimentResultespot-ExperimentResult arrayfalse
marketingSpotDataTitleDataTypestringtrue

espot-MarketingSpotExternalIdentifier

Properties:
NameData TypeRequired
eSpotNamestringfalse
eSpotStoreIdcom.ibm.commerce.foundation.common.datatypes.StoreIdentifierTypefalse

espot-MarketingSpotIdentifier

Properties:
NameData TypeRequired
marketingSpotIdentifierstringfalse
marketingSpotExternalIdentifierstringfalse

espot-TestElement

Properties:
NameData TypeRequired
experimentResultTestElementNamestringfalse
experimentResultTestElementIdstringtrue