POST CMPromotions?SiteID={SiteID}&PackageId={PackageId}
Create CM Promotion
Request Information
URI Parameters
| Name | Type | Description | Additional information |
|---|---|---|---|
| SiteID | integer | ||
| PackageId | integer |
Optional: leave null and the method Package/GetLatestPackageForSite will be used to determine packageid |
None. |
Body Parameters
PostCMPromoModel| Name | Type | Description | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| PromoType | EnumCMPromotionType |
None. |
|
| Value | decimal number |
None. |
|
| ExclusionDates | string |
None. |
|
| FirePriority | integer |
None. |
|
| CMPriceGroupID | integer |
None. |
|
| StartDate | datetime |
None. |
|
| EndDate | datetime |
None. |
|
| CMPromoGroupModels | Collection of PostCMPromoGroupModel |
None. |
|
| CMPromoGroupSchedules | Collection of PostCMPromoScheduleModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"PromoType": 0,
"Value": 2.1,
"ExclusionDates": "sample string 3",
"FirePriority": 4,
"CMPriceGroupID": 1,
"StartDate": "2026-10-06T12:42:40.0872063",
"EndDate": "2026-10-06T12:42:40.0872063",
"CMPromoGroupModels": [
{
"IsInput": true,
"TriggerQty": 2,
"ActionValue": 3.1,
"CMPromoGroupProducts": [
{
"CMProductMeasureID": 1,
"AddOnPrice": 1.0
},
{
"CMProductMeasureID": 1,
"AddOnPrice": 1.0
}
]
},
{
"IsInput": true,
"TriggerQty": 2,
"ActionValue": 3.1,
"CMPromoGroupProducts": [
{
"CMProductMeasureID": 1,
"AddOnPrice": 1.0
},
{
"CMProductMeasureID": 1,
"AddOnPrice": 1.0
}
]
}
],
"CMPromoGroupSchedules": [
{
"Weekday": 1,
"StartTime": "00:00:00.1234567",
"EndTime": "00:00:00.1234567"
},
{
"Weekday": 1,
"StartTime": "00:00:00.1234567",
"EndTime": "00:00:00.1234567"
}
]
}
application/xml, text/xml
Sample:
System.Xml.XmlDocument
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
tblCMPromo| Name | Type | Description | Additional information |
|---|---|---|---|
| CMPromoID | integer |
None. |
|
| CMCompanyGroupID | integer |
None. |
|
| Name | string |
None. |
|
| CreateDate | datetime |
None. |
|
| StartDate | datetime |
None. |
|
| EndDate | datetime |
None. |
|
| PromoType | integer |
None. |
|
| Value | decimal number |
None. |
|
| Active | boolean |
None. |
|
| TableRule | string |
None. |
|
| PackageID | integer |
None. |
|
| FirePriority | integer |
None. |
|
| SendActToHetras | boolean |
None. |
|
| ImageFileName | string |
None. |
|
| ImageSaveDate | datetime |
None. |
|
| AffectMacroChildren | boolean |
None. |
|
| ExclusionDates | string |
None. |
|
| CancelAfterPromoEnd | boolean |
None. |
|
| PLU | string |
None. |
|
| PromoConfigJson | string |
None. |
|
| StockCode | string |
None. |
|
| PreventOtherDiscounts | boolean |
None. |
|
| PreventOtherPromotions | boolean |
None. |
|
| tblCMPromoGroups | Collection of tblCMPromoGroup |
None. |
|
| tblCMPromoSchedules | Collection of tblCMPromoSchedule |
None. |
|
| tblCMPromoExcludedFromPackageSiteIDs | Collection of tblCMPromoExcludedFromPackageSiteID |
None. |
|
| tblCMPromoPriceGroups | Collection of tblCMPromoPriceGroup |
None. |
|
| tblCMKioskPromoConfigs | Collection of tblCMKioskPromoConfig |
None. |
Response Formats
application/json, text/json
Sample:
{
"CMPromoID": 1,
"CMCompanyGroupID": 1,
"Name": "sample string 3",
"CreateDate": "2026-10-06T12:42:40.1130194",
"StartDate": "2026-10-06T12:42:40.1130194",
"EndDate": "2026-10-06T12:42:40.1130194",
"PromoType": 7,
"Value": 8.1,
"Active": true,
"TableRule": "sample string 10",
"PackageID": 1,
"FirePriority": 12,
"SendActToHetras": true,
"ImageFileName": "sample string 14",
"ImageSaveDate": "2026-10-06T12:42:40.1130194",
"AffectMacroChildren": true,
"ExclusionDates": "sample string 16",
"CancelAfterPromoEnd": true,
"PLU": "sample string 18",
"PromoConfigJson": "sample string 19",
"StockCode": "sample string 20",
"PreventOtherDiscounts": true,
"PreventOtherPromotions": true,
"tblCMPromoGroups": [
{
"CMPromoGroupID": 1,
"CMPromoID": 1,
"CreateDate": "2026-10-06T12:42:40.1130194",
"IsInput": true,
"TriggerQty": 5,
"ActionValue": 6.1,
"IsActive": true,
"PromoBuilderConfig": "sample string 8",
"tblCMPromoGroupProducts": [
{
"CMPromoGroupProductID": 1,
"CMPromoGroupID": 1,
"CMProductMeasureID": 1,
"CreateDate": "2026-10-06T12:42:40.1130194",
"AddOnPrice": 5.0,
"ShowInPromoBuilder": true
}
]
}
],
"tblCMPromoSchedules": [
{
"CMPromoScheduleID": 1,
"CMPromoID": 1,
"CreateDate": "2026-10-06T12:42:40.4597892",
"Weekday": 4,
"StartTime": "00:00:00.1234567",
"EndTime": "00:00:00.1234567"
}
],
"tblCMPromoExcludedFromPackageSiteIDs": [
{
"CMPromoExcludedFromPackageSiteID": 1,
"CMPromoID": 1,
"CMPackageSiteLinkID": 1,
"CMPackageID": 1
}
],
"tblCMPromoPriceGroups": [
{
"CMPromoPriceGroupID": 1,
"CMPromoID": 1,
"CMPriceGroupID": 1
}
],
"tblCMKioskPromoConfigs": [
{
"CMKioskPromoConfigID": 1,
"CMPromoID": 1,
"CustomerPrompt": "sample string 3",
"Action": "sample string 4",
"YesText": "sample string 5",
"YesForeground": "sample string 6",
"YesBackground": "sample string 7",
"NoText": "sample string 8",
"NoForeground": "sample string 9",
"NoBackground": "sample string 10",
"Order": 11
}
]
}
application/xml, text/xml
Sample:
System.Xml.XmlDocument