Event Capacity
BI
The event capacity message is triggered whenever an event capacity or lock area (Sperrbereich) has been changed.
JSON schema & example
Section titled “JSON schema & example”{ "metadata": { "traceId": "7d0168f2-1c75-4996-b83d-c55a53488726", "occurredAt": "2024-12-24T12:04:06Z", "version": "1.0", "tenant": "14450", "type": "EVENT_CAPACITY" }, "eventId": "2356941", "blocks": [ { "blockId": "418754", "blockName": "Block 1", "totalSeats": 355, "lockedSeats": 5, "categories": [ { "categoryNumber": "1", "totalSeats": 305, "lockedSeats": 2, "categoryName": "Business-Seat Gold", "areas": [ { "areaId": "1337", "areaName": "Hospitality", "seats": 42 }, { "areaId": "1338", "areaName": "Marketing only", "seats": 10 } ] }, { "categoryNumber": "2", "totalSeats": 50, "lockedSeats": 3, "categoryName": "Normal", "areas": [ { "areaId": "1337", "areaName": "Hospitality", "seats": 10 } ] } ] }, { "blockId": "418755", "blockName": "Block 2", "totalSeats": 189, "lockedSeats": 0, "categories": [ { "categoryNumber": "1", "totalSeats": 72, "lockedSeats": 0, "categoryName": "Stufe 1" }, { "categoryNumber": "2", "totalSeats": 76, "lockedSeats": 0, "categoryName": "Stufe 2" }, { "categoryNumber": "3", "totalSeats": 18, "lockedSeats": 0, "categoryName": "Stufe 3" }, { "categoryNumber": "4", "totalSeats": 23, "lockedSeats": 0, "categoryName": "Stufe 4" } ] }, { "blockId": "418756", "blockName": "Block 3", "totalSeats": 184, "lockedSeats": 2, "categories": [ { "categoryNumber": "2", "totalSeats": 72, "lockedSeats": 0, "categoryName": "VIP" }, { "categoryNumber": "3", "totalSeats": 94, "lockedSeats": 1, "categoryName": "Normal" }, { "categoryNumber": "4", "totalSeats": 18, "lockedSeats": 1, "categoryName": "Beschte" } ] } ], "generalAdmission": { "totalSeats": 0, "lockedSeats": 0 }, "custom": {}}{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "metadata": { "type": "object", "properties": { "traceId": { "type": "string", "format": "uuid", "description": "Unique identifier to trace the event." }, "occurredAt": { "type": "string", "format": "date-time", "description": "The timestamp when the event occurred." }, "version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+$", "description": "The version of the event schema, following semantic versioning." }, "tenant": { "type": "string", "description": "Identifier of the tenant or organization associated with the event." }, "type": { "type": "string", "enum": [ "CUSTOMER", "CUSTOMER_DELETED", "EVENT", "EVENT_CAPACITY", "ORDER", "CANCELLATION", "CREDIT_NOTE", "RESERVATION", "RESERVATION_CANCELLATION", "PRICE_PROFILE", "PRICE_PROFILE_DELETED", "TICKET" ], "description": "Identifier of the tenant or organization associated with the event." } }, "required": [ "traceId", "occurredAt", "version", "tenant", "type" ], "additionalProperties": false }, "eventId": { "type": "string", "description": "The unique identifier for the event" }, "blocks": { "type": "array", "description": "List of blocks associated with the event", "items": { "type": "object", "properties": { "blockId": { "type": "string", "description": "The unique identifier for the block" }, "blockName": { "type": "string", "description": "Then name of the block" }, "totalSeats": { "type": "integer", "description": "Total number of seats within the block", "minimum": 0 }, "lockedSeats": { "type": "integer", "description": "Number of locked seats within the block", "minimum": 0 }, "categories": { "type": "array", "items": { "type": "object", "properties": { "categoryNumber": { "type": "string", "description": "Number/Index of the category within the price profile." }, "totalSeats": { "type": "integer", "description": "Total number of seats available in this category." }, "lockedSeats": { "type": "integer", "description": "Number of seats that are locked in this category." }, "categoryName": { "type": "string", "description": "The name of the category." }, "areas": { "type": "array", "description": "List of areas within the category.", "items": { "type": "object", "properties": { "areaId": { "type": "string", "description": "Unique identifier for the area." }, "areaName": { "type": "string", "description": "Name of the specific area." }, "seats": { "type": "integer", "minimum": 0, "description": "Number of seats in this area." } } } } } } } }, "required": [ "blockId", "totalSeats", "lockedSeats" ] } }, "generalAdmission": { "description": "Total and locked seats general admission area", "type": "object", "properties": { "totalSeats": { "type": "integer", "description": "Total number of seats in the price category", "minimum": 0 }, "lockedSeats": { "type": "integer", "description": "Number of locked seats in the price category", "minimum": 0 } }, "required": [ "totalSeats", "lockedSeats" ] }, "custom": { "type": "object", "description": "Custom data object" } }, "required": [ "eventId", "metadata" ], "additionalProperties": false}