POST Marketing/AddPromotedItem
Request Information
URI Parameters
None.
Body Parameters
AddPromotedItemBinding| Name | Description | Type | Additional information |
|---|---|---|---|
| PromotionItemID | integer |
None. |
|
| PromotionableTypeID |
Defines the set of Products base of this exclusion. The set can be defined at the Store, Classification or Product level |
integer |
None. |
| PromotionableID | integer |
None. |
|
| IncludeDescendants |
Includes PromotionableEntity descendants |
boolean |
None. |
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"PromotionItemID": 1,
"PromotionableTypeID": 2,
"PromotionableID": 3,
"IncludeDescendants": true,
"Lang": "sample string 5",
"StoreID": 6
}
application/xml, text/xml
Sample:
<AddPromotedItemBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Marketing"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 5</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">6</StoreID> <IncludeDescendants>true</IncludeDescendants> <PromotionItemID>1</PromotionItemID> <PromotionableID>3</PromotionableID> <PromotionableTypeID>2</PromotionableTypeID> </AddPromotedItemBinding>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>