Booking Moved V1

View JSON Schema

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

Properties

NameTypeTitleDescriptionRequired
ownerobjectOwnerBooking owner informationyes
bookingobjectBookingNew booking informationyes
originalBookingobjectBookingOriginal booking informationyes
playersobject[]PlayersList of playersyes
facilityobjectFacilityFacility informationyes

Example

{
    "owner": {
        "customerId": "CUST123456",
        "userId": "550e8400-e29b-41d4-a716-446655440000",
        "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": false,
        "registrationDate": "2023-07-04T10:00:00Z"
    },
    "booking": {
        "bookingId": "1234555",
        "startTime": "2024-07-04T10:00:00Z",
        "endTime": "2024-07-04T11:00:00Z",
        "courtId": "C001",
        "courtName": "Main Court",
        "accessCode": "ACCESS1234",
        "splitPayment": true,
        "internalNotes": "This note is hidden from customers",
        "externalNotes": "9025 Vuxenkurs"
    },
    "originalBooking": {
        "bookingId": "1234555",
        "startTime": "2024-07-04T10:00:00Z",
        "endTime": "2024-07-04T11:00:00Z",
        "courtId": "C001",
        "courtName": "Main Court",
        "accessCode": "ACCESS1234",
        "splitPayment": true,
        "internalNotes": "This note is hidden from customers",
        "externalNotes": "9025 Vuxenkurs"
    },
    "players": [
        {
            "userId": "550e8400-e29b-41d4-a716-446655440000",
            "email": "john.doe@example.com",
            "isCustomer": false,
            "telephone": "1234567890",
            "cellphone": "0987654321",
            "firstName": "John",
            "lastName": "Doe",
            "customerId": "123456"
        }
    ],
    "facility": {
        "facilityId": "2344123",
        "facilityName": "Matchi Tennis Club"
    }
}

owner: Owner

Booking owner 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 booking owner.no
lastNamestringLast NameThe last name of the booking owner.no
emailstringEmailThe email address of the booking owner, in a valid email format.Format: "email"no
addressstringAddressThe street address of the booking owner.no
citystringCityThe city where the booking owner resides.no
zipcodestringZipcodeThe postal code of the booking owner’s address.no
countrystringCountryThe country where the booking owner resides.no
nationalitystringNationalityThe nationality of the booking owner.no
cellphonestringCellphoneThe cellphone number of the booking owner.no
telephonestringTelephoneThe telephone number of the booking owner.no
dateOfBirthstringDate of BirthThe date of birth of the booking owner, in YYYY-MM-DD format.Format: "date"no
genderstringGenderThe gender of the booking owner.no
isOrganizationbooleanIs OrganizationIndicates whether the booking owner is an organization.no
doNotEmailbooleanDo Not EmailIndicates whether the booking owner should not receive emails from facility.no
registrationDatestringRegistration DateThe date and time when the booking owner registered, in ISO 8601 format.Format: "date-time"no

Example

{
    "customerId": "CUST123456",
    "userId": "550e8400-e29b-41d4-a716-446655440000",
    "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": false,
    "registrationDate": "2023-07-04T10:00:00Z"
}

booking: Booking

New booking information

Properties

NameTypeTitleDescriptionRequired
bookingIdstringBooking IDA unique identifier for the booking.yes
startTimestringStart TimeThe start time of the booking, in ISO 8601 format.Format: "date-time"yes
endTimestringEnd TimeThe end time of the booking, in ISO 8601 format.Format: "date-time"yes
courtIdstringCourt IDA unique identifier for the court.yes
courtNamestringCourt NameThe name of the court.yes
accessCodestringAccess CodeA code to access the court.no
splitPaymentbooleanSplit PaymentIndicates whether the booking type is a split payment booking.no
internalNotesstringInternal NotesThe comments/notes on the booking which should be hidden from players.no
externalNotesstringExternal NotesThe comments/notes on the booking which should be shown to players.no

Example

{
    "bookingId": "1234555",
    "startTime": "2024-07-04T10:00:00Z",
    "endTime": "2024-07-04T11:00:00Z",
    "courtId": "C001",
    "courtName": "Main Court",
    "accessCode": "ACCESS1234",
    "splitPayment": true,
    "internalNotes": "This note is hidden from customers",
    "externalNotes": "9025 Vuxenkurs"
}

originalBooking: Booking

Original booking information

Properties

NameTypeTitleDescriptionRequired
bookingIdstringBooking IDA unique identifier for the booking.yes
startTimestringStart TimeThe start time of the booking, in ISO 8601 format.Format: "date-time"yes
endTimestringEnd TimeThe end time of the booking, in ISO 8601 format.Format: "date-time"yes
courtIdstringCourt IDA unique identifier for the court.yes
courtNamestringCourt NameThe name of the court.yes
accessCodestringAccess CodeA code to access the court.no
splitPaymentbooleanSplit PaymentIndicates whether the booking type is a split payment booking.no
internalNotesstringInternal NotesThe comments/notes on the booking which should be hidden from players.no
externalNotesstringExternal NotesThe comments/notes on the booking which should be shown to players.no

Example

{
    "bookingId": "1234555",
    "startTime": "2024-07-04T10:00:00Z",
    "endTime": "2024-07-04T11:00:00Z",
    "courtId": "C001",
    "courtName": "Main Court",
    "accessCode": "ACCESS1234",
    "splitPayment": true,
    "internalNotes": "This note is hidden from customers",
    "externalNotes": "9025 Vuxenkurs"
}

players[]: Players

List of players

Items: Player

Player information

Item Properties

NameTypeTitleDescriptionRequired
customerIdstringCustomer IDA unique identifier for the customer.no
userIdstringUser IDA unique identifier for the player, in UUID format.Format: "uuid"no
firstNamestringFirst NameThe first name of the player.no
lastNamestringLast NameThe last name of the player.no
cellphonestringCellphoneThe cellphone number of the player.no
telephonestringTelephoneThe telephone number of the player.no
emailstringEmailThe email address of the player, in a valid email format.Format: "email"no
isCustomerbooleanIs CustomerIndicates whether the player is a customer.yes

Example

[
    {
        "userId": "550e8400-e29b-41d4-a716-446655440000",
        "email": "john.doe@example.com",
        "isCustomer": false,
        "telephone": "1234567890",
        "cellphone": "0987654321",
        "firstName": "John",
        "lastName": "Doe",
        "customerId": "123456"
    }
]

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"
}