Klaviyo · Schema

CouponProperties

MarketingEmailSMSCustomer DataEcommerceAutomation

Properties

Name Type Description
display_device array
classname string
coupon object
success_message string
View JSON Schema on GitHub

JSON Schema

klaviyo-couponproperties-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CouponProperties",
  "title": "CouponProperties",
  "type": "object",
  "properties": {
    "display_device": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "both",
          "desktop",
          "mobile"
        ],
        "description": "Enumeration for mobile and desktop."
      }
    },
    "classname": {
      "type": "string",
      "nullable": true
    },
    "coupon": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/UniqueCouponConfig"
        },
        {
          "$ref": "#/components/schemas/StaticCouponConfig"
        }
      ]
    },
    "success_message": {
      "type": "string",
      "nullable": true
    }
  },
  "required": [
    "coupon"
  ]
}