Salesforce · JSON Structure

Salesforce Applied Promotion Structure

Type: object Properties: 2 Required: 2
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

AppliedPromotion is a JSON Structure definition published by Salesforce, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

promotionId rewards

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "AppliedPromotion",
  "properties": {
    "promotionId": {
      "type": "string"
    },
    "rewards": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "properties": {
          "rewardType": {
            "type": "string"
          },
          "discountAmount": {
            "type": "integer"
          },
          "loyaltyProgramCurrencyName": {
            "type": "string"
          },
          "points": {
            "type": "integer"
          },
          "relatedInformation": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "voucherDefinitionName": {
            "type": "string"
          },
          "voucherExpirationDate": {
            "type": "string"
          },
          "voucherEffectiveDate": {
            "type": "string"
          },
          "loyaltyProgramBadgeName": {
            "type": "string"
          },
          "memberBadgeStatus": {
            "type": "string"
          },
          "badgeValidityEndDate": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "gameDefinitionName": {
            "type": "string"
          }
        },
        "required": [
          "rewardType"
        ]
      }
    }
  },
  "required": [
    "promotionId",
    "rewards"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}