{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "title": "Coupon Created Webhook Schema",
    "description": "Sent when a new coupon (referral code) is created, often when the user is created or interacts with a newly activated program",
    "type": "object",
    "properties": {
        "code": {
            "type": "string",
            "title": "Code",
            "description": "The code to be shared"
        },
        "dateCreated": {
            "type": "integer",
            "title": "Date Created",
            "description": "The date this code was created"
        },
        "programId": {
            "type": [
                "string",
                "null"
            ],
            "title": "Program Id",
            "description": "The Id of the program this code was created for"
        }
    },
    "required": [
        "code",
        "dateCreated"
    ],
    "additionalProperties": false
}