Klaviyo · Schema

ProfileMarketingConsentCondition

MarketingEmailSMSCustomer DataEcommerceAutomation

Properties

Name Type Description
type string
consent object
View JSON Schema on GitHub

JSON Schema

klaviyo-profilemarketingconsentcondition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ProfileMarketingConsentCondition",
  "title": "ProfileMarketingConsentCondition",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "profile-marketing-consent"
      ]
    },
    "consent": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/HasEmailMarketingConsent"
        },
        {
          "$ref": "#/components/schemas/NoEmailMarketingConsent"
        },
        {
          "$ref": "#/components/schemas/HasSMSMarketingConsent"
        },
        {
          "$ref": "#/components/schemas/NoSMSMarketingConsent"
        },
        {
          "$ref": "#/components/schemas/HasPushMarketingConsent"
        },
        {
          "$ref": "#/components/schemas/NoPushMarketingConsent"
        }
      ]
    }
  },
  "required": [
    "type",
    "consent"
  ]
}