{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "title": "User Reward Balance Changed Webhook Schema",
    "description": "Sent whenever something happens to change this user's available reward balance (e.g. rewards given/expired/etc)",
    "type": "object",
    "properties": {
        "userId": {
            "type": "string",
            "title": "User Id",
            "description": "The user's unique identifier"
        },
        "accountId": {
            "type": "string",
            "title": "Account Id",
            "description": "The user's unique account identifier"
        },
        "unit": {
            "type": "string",
            "title": "Reward Balance Unit",
            "description": "The unit corresponding to this reward balance"
        },
        "availableValue": {
            "title": "Available Reward Balance",
            "type": "integer",
            "description": "The reward balance available to be redeemed"
        },
        "resourceVersion": {
            "title": "Resource Version",
            "type": "integer",
            "description": "An integer value reflective of when the balance was generated, the greater the value the more recent the balance"
        }
    }
}