{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.fideliyapass.com/schemas/webhooks/2026-11/pass.created.json",
  "type": "object",
  "properties": {
    "pass_id": {
      "type": "string",
      "minLength": 1,
      "description": "The new card design (pass) id."
    },
    "pass_type": {
      "type": "string",
      "description": "The pass style: generic, storeCard, ..."
    },
    "business_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "loyalty_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "visits",
            "points"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "loyalty_goal": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "Visits or points to a reward."
    },
    "share_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The token in the card's public join link."
    }
  },
  "required": [
    "pass_id",
    "pass_type",
    "business_name",
    "loyalty_type",
    "loyalty_goal",
    "share_token"
  ],
  "description": "A card design was created.",
  "examples": [
    {
      "pass_id": "7f1d5c1e-2b7a-4c1e-9d0e-0c6f3c2a9b10",
      "pass_type": "storeCard",
      "business_name": "Café Lumière",
      "loyalty_type": "visits",
      "loyalty_goal": 10,
      "share_token": "3b9c1f0a-6d2e-4f1b-8a7c-5e4d3c2b1a09"
    }
  ]
}
