All Verbs | /service/UpdatePromotion |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
OriginalPromoCode | query | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Description | form | string | No | |
StartOn | form | DateTime | No | |
EndOn | form | DateTime | No | |
ShipBefore | form | DateTime | No | |
ShipAfter | form | DateTime | No | |
Type | form | string | No | |
BrandId | form | string | No | |
RewardType | form | string | No | |
DisplayOnCheckout | form | bool | No | |
ApplyWholeOrder | form | bool | No | |
OneTimeUse | form | bool | No | |
Status | form | string | No | |
CreatedBy | form | string | No | |
QualifyAmount | form | double? | No | |
MaxQualifyAmount | form | double? | No | |
QualifyQuantity | form | int? | No | |
ProductLineID | form | string | No | |
Category | form | string | No | |
SubCategory | form | string | No | |
ProductID | form | string | No | |
OrderSource | form | string | No | |
GeneratedFrom | form | string | No | |
AdvancedCriteria | form | string | No | |
SpecialTerm | form | string | No | |
Note | form | string | No | |
DiscountPercent | form | double? | No | |
PriceList | form | string | No | |
DiscountDollar | form | double? | No | |
FreeProduct | form | string | No | |
Tags | form | Dictionary<string, HashSet<String>> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | K | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Description | form | string | No | |
StartOn | form | DateTime | No | |
EndOn | form | DateTime | No | |
ShipBefore | form | DateTime | No | |
ShipAfter | form | DateTime | No | |
Type | form | string | No | |
BrandId | form | string | No | |
RewardType | form | string | No | |
DisplayOnCheckout | form | bool | No | |
ApplyWholeOrder | form | bool | No | |
OneTimeUse | form | bool | No | |
Status | form | string | No | |
CreatedBy | form | string | No | |
QualifyAmount | form | double? | No | |
MaxQualifyAmount | form | double? | No | |
QualifyQuantity | form | int? | No | |
ProductLineID | form | string | No | |
Category | form | string | No | |
SubCategory | form | string | No | |
ProductID | form | string | No | |
OrderSource | form | string | No | |
GeneratedFrom | form | string | No | |
AdvancedCriteria | form | string | No | |
SpecialTerm | form | string | No | |
Note | form | string | No | |
DiscountPercent | form | double? | No | |
PriceList | form | string | No | |
DiscountDollar | form | double? | No | |
FreeProduct | form | string | No | |
Tags | form | Dictionary<string, HashSet<String>> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /service/UpdatePromotion HTTP/1.1
Host: www.bernhardthospitality.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
originalPromoCode: String,
id: String,
description: String,
startOn: 0001-01-01,
endOn: 0001-01-01,
shipBefore: 0001-01-01,
shipAfter: 0001-01-01,
type: String,
brandId: String,
rewardType: String,
displayOnCheckout: False,
applyWholeOrder: False,
oneTimeUse: False,
status: String,
createdBy: String,
qualifyAmount: 0,
maxQualifyAmount: 0,
qualifyQuantity: 0,
productLineID: String,
category: String,
subCategory: String,
productID: String,
orderSource: String,
generatedFrom: String,
advancedCriteria: String,
specialTerm: String,
note: String,
discountPercent: 0,
priceList: String,
discountDollar: 0,
freeProduct: String,
tags:
{
String:
[
String
]
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { id: String, description: String, startOn: 0001-01-01, endOn: 0001-01-01, shipBefore: 0001-01-01, shipAfter: 0001-01-01, type: String, brandId: String, rewardType: String, displayOnCheckout: False, applyWholeOrder: False, oneTimeUse: False, status: String, createdBy: String, qualifyAmount: 0, maxQualifyAmount: 0, qualifyQuantity: 0, productLineID: String, category: String, subCategory: String, productID: String, orderSource: String, generatedFrom: String, advancedCriteria: String, specialTerm: String, note: String, discountPercent: 0, priceList: String, discountDollar: 0, freeProduct: String, tags: { String: [ String ] } }