Salesforce · JSON Structure

Salesforce Eligible Promotions Request Structure

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

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

Properties

cart

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

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "EligiblePromotionsRequest",
  "properties": {
    "cart": {
      "type": "object",
      "properties": {
        "cartDetails": {
          "type": "array",
          "description": "",
          "items": {
            "type": "object",
            "properties": {
              "activityStartDate": {
                "type": "string"
              },
              "contactId": {
                "type": "string"
              },
              "transactionAmount": {
                "type": "integer"
              },
              "currencyISOCode": {
                "type": "string"
              },
              "cartLineDetails": {
                "type": "array",
                "description": "",
                "items": {
                  "type": "object",
                  "properties": {
                    "cartLineProductId": {
                      "type": "object"
                    },
                    "cartLineItemQuantity": {
                      "type": "object"
                    },
                    "cartLineItemAmount": {
                      "type": "object"
                    },
                    "cartLineProductCatalogId": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "cartLineProductId",
                    "cartLineItemQuantity",
                    "cartLineItemAmount",
                    "cartLineProductCatalogId"
                  ]
                }
              }
            },
            "required": [
              "activityStartDate",
              "contactId",
              "transactionAmount",
              "currencyISOCode",
              "cartLineDetails"
            ]
          }
        }
      },
      "required": [
        "cartDetails"
      ]
    }
  },
  "required": [
    "cart"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}