This API helps you to Add Sharer data (name, phone, mobile, email, etc). The API can return data in JSON formats. The web service responds to HTTP POST requests.
Note : Maximum Five sharers will only be processed at a time.
End Point URL
Header
Parameter
Name | Data Type | Description | Example |
HotelCode* | INT(11) | Unique Hotel code | xxxx |
AuthCode* | VARCHAR(300) | Unique Authentication code | xxxxxxxxxx |
Request_Type* | VARCHAR(100) | Request Type | AddSharer |
Sharers->BookingId* | VARCHAR(255) | Unique Booking Id/Reservation No | 456 |
Sharers->Salutation | VARCHAR(100) | Salutation | Mr. |
Sharers->FirstName* | VARCHAR(500) | First Name | xxxxxx |
Sharers->LastName* | VARCHAR(500) | Last Name | xxxxxx |
Sharers->Gender* | VARCHAR(25) | Male/Female | Male/Female |
Sharers->Type* | VARCHAR(25) | For Update Type (Adult/Child) | Adult |
Sharers->DateOfBirth | DATE | Date Of Birthformat: YYYY-MM-DD | 1985-05-05 |
Sharers->SpouseDateOfBirth | DATE | Spouse date of birthformat: YYYY-MM-DD | 1987-01-25 |
Sharers->WeddingAnniversary | DATE | Wedding anniversary dateformat: YYYY-MM-DD | 1987-10-05 |
Sharers->Address | VARCHAR(1000) | Address | 500 Kingston |
Sharers->City | VARCHAR(100) | Name of city | Toronto |
Sharers->State | VARCHAR(100) | State name | Ontario |
Sharers->Country | VARCHAR(100) | Country name | Canada (for country https://api.ezeetechnosys.com/#589 |
Sharers->Nationality | VARCHAR(100) | Nationality | India (for country https://api.ezeetechnosys.com/#589) |
Sharers->Zipcode | Integer(11) | zip code | 123456 |
Sharers->Phone | Integer(20) | Phone number | 1234567890 |
Sharers->Mobile | Integer(20) | Mobile number | 1234567890 |
Sharers->Fax | Integer(20) | Fax number | 1234567890 |
Sharers->Email* | VARCHAR(255) | Email id | abc@xyz.com |
Sharers->RegistratioNo | VARCHAR(255) | Registration number | 12345 |
Sharers->IdentityId | BIGINT(20) | Identity unique Id | 1234500000000000001 |
Sharers->IdentityNo | VARCHAR(255) | Identity type number | 123456789 |
Sharers->ExpiryDate | DATE | Expiry dateformat: YYYY-MM-DD | 2022-05-02 |
Request
1.For Single Booking Request { "RES_Request": { "Request_Type": "AddSharer", "Authentication": { "HotelCode": "xxxx", "AuthCode": "xxxxxxxxxxxx" }, "Sharers": [{ "BookingId": "RES101", "Salutation": "Ms.", "FirstName": "Hexvi.S.", "LastName": "Shaby", "Gender": "Female", "Type": "Adult", "DateOfBirth": "", "SpouseDateOfBirth": "", "WeddingAnniversary": "", "Address": "", "City": " Brockway", "State": "CA", "Country": "Germany", "Nationality": "Malta", "Zipcode": "95730", "Phone": "", "Mobile": "3534", "Fax": "564564", "Email": "LarryLForney@rhyta.com", "RegistrationNo": "", "IdentityTypeID": "894300000000000003", "IdentityNo": "12345667765", "ExpiryDate": "" } ] } } 2.For Multiple Booking Request { "RES_Request": { "Request_Type": "AddSharer", "Authentication": { "HotelCode": "xxxx", "AuthCode": "xxxxxxxxxxxx" }, "Sharers": [{ "BookingId": "RES102", "Salutation": "Ms.", "FirstName": "Willi", "LastName": "Crooswoth", "Gender": "Female", "Type": "Adult", "DateOfBirth": "", "SpouseDateOfBirth": "", "WeddingAnniversary": "", "Address": "", "City": " Brockway", "State": "CA", "Country": "Germany", "Nationality": "Malta", "Zipcode": "95730", "Phone": "", "Mobile": "3534", "Fax": "564564", "Email": "LarryLForney@rhyta.com", "RegistrationNo": "", "IdentityTypeID": "2700000000000001", "IdentityNo": "12345667765", "ExpiryDate": "" }, { "BookingId": "RES112", "Salutation": "Ms.", "FirstName": "Test", "LastName": "One", "Gender": "Female", "Type": "Adult", "DateOfBirth": "", "SpouseDateOfBirth": "", "WeddingAnniversary": "", "Address": "", "City": " Brockway", "State": "CA", "Country": "Germany", "Nationality": "Malta", "Zipcode": "95730", "Phone": "", "Mobile": "3534", "Fax": "564564", "Email": "LarryLForney@rhyta.com", "RegistrationNo": "", "IdentityTypeID": "2700000000000001", "IdentityNo": "12345667765", "ExpiryDate": "" } ] } }
Response
Name | Data Type | Description | Example |
Success->SuccessMsg | String | Success Message | Successfully Done |
Errors->ErrorCode | integer | Error Code | 100 |
Errors->ErrorMessage | String | Error Message | Success |
Success
1.Full operation is successfully completed { "Success": { "SuccessMsg": "Sharer is successfully added for Booking RES101" }, "Errors": { "ErrorCode": "0", "ErrorMessage": "Success" } } 2.Full operation Is successfully completed for multiple booking { "Success": { "SuccessMsg": "Sharer is successfully added for Booking RES101,RES112" }, "Errors": { "ErrorCode": "0", "ErrorMessage": "Success" } } 3.In case some booking are successfully added and some have errors for multiple bookings { "Success": { "SuccessMsg": "Sharer is successfully added for Booking RES101" }, "Errors": [ { "ErrorCode": "114", "ErrorMessage": "Country not properly added, it should be according to our database for Booking : RES112" } ] }
Error
{ "Errors": { "ErrorCode": "615", "ErrorMessage": "Unauthorized Request: This request is not valid." } }
Error Codes
Error Code | Error Name |
100 | Missing required parameters |
500 | Error occurred during processing. |
502 | Invalid Request Type |
101 | Hotel Code is missing |
102 | Authentication Code is missing |
303 | Auth Code is inactive |
201 | Unauthorized request.(Request Type) request is not valid for this hotel code |
202 | Unauthorized request. Hotel code is not active |
615 | Unauthorized Request: This request is not valid. |
600 | Something went wrong. please try again. Booking |
110 | BookingId is missing |
111 | You cannot add more sharers as the maximum limit for adults reached for the type of room offered, so adding Sharer failed for Booking |
112 | You cannot add more sharers as the maximum limit for children reached for the type of room offered, so adding Sharer failed for Booking |
121 | Either firstname/lastName or Email is mandatory to process your request for Booking |
114 | Country/Nationality is not properly added, it should be according to our database for Booking |
115 | Invalid field <field> for Booking |
116 | Invalid value “<value>” for field “<field name>” for Booking |
113 | We don’t find this reservation in our system. So you can’t add guest for Booking |
117 | Reservation is canceled,noshow or void. So you can’t add guest for Booking |
118 | Reservation is past checked out. So you can’t add guest for Booking |
120 | Maximum five sharers will be processed at a time |