Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Promotion created via REST Api — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Promotion created via REST Api

Received Response
edited Aug 21, 2020 11:44AM in Commerce 2 comments


A promotion is created via rest api using rawpmdl template.But the discount amount is not fetched during the creation.

Code Snippet

  "displayName":"Get 1255rs Off in Reseller Products",
  "description":"A sample item discount promotion",
  "templatePath": "item",
  "templateName": "rawPmdlTemplate",
  {"pmdl": {"xml": "<pricing-model><qualifier><quantifier name=\"at-least\" number=\"10\"><collection-name>items</collection-name><element-name>item</element-name><aggregator name= \"spendAmount\" operation=\"total\"/></quantifier></qualifier><offer><discount-structure calculator-type=\"standard\" discount-type=\"amountOff\" adjuster=\"1255\"></discount-structure></offer></pricing-model>"

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!