Update ReservationRoomStayGuest [PUT]

Operation

Information of the operation

PUT
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/reservationRoomStay/{reservationRoomStayId}/reservationRoomStayGuest


Request

PropertyTypeRequiredType parameterDefault valueDescription

chainId

Integertruepath parameter

propertyIdInteger
path parameter

reservationRoomStayIdInteger
path parameter

createProfileIfNotExistsbooleanfalserequest parameterfalse
Link the guest with the profile.

Example request

PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservationRoomStay/1/reservationRoomStayGuest


Body

An array of elements of type ReservationRoomStayGuest.


FieldTypeRequiredDescription
idIntegertrueReservationRoomStay Guest.
profileIdIntegerfalseProfile Id.
documentTypeDocumentTypetrueType of document
documentNumberStringtrueIdentificative number of the document of the guest.
documentSupportStringfalseIdentificative number of the support document of the guest.
givenNameStringtrueName of the guest.
secondSurNameStringtrueSecond surname of the guest.
surnameStringtrueSurname of the guest.

genderType

GenderTypetrueGender of the guest.
familyRelationShipFamilyRelationship
Family Relationship of the guest.

birthDate

LocalDatetrueBirth date of the guest as is on the document.
birthCountryCodeStringtrueBirth country of the guest as is on the document. ISO 3166-1 alpha-2
birthPlaceString
Name of the city/town where the guest was born.
effectiveDateLocalDatetrueDate when the document was created.
expireDateLocalDatetrueDate when the document expires.
streetStringtrueStreet of the residence of the guest as is on the document.
cityStringtrueCity of the guest as is on the document.
stateProvNameStringfalseState or province of the guest as is on the document.
stateProvCodeStringfalseISO 3166-2
countryCodeStringfalseCountry of the guest as is on the document. ISO 3166-1 alpha-2
postalCodeStringfalseCP of the guest as is on the document.
nationalityCountryCodeStringfalseCountry of the nationality of the guest. ISO 3166-1 alpha-2
countryOfIssuanceCodeStringfalseCountry of issuance of the document of the guest. ISO 3166-1 alpha-2
ocrStringfalse
emailStringfalse
phoneNumberStringfalse
allowMarketingBooleantrue
allowThirdPartyBooleantrue
languageLanguagefalse
registrationNumberIntegerfalsePolice registration number. If zero, not have register.
reservationRoomStayGuestCustomFieldValueSetList<ReservationRoomStayGuestCustomFieldValue>false

This fields of ReservationRoomStayGuest are not required:

FieldRequired

documentType

false
genderTypefalse
birthCountryfalse
stateProvfalse
countryfalse
nationalCountryfalse
countryOfIssuancefalse
languagefalse
reservationRoomStayGuestCustomFieldValueListfalse

Example body

[{
      "id": 2,
      "documentType": {
        "id": 2,
        "code": "2",
        "name": "Passport"
      },
      "documentNumber": "swgcACUU",
      "givenName": "Marie",
      "secondSurName": "Mélodie",
      "surName": "Hunt",
      "genderType": {
        "id": 1,
        "code": "M",
        "name": "Male"
      },
      "birthDate": "2002-02-13",
      "birthCountryCode": "VU",
      "birthPlace": "Memphis",
      "effectiveDate": "2019-02-13",
      "expireDate": "2019-02-13",
      "street": "2603 Cherokee Drive",
      "city": "Memphis",
      "stateProvName": "Tennessee",
      "stateProvCode": null,
      "countryCode": "VU",
      "postalCode": "38104",
      "nationalityCountryCode": "VU",
      "countryOfIssuanceCode": "ES",
      "ocr": null,
      "email": "bhernandezo@instagram.com",
      "phoneNumber": "1-(901)206-4293",
      "allowMarketing" :true,
      "allowThirdParty" :false,
      "language": {
        "id": 1,
        "code": "ES",
        "name": "Spanish"
       }
    }]

Response

A success or error message.

Example response

{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success ReservationRoomStay guest updated",
  "errorCode": "0",
  "id": 1
}