v1

latestOpenAPI 3.0.2EULA2026-07-143221521.2 MB
Campaign products

Create a campaign product

Create a new campaign product. A campaign product defines a discount promotion on a specific product, including the discount type (percentage or final price), validity dates, and which stores and channels the promotion applies to. See Campaign products for details.

post/campaign-products

Headers

Accept-Languagestring

The unique ID of the language code by ISO 639-1.

Request body

Example request

{
  "campaign_product": {
    "campaign_product_id": "8bed991c68a470e7aaeffbf048",
    "product_id": "8ad4ff4db9d628f2c8cb6181a4",
    "currency_id": "8bed991c68a470e7aaeffbf048",
    "campaign_id": "8ad8b2b701199684f1222961d6",
    "value": 50,
    "value_type_id": 1,
    "valid_from": "2021-04-16 00:00:00",
    "valid_to": "2021-05-16 23:59:59",
    "display_in": [
      "mapi"
    ],
    "type_id": "86e05affc7a7abefcd513ab400",
    "presentation_data": {
      "name": "T-shirt 10% off",
      "subtitle": "Discount only in following week",
      "note": "This offer is limited",
      "image_url": "https://developers.crmcarecloud.com/img/customer_enterprise.png"
    },
    "campaign_product_property_records": [
      {
        "property_record_id": "docasna_blokace_darce_do:8ea2591121e636086a4a9c0992",
        "property_id": "docasna_blokace_darce_do",
        "property_name": "Property #6",
        "last_change": "2023-02-02 00:00:00"
      }
    ],
    "last_change": "2021-04-16 19:02:22",
    "state": 1
  }
}

Response

Created

Example response

{
  "data": {
    "campaign_product_id": "8bed991c68a470e7aaeff"
  }
}