{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/responsys/json-schema/responsys-trigger-rei-event-schema.json",
  "title": "Trigger Rei Event",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/responsys-events-api-openapi.yml#/components/schemas/triggerReiEvent",
  "type": "object",
  "properties": {
    "reiEvent": {
      "description": "reiEvent.",
      "type": "object",
      "properties": {
        "eventNumberDataMapping": {
          "type": "string",
          "description": "rei eventNumberDataMapping."
        },
        "eventDateDataMapping": {
          "type": "string",
          "description": "rei eventDateDataMapping."
        },
        "eventStringDataMapping": {
          "type": "string",
          "description": "rei eventStringDataMapping."
        }
      }
    },
    "recipientData": {
      "description": "Array of Recipients with Optional Data",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "recipient": {
            "type": "object",
            "description": "Information about the Recipient.",
            "properties": {
              "customerId": {
                "type": "string",
                "description": "Recipient's Customer ID."
              },
              "emailAddress": {
                "type": "string",
                "description": "Recipient's Email Address."
              },
              "emailSHA256Hash": {
                "type": "string",
                "description": "Recipient's Email SHA256 Hash."
              },
              "emailMD5Hash": {
                "type": "string",
                "description": "Recipient's Email MD5 Hash."
              },
              "listName": {
                "type": "object",
                "description": "Profile List to which the Recipient belongs.",
                "properties": {
                  "folderName": {
                    "type": "string",
                    "description": "Folder Name"
                  },
                  "objectName": {
                    "type": "string",
                    "description": "Profile List Name."
                  }
                }
              },
              "mobileAppRecipient": {
                "type": "object",
                "description": "Data for push channel recipient",
                "properties": {
                  "deviceId": {
                    "type": "string",
                    "description": "Device Id of the mobile device"
                  },
                  "apiKey": {
                    "type": "string",
                    "description": "API key for the mobile application"
                  }
                }
              },
              "webPushAppRecipient": {
                "type": "object",
                "description": "Data for web push channel recipient",
                "properties": {
                  "visitorId": {
                    "type": "string",
                    "description": "Visitor Id of the web push recipient"
                  },
                  "apiKey": {
                    "type": "string",
                    "description": "API key for the web push recipient"
                  }
                }
              },
              "recipientId": {
                "type": "number",
                "description": "Recipient's RIID."
              },
              "mobileNumber": {
                "type": "string",
                "description": "Recipient's Mobile Number."
              },
              "emailFormat": {
                "enum": [
                  "HTML_FORMAT",
                  "TEXT_FORMAT"
                ],
                "type": "string",
                "description": "Email Format."
              }
            },
            "required": [
              "customerId",
              "emailAddress",
              "listName",
              "recipientId",
              "mobileNumber",
              "emailFormat"
            ]
          },
          "optionalData": {
            "type": "array",
            "description": "Array of optional data containing name value pairs.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "recipient"
        ]
      }
    }
  },
  "required": [
    "reiEvent",
    "recipientData"
  ]
}