Customer Created V1

View JSON Schema

A message that is sent when a customer is created. The message contains information about the customer and the facility that the customer was created for. This event is triggered when a customer is created.This is data part of the message please read the event section for more information of the metadata envelop.

Properties

NameTypeTitleDescriptionRequired
customerobjectCustomerCustomer informationyes
facilityobjectFacilityFacility informationyes

Example

{
    "customer": {
        "customerId": "12345",
        "userId": "123e4567-e89b-12d3-a456-426614174000",
        "firstName": "John",
        "lastName": "Doe",
        "email": "john.doe@example.com",
        "address": "123 Main St",
        "city": "Anytown",
        "zipcode": "12345",
        "country": "USA",
        "nationality": "American",
        "cellphone": "+1234567890",
        "telephone": "+0987654321",
        "dateOfBirth": "1980-01-01",
        "gender": "male",
        "isOrganization": false,
        "doNotEmail": true,
        "registrationDate": "2023-01-01T12:00:00Z"
    },
    "facility": {
        "facilityId": "2344123",
        "facilityName": "Matchi Tennis Club"
    }
}

customer: Customer

Customer information

Properties

NameTypeTitleDescriptionRequired
customerIdstringCustomer IDA unique identifier for the customer.yes
userIdstringUser IDA unique identifier for the user, in UUID format.Format: "uuid"no
firstNamestringFirst NameThe first name of the customer.no
lastNamestringLast NameThe last name of the customer.no
emailstringEmailThe email address of the customer, in a valid email format.Format: "email"no
addressstringAddressThe street address of the customer.no
citystringCityThe city where the customer resides.no
zipcodestringZipcodeThe postal code of the customer’s address.no
countrystringCountryThe country where the customer resides.no
nationalitystringNationalityThe nationality of the customer.no
cellphonestringCellphoneThe cellphone number of the customer.no
telephonestringTelephoneThe telephone number of the customer.no
dateOfBirthstringDate of BirthThe date of birth of the customer, in YYYY-MM-DD format.Format: "date"no
genderstringGenderThe gender of the customer.no
isOrganizationbooleanIs OrganizationIndicates whether the customer is an organization.no
doNotEmailbooleanDo Not EmailIndicates whether the customer should not receive emails from facility.no
registrationDatestringRegistration DateThe date and time when the customer registered, in ISO 8601 format.Format: "date-time"no

Example

{
    "customerId": "12345",
    "userId": "123e4567-e89b-12d3-a456-426614174000",
    "firstName": "John",
    "lastName": "Doe",
    "email": "john.doe@example.com",
    "address": "123 Main St",
    "city": "Anytown",
    "zipcode": "12345",
    "country": "USA",
    "nationality": "American",
    "cellphone": "+1234567890",
    "telephone": "+0987654321",
    "dateOfBirth": "1980-01-01",
    "gender": "male",
    "isOrganization": false,
    "doNotEmail": true,
    "registrationDate": "2023-01-01T12:00:00Z"
}

facility: Facility

Facility information

Properties

NameTypeTitleDescriptionRequired
facilityIdstringFacility IDA unique identifier for the facility.yes
facilityNamestringFacility NameThe name of the facility.yes

Example

{
    "facilityId": "2344123",
    "facilityName": "Matchi Tennis Club"
}