Skip to content

Instantly share code, notes, and snippets.

@Mozu-CS
Last active January 4, 2018 04:43
Show Gist options
  • Save Mozu-CS/87a46b8dd0b7d415458ab3f66783bb53 to your computer and use it in GitHub Desktop.
Save Mozu-CS/87a46b8dd0b7d415458ab3f66783bb53 to your computer and use it in GitHub Desktop.
Discount Examples (json messages)
{
"id": "",
"name": "10 Percent Off - 5700380",
"friendlyDescription": "Save 10 percent off on this fancy nest Camera",
"doesNotApplyToSalePrice": false,
"doesNotApplyToProductsWithSalePrice": false,
"scope": "LineItem",
"target": "Product",
"includeAllProducts": false,
"excludeItemsWithExistingProductDiscounts": false,
"excludeItemsWithExistingShippingDiscounts": false,
"excludedCategories": [],
"excludedProducts": [],
"maximumQuantityPerRedemption": 1,
"conditionalCategories": [],
"conditionalProducts": [
"5700380"
],
"isIncludedCategoriesAllOperator": false,
"conditionalExcludedCategories": [],
"conditionalExcludedProducts": [],
"customerSegments": [],
"categories": [],
"products": [
"5700380"
],
"shippingMethods": [],
"shippingZones": [],
"doesNotApplyToMultiShipToOrders": false,
"requiresCoupon": false,
"amount": 10,
"amountType": "Percentage",
"startDate": "2018-01-04T04:05:56.325Z",
"status": "Active",
"canBeDeleted": true,
"minimumQuantityRequiredProducts": 1,
"couponSets": [],
"appliesToLeastExpensiveProductsFirst": true,
"includedPriceLists": [],
"createDate": "",
"createBy": "",
"lastModifiedDate": "",
"lastModifiedBy": ""
}
{
"id": "",
"name": "Sample-BOGO-C9-Celebration-Bulbs",
"friendlyDescription": "Buy a C9 LED and get another (or similar) for free!!!!!!!!!!!!",
"doesNotApplyToSalePrice": false,
"doesNotApplyToProductsWithSalePrice": false,
"scope": "LineItem",
"target": "Product",
"includeAllProducts": false,
"excludeItemsWithExistingProductDiscounts": false,
"excludeItemsWithExistingShippingDiscounts": false,
"excludedCategories": [],
"excludedProducts": [],
"maximumQuantityPerRedemption": 1,
"conditionalCategories": [],
"conditionalProducts": [
"9292558"
],
"isIncludedCategoriesAllOperator": false,
"conditionalExcludedCategories": [],
"conditionalExcludedProducts": [],
"customerSegments": [],
"categories": [],
"products": [
"9292558"
],
"shippingMethods": [],
"shippingZones": [],
"doesNotApplyToMultiShipToOrders": false,
"requiresCoupon": false,
"amountType": "Free",
"startDate": "2018-01-03T02:28:00.000Z",
"status": "Active",
"canBeDeleted": true,
"minimumQuantityRequiredProducts": 1,
"couponSets": [],
"appliesToLeastExpensiveProductsFirst": true,
"includedPriceLists": [],
"createDate": "",
"createBy": "",
"lastModifiedDate": "",
"lastModifiedBy": ""
}
{
"id": "",
"name": "Buy2Get1Free - 4000519",
"friendlyDescription": "Buy two of these fancy air filters and we'll give you a third one for absolutely free, we promise!",
"doesNotApplyToSalePrice": false,
"doesNotApplyToProductsWithSalePrice": false,
"scope": "LineItem",
"target": "Product",
"includeAllProducts": false,
"excludeItemsWithExistingProductDiscounts": false,
"excludeItemsWithExistingShippingDiscounts": false,
"excludedCategories": [],
"excludedProducts": [],
"maximumQuantityPerRedemption": 1,
"conditionalCategories": [],
"conditionalProducts": [
"4000519"
],
"isIncludedCategoriesAllOperator": false,
"conditionalExcludedCategories": [],
"conditionalExcludedProducts": [],
"customerSegments": [],
"categories": [],
"products": [
"4000519"
],
"shippingMethods": [],
"shippingZones": [],
"doesNotApplyToMultiShipToOrders": false,
"requiresCoupon": false,
"amountType": "Free",
"startDate": "2018-01-04T04:29:00.000Z",
"status": "Active",
"canBeDeleted": true,
"minimumQuantityRequiredProducts": 2,
"couponSets": [],
"appliesToLeastExpensiveProductsFirst": true,
"includedPriceLists": [],
"createDate": "",
"createBy": "",
"lastModifiedDate": "",
"lastModifiedBy": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment