Update Room Reservation Guest Contact

Update Room Reservation Guest Contact

POST [PlatformAddress]/api/1.0/venue?action=updateBookingRoomReservationGuestContact

Updates the details of a venue booking room reservetion guest contact. It will only allow api callers to update a guest contact details. The only way new guests can be created is with addOrUpdateBookingRoomReservation API. NOTE: The venue must have access to update venue guest in order to call this api action.

{
  "success": true,
  "id": 8821,
}

Guest Contact

PropertyTypeRequiredDescription

id

integer

optional

The unique id of the guest contact to update.

firstName

string

required

The first name of the guest contact.

lastName

string

required

The last name of the guest contact.

phone

string

required

The phone number of the guest contact.

email

string

required

The email address of the guest contact.

Update

When id is provided, it will fetch guest contact by id and update contact details. when id parameter is missing, it will update guest contact based on firstName, lastName and email.

Note: You can not update guest contact which is anonymised.

Example Request

{
    "id": 12,
    "firstName": "First Name",
    "lastName": "Last Name",
    "phone": "123456",
    "email" : "test@email.com",
}

Returns

PropertyDescription

success

Whether or not the guest contact was updated

id

The unique id of the guest contact that was updated

Throws

CodeDescription

Specific Code: 24421

Could not find contact

Specific Code: 24422

contact id or identity must be there

Specific Code: 24423

An error has occurred

Specific Code: 24424

The request contains invalid data

Specific Code: 24425

The request contains invalid data

Last updated