{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blackbaud/main/json-schema/blackbaud-new-event-registrant-schema.json",
  "title": "NewEventRegistrant",
  "description": "CreateEventRegistrant",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-altru-event-api-openapi.yml#/components/schemas/NewEventRegistrant",
  "required": [
    "event_id",
    "constituent_id"
  ],
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The event ID."
    },
    "eventname": {
      "maxLength": 100,
      "minLength": 0,
      "type": "string",
      "description": "The event. Read-only in the SOAP API."
    },
    "main_event_id": {
      "type": "string",
      "description": "The maineventid. Read-only in the SOAP API."
    },
    "main_event_name": {
      "maxLength": 100,
      "minLength": 0,
      "type": "string",
      "description": "The main event. Read-only in the SOAP API."
    },
    "constituent_id": {
      "type": "string",
      "description": "The registrant."
    },
    "date_purchased": {
      "type": "string",
      "description": "The date. Uses the format YYYY-MM-DDThh:mm:ss. An example date: <i>1955-11-05T22:04:00</i>.",
      "format": "date-time"
    },
    "package_registrations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantPackageRegistrations"
      },
      "description": "Package registrations."
    },
    "packages_prices": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantPackagesPrices"
      },
      "description": "Packages prices."
    },
    "single_event_registrations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantSingleEventRegistrations"
      },
      "description": "Single event registrations."
    },
    "multi_component_events_with_prices": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantMultiComponentEventsWithPrices"
      },
      "description": "Multi component events with prices."
    },
    "multi_component_event_price_benefits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantMultiComponentEventPriceBenefits"
      },
      "description": "Multi component event price benefits."
    },
    "multi_component_event_preference_groups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantMultiComponentEventPreferenceGroups"
      },
      "description": "Multi component event preference groups."
    },
    "multi_component_event_appeals": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantMultiComponentEventAppeals"
      },
      "description": "Multi component event appeals."
    },
    "waive_benefits": {
      "type": "boolean",
      "description": "Indicates whether waive benefits."
    },
    "registrant_mappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantRegistrantMappings"
      },
      "description": "Registrant mappings."
    },
    "constituent_record_type_id": {
      "type": "string",
      "description": "The constituent record type ID. Read-only in the SOAP API."
    },
    "multi_component_event_schedules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantMultiComponentEventSchedules"
      },
      "description": "Multi component event schedules."
    },
    "single_event_list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantSingleEventList"
      },
      "description": "Single event list."
    },
    "eventcurrency": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewEventRegistrantEventcurrency"
      },
      "description": "Eventcurrency."
    },
    "registration_type_code": {
      "type": "string",
      "description": "The registration type. Available values are <i>preregistration</i>, <i>walk-in registration</i>"
    },
    "event_has_started": {
      "type": "boolean",
      "description": "Indicates whether event has started. Read-only in the SOAP API."
    }
  },
  "additionalProperties": false,
  "x-display-name": "Registrant Unified Add Form",
  "x-display-id": "Registrant Unified Add Form",
  "$defs": {
    "HourMinute": {
      "type": "object",
      "properties": {
        "hour": {
          "type": "integer",
          "description": "The hour.",
          "format": "int32"
        },
        "minute": {
          "type": "integer",
          "description": "The minute.",
          "format": "int32"
        }
      },
      "description": "HourMinute",
      "x-display-name": "Hour Minute",
      "x-display-id": "Hour Minute"
    },
    "NewEventRegistrantEventcurrency": {
      "type": "object",
      "properties": {
        "event_currency_event_id": {
          "type": "string",
          "description": "eventcurrencyeventid"
        },
        "base_currency_id": {
          "type": "string",
          "description": "basecurrencyid"
        },
        "team_fundraising_base_currency_id": {
          "type": "string",
          "description": "teamfundraisingbasecurrencyid"
        }
      },
      "description": "NewEventRegistrantEventcurrency",
      "x-display-name": "eventcurrency",
      "x-display-id": "eventcurrency"
    },
    "NewEventRegistrantMultiComponentEventAppeals": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "description": "eventid"
        },
        "appeal_id": {
          "type": "string",
          "description": "appealid"
        }
      },
      "description": "NewEventRegistrantMultiComponentEventAppeals",
      "x-display-name": "multi_component_event_appeals",
      "x-display-id": "multi_component_event_appeals"
    },
    "NewEventRegistrantMultiComponentEventPreferenceGroups": {
      "type": "object",
      "properties": {
        "event_preference_group_id": {
          "type": "string",
          "description": "eventpreferencegroupid"
        },
        "event_preference_group_event_id": {
          "type": "string",
          "description": "eventpreferencegroupeventid"
        },
        "event_preference_group_event_name": {
          "type": "string",
          "description": "eventpreferencegroupeventname"
        },
        "event_preference_group_name": {
          "type": "string",
          "description": "eventpreferencegroupname"
        }
      },
      "description": "NewEventRegistrantMultiComponentEventPreferenceGroups",
      "x-display-name": "multi_component_event_preference_groups",
      "x-display-id": "multi_component_event_preference_groups"
    },
    "NewEventRegistrantMultiComponentEventPriceBenefits": {
      "type": "object",
      "properties": {
        "event_price_benefit_id": {
          "type": "string",
          "description": "eventpricebenefitid"
        },
        "benefit_id": {
          "type": "string",
          "description": "benefitid"
        },
        "benefit_name": {
          "type": "string",
          "description": "benefitname"
        },
        "benefit_total_value": {
          "type": "number",
          "description": "benefittotalvalue"
        },
        "benefit_description": {
          "type": "string",
          "description": "benefitdescription"
        },
        "event_price_benefit_details": {
          "type": "string",
          "description": "eventpricebenefitdetails"
        },
        "event_price_id": {
          "type": "string",
          "description": "eventpriceid"
        }
      },
      "description": "NewEventRegistrantMultiComponentEventPriceBenefits",
      "x-display-name": "multi_component_event_price_benefits",
      "x-display-id": "multi_component_event_price_benefits"
    },
    "NewEventRegistrantMultiComponentEventSchedules": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id"
        },
        "name": {
          "type": "string",
          "description": "name"
        },
        "start_date": {
          "type": "string",
          "description": "startdate",
          "format": "date"
        },
        "start_time": {
          "$ref": "#/$defs/HourMinute"
        },
        "end_date": {
          "type": "string",
          "description": "enddate",
          "format": "date"
        },
        "end_time": {
          "$ref": "#/$defs/HourMinute"
        }
      },
      "description": "NewEventRegistrantMultiComponentEventSchedules",
      "x-display-name": "multi_component_event_schedules",
      "x-display-id": "multi_component_event_schedules"
    },
    "NewEventRegistrantMultiComponentEventsWithPrices": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id"
        },
        "eventname": {
          "type": "string",
          "description": "eventname"
        },
        "event_price_id": {
          "type": "string",
          "description": "eventpriceid"
        },
        "event_price_name": {
          "type": "string",
          "description": "eventpricename"
        },
        "event_registration_type_id": {
          "type": "string",
          "description": "eventregistrationtypeid"
        },
        "event_registration_type_description": {
          "type": "string",
          "description": "eventregistrationtypedescription"
        },
        "event_price_amount": {
          "type": "number",
          "description": "eventpriceamount"
        },
        "event_price_receipt_amount": {
          "type": "number",
          "description": "eventpricereceiptamount"
        },
        "event_price_cost": {
          "type": "number",
          "description": "eventpricecost"
        },
        "event_price_registration_count": {
          "type": "integer",
          "description": "eventpriceregistrationcount"
        },
        "show_event": {
          "type": "boolean",
          "description": "showevent"
        },
        "registration_type_active": {
          "type": "boolean",
          "description": "registrationtypeactive"
        }
      },
      "description": "NewEventRegistrantMultiComponentEventsWithPrices",
      "x-display-name": "multi_component_events_with_prices",
      "x-display-id": "multi_component_events_with_prices"
    },
    "NewEventRegistrantPackageRegistrations": {
      "required": [
        "packageregistrationpackage",
        "quantity"
      ],
      "type": "object",
      "properties": {
        "package_registration_id": {
          "type": "string",
          "description": "package registration id"
        },
        "packageregistrationpackage": {
          "type": "string",
          "description": "The package. This simple list can be queried at https://api.sky.blackbaud.com/alt-adnmg/simplelists/05ea588e-c0ac-4089-92b2-7680f6a3e471?parameters=main_event_id,{main_event_id}."
        },
        "quantity": {
          "type": "integer",
          "description": "quantity"
        },
        "amount": {
          "type": "number",
          "description": "registration fee"
        },
        "receipt_amount": {
          "type": "number",
          "description": "receipt amount"
        },
        "registrationcount": {
          "type": "integer",
          "description": "registration count"
        },
        "package_registrant_registrations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NewEventRegistrantPackageregistrationsPackageRegistrantRegistrations"
          },
          "description": "Package registrant registrations."
        }
      },
      "description": "NewEventRegistrantPackageRegistrations",
      "x-display-name": "package_registrations",
      "x-display-id": "package_registrations"
    },
    "NewEventRegistrantPackageregistrationsPackageRegistrantRegistrations": {
      "type": "object",
      "properties": {
        "packageeventpriceid": {
          "type": "string",
          "description": "event price id"
        },
        "amount": {
          "type": "number",
          "description": "amount"
        },
        "receipt_amount": {
          "type": "number",
          "description": "receipt amount"
        }
      },
      "description": "NewEventRegistrantPackageregistrationsPackageRegistrantRegistrations",
      "x-display-name": "package_registrant_registrations",
      "x-display-id": "package_registrant_registrations"
    },
    "NewEventRegistrantPackagesPrices": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id"
        },
        "name": {
          "type": "string",
          "description": "name"
        },
        "event_price_id": {
          "type": "string",
          "description": "eventpriceid"
        },
        "event_price_event_id": {
          "type": "string",
          "description": "eventpriceeventid"
        },
        "eventname": {
          "type": "string",
          "description": "eventname"
        },
        "event_registration_type_id": {
          "type": "string",
          "description": "eventregistrationtypeid"
        },
        "event_registration_type_description": {
          "type": "string",
          "description": "eventregistrationtypedescription"
        },
        "amount": {
          "type": "number",
          "description": "amount"
        },
        "receipt_amount": {
          "type": "number",
          "description": "receiptamount"
        },
        "cost": {
          "type": "number",
          "description": "cost"
        },
        "registrationcount": {
          "type": "integer",
          "description": "registrationcount"
        },
        "show_package": {
          "type": "boolean",
          "description": "showpackage"
        }
      },
      "description": "NewEventRegistrantPackagesPrices",
      "x-display-name": "packages_prices",
      "x-display-id": "packages_prices"
    },
    "NewEventRegistrantRegistrantMappings": {
      "type": "object",
      "properties": {
        "registrant_package_id": {
          "type": "string",
          "description": "registrantpackageid"
        },
        "registration_package_id": {
          "type": "string",
          "description": "registrationpackageid"
        },
        "event_id": {
          "type": "string",
          "description": "eventid"
        },
        "event_price_id": {
          "type": "string",
          "description": "eventpriceid"
        },
        "registrations_collection_id": {
          "type": "string",
          "description": "registrationscollectionid"
        },
        "registrant_registration_maps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NewEventRegistrantRegistrantmappingsRegistrantRegistrationMaps"
          },
          "description": "Registrant registration maps."
        },
        "registrant_waive_benefits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NewEventRegistrantRegistrantmappingsRegistrantWaiveBenefits"
          },
          "description": "Registrant waive benefits."
        },
        "name": {
          "type": "string",
          "description": "event/package"
        },
        "guest_constituent_id": {
          "type": "string",
          "description": "guest"
        },
        "waive_registration_fee": {
          "type": "boolean",
          "description": "waive registration fee"
        },
        "has_notifications": {
          "type": "boolean",
          "description": "has notifications"
        },
        "team_fundraising": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NewEventRegistrantRegistrantmappingsTeamFundraising"
          },
          "description": "Team fundraising."
        },
        "preferences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NewEventRegistrantRegistrantmappingsPreferences"
          },
          "description": "Preferences."
        }
      },
      "description": "NewEventRegistrantRegistrantMappings",
      "x-display-name": "registrant_mappings",
      "x-display-id": "registrant_mappings"
    },
    "NewEventRegistrantRegistrantmappingsPreferences": {
      "required": [
        "event_preference_group_id"
      ],
      "type": "object",
      "properties": {
        "event_preference_group_id": {
          "type": "string",
          "description": "preference type"
        },
        "eventpreference": {
          "type": "string",
          "description": "The choice. This simple list can be queried at https://api.sky.blackbaud.com/alt-adnmg/simplelists/98c86e0a-3e53-47f6-9088-52677fc1053f?parameters=event_preference_group_id,{event_preference_group_id}."
        }
      },
      "description": "NewEventRegistrantRegistrantmappingsPreferences",
      "x-display-name": "preferences",
      "x-display-id": "preferences"
    },
    "NewEventRegistrantRegistrantmappingsRegistrantRegistrationMaps": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "description": "eventid"
        },
        "registrantregistrationmapid": {
          "type": "string",
          "description": "registrantregistrationmapid"
        }
      },
      "description": "NewEventRegistrantRegistrantmappingsRegistrantRegistrationMaps",
      "x-display-name": "registrant_registration_maps",
      "x-display-id": "registrant_registration_maps"
    },
    "NewEventRegistrantRegistrantmappingsRegistrantWaiveBenefits": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "description": "eventid"
        },
        "waive_benefits": {
          "type": "boolean",
          "description": "waivebenefits"
        }
      },
      "description": "NewEventRegistrantRegistrantmappingsRegistrantWaiveBenefits",
      "x-display-name": "registrant_waive_benefits",
      "x-display-id": "registrant_waive_benefits"
    },
    "NewEventRegistrantRegistrantmappingsTeamFundraising": {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "description": "eventid"
        },
        "teamfundraisergoal": {
          "type": "number",
          "description": "goal"
        },
        "teamfundraisingteams": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NewEventRegistrantRegistrantmappingsTeamfundraisingTeamfundraisingteams"
          },
          "description": "Teamfundraisingteams."
        },
        "teamfundraisercurrencyid": {
          "type": "string",
          "description": "teamfundraisercurrencyid"
        }
      },
      "description": "NewEventRegistrantRegistrantmappingsTeamFundraising",
      "x-display-name": "team_fundraising",
      "x-display-id": "team_fundraising"
    },
    "NewEventRegistrantRegistrantmappingsTeamfundraisingTeamfundraisingteams": {
      "type": "object",
      "properties": {
        "teamfundraisingteammemberid": {
          "type": "string",
          "description": "teamfundraisingteammemberid"
        },
        "teamfundraisingteamid": {
          "type": "string",
          "description": "team"
        },
        "isteamcaptain": {
          "type": "boolean",
          "description": "team captain"
        }
      },
      "description": "NewEventRegistrantRegistrantmappingsTeamfundraisingTeamfundraisingteams",
      "x-display-name": "teamfundraisingteams",
      "x-display-id": "teamfundraisingteams"
    },
    "NewEventRegistrantSingleEventList": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id"
        }
      },
      "description": "NewEventRegistrantSingleEventList",
      "x-display-name": "single_event_list",
      "x-display-id": "single_event_list"
    },
    "NewEventRegistrantSingleEventRegistrations": {
      "required": [
        "singleeventregistrationevent",
        "singleeventregistrationeventprice",
        "quantity"
      ],
      "type": "object",
      "properties": {
        "single_event_registration_id": {
          "type": "string",
          "description": "single event registration id"
        },
        "singleeventregistrationevent": {
          "type": "string",
          "description": "The event. This simple list can be queried at https://api.sky.blackbaud.com/alt-adnmg/simplelists/7c63d7a2-02a4-4472-ab69-14d46c5400f3?parameters=main_event_id,{main_event_id}."
        },
        "singleeventregistrationeventprice": {
          "type": "string",
          "description": "The registration option. This simple list can be queried at https://api.sky.blackbaud.com/alt-adnmg/simplelists/3be79f65-49fc-49da-9765-3a34dd269011?parameters=event_id,{single_event_registration_event_id}."
        },
        "quantity": {
          "type": "integer",
          "description": "quantity"
        },
        "amount": {
          "type": "number",
          "description": "registration fee"
        },
        "receipt_amount": {
          "type": "number",
          "description": "receipt amount"
        },
        "registrationcount": {
          "type": "integer",
          "description": "registration count"
        }
      },
      "description": "NewEventRegistrantSingleEventRegistrations",
      "x-display-name": "single_event_registrations",
      "x-display-id": "single_event_registrations"
    }
  }
}