{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seamlessevents-io/json-schema/seamlessevents-io-registration-base-schema.json",
  "title": "RegistrationBase",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seamlessevents-io-openapi.json#/components/schemas/RegistrationBase",
  "properties": {
    "id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id"
    },
    "eventId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Eventid"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "phoneNumber": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phonenumber"
    },
    "companyName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Companyname"
    },
    "jobTitle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Jobtitle"
    },
    "reference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reference"
    },
    "locale": {
      "type": "string",
      "title": "Locale",
      "default": "en"
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    },
    "discountCodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discountcodeid"
    },
    "discountCode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discountcode"
    },
    "total": {
      "type": "number",
      "title": "Total",
      "default": 0.0
    },
    "totalLessTax": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Totallesstax"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "USD"
    },
    "paymentProvider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Paymentprovider"
    },
    "paymentReference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Paymentreference"
    },
    "paymentComplete": {
      "type": "boolean",
      "title": "Paymentcomplete",
      "default": false
    },
    "state": {
      "type": "string",
      "title": "State",
      "default": "incomplete"
    },
    "cancelled": {
      "type": "boolean",
      "title": "Cancelled",
      "default": false
    },
    "free": {
      "type": "boolean",
      "title": "Free",
      "default": false
    },
    "manual": {
      "type": "boolean",
      "title": "Manual",
      "default": false
    },
    "imported": {
      "type": "boolean",
      "title": "Imported",
      "default": false
    },
    "testMode": {
      "type": "boolean",
      "title": "Testmode",
      "default": false
    },
    "termsAccepted": {
      "type": "boolean",
      "title": "Termsaccepted",
      "default": false
    },
    "consentedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Consentedat"
    },
    "completedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completedat"
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Createdat"
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updatedat"
    },
    "serviceFee": {
      "type": "number",
      "title": "Servicefee",
      "default": 0.0
    },
    "taxAmount": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Taxamount"
    },
    "discountAmount": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discountamount"
    },
    "attendees": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/AttendeeBase-Output"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Attendees"
    },
    "quantities": {
      "additionalProperties": true,
      "type": "object",
      "title": "Quantities",
      "description": "Breakdown of ticket types and quantities.",
      "readOnly": true
    },
    "discountCodeStr": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discountcodestr",
      "description": "The discount code string used (not just the ID).",
      "readOnly": true
    },
    "paymentIncomplete": {
      "type": "boolean",
      "title": "Paymentincomplete",
      "description": "True if payment is not yet complete.",
      "readOnly": true
    },
    "editableTotalAndPrices": {
      "type": "boolean",
      "title": "Editabletotalandprices",
      "description": "Whether the total/prices can be edited (for manual registrations).",
      "readOnly": true
    }
  },
  "type": "object",
  "required": [
    "quantities",
    "discountCodeStr",
    "paymentIncomplete",
    "editableTotalAndPrices"
  ],
  "$defs": {
    "AttendeeAnswerCreate": {
      "properties": {
        "attendeeId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Attendeeid"
        },
        "questionId": {
          "type": "string",
          "format": "uuid",
          "title": "Questionid"
        },
        "primaryResponse": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Primaryresponse"
        },
        "alternateResponse": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alternateresponse"
        },
        "fileUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fileurl"
        }
      },
      "type": "object",
      "required": [
        "questionId"
      ],
      "title": "AttendeeAnswerCreate"
    },
    "AttendeeBase-Output": {
      "properties": {
        "eventId": {
          "type": "string",
          "format": "uuid",
          "title": "Eventid"
        },
        "registrationId": {
          "type": "string",
          "format": "uuid",
          "title": "Registrationid"
        },
        "ticketTypeId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tickettypeid"
        },
        "firstName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Firstname"
        },
        "lastName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lastname"
        },
        "email": {
          "anyOf": [
            {
              "type": "string",
              "format": "email"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email"
        },
        "phoneNumber": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Phonenumber"
        },
        "companyName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Companyname"
        },
        "jobTitle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jobtitle"
        },
        "userId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Userid"
        },
        "answers": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AttendeeAnswerCreate"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Answers"
        },
        "id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "reference": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reference"
        },
        "number": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Number"
        },
        "price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price"
        },
        "priceLessTax": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pricelesstax"
        },
        "state": {
          "type": "string",
          "title": "State",
          "default": "unassigned"
        },
        "assigned": {
          "type": "boolean",
          "title": "Assigned",
          "default": false
        },
        "void": {
          "type": "boolean",
          "title": "Void",
          "default": false
        },
        "checkedIn": {
          "type": "boolean",
          "title": "Checkedin",
          "default": false
        },
        "checkedInAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Checkedinat"
        },
        "testMode": {
          "type": "boolean",
          "title": "Testmode",
          "default": false
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metadata"
        },
        "discountCodeUsed": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Discountcodeused"
        },
        "createdAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Createdat"
        },
        "updatedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updatedat"
        },
        "eventSlug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Eventslug"
        },
        "fullName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fullname",
          "readOnly": true
        },
        "ticketTypeTitle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tickettypetitle",
          "readOnly": true
        },
        "ticketTypeSlug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tickettypeslug",
          "readOnly": true
        },
        "uniqueUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Uniqueurl",
          "description": "Attendee's unique ticket URL.",
          "readOnly": true
        },
        "qrUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Qrurl",
          "description": "QR code URL for check-in.",
          "readOnly": true
        },
        "avatarUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Avatarurl",
          "description": "Gravatar URL based on email.",
          "readOnly": true
        },
        "totalPaid": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totalpaid",
          "description": "Gross price paid for this ticket.",
          "readOnly": true
        },
        "totalPaidLessTax": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Totalpaidlesstax",
          "description": "Net price paid for this ticket.",
          "readOnly": true
        },
        "tags": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tags",
          "description": "Comma-separated tags from metadata.",
          "readOnly": true
        }
      },
      "type": "object",
      "required": [
        "eventId",
        "registrationId",
        "fullName",
        "ticketTypeTitle",
        "ticketTypeSlug",
        "uniqueUrl",
        "qrUrl",
        "avatarUrl",
        "totalPaid",
        "totalPaidLessTax",
        "tags"
      ],
      "title": "AttendeeBase"
    }
  }
}