Project

General

Profile

기능(Feature) #718

Updated by Dan Hoang 8 months ago

Define API out for CMS so CMS can receive Alice's booking request and process it in CMS side 

 *Request:* 
 { 
   "hotelCode": "12234567", 
   "bookingCode": "K25022510401H01", 
   "roomTypeCode": "RTAB1475", 
   "ratePlanCode": "PAAM0864", 
   "roomCount": 2, 
   "checkInDate": "2025-07-06", 
   "checkOutDate": "2025-07-08", 
   "mealCode": "B", 
   "totalAmount": 2000000, 
   "adultCount": 2, 
   "childCount": 0, 
   "childAges": [], 
   "contactPerson": { 
     "firtName": "A", 
     "lastName": "B", 
     "email": "ab@abc.com", 
     "countryPhoneCode": "+82", 
     "mobileNo": "01012341234" 
   }, 
   "rooms": [ 
     { 
       "dailyPrices": [ 
         { 
           "date": "2025-07-06", 
           "price": 500000 
         }, 
         { 
           "date": "2025-07-07", 
           "price": 500000 
         } 
       ] 
     }, 
     { 
       "dailyPrices": [ 
         { 
           "date": "2025-07-06", 
           "price": 500000 
         }, 
         { 
           "date": "2025-07-07", 
           "price": 500000 
         } 
       ] 
     } 
   ], 
   "guests": [ 
     { 
       "firtName": "Dany", 
       "lastName": "Drink" 
     } 
   ], 
   "request": "Quiet room, high floor", 
   "CreditCard": { 
     "type": "etc", 
     "name": "Abc Travel", 
     "number": "5556647349429337", 
     "code": "897", 
     "month": "26", 
     "year": "20" 
   } 
 } 

 *Response success:* 
 { 
   "transactionSetId": "A5053AC7FDAD45D2BAEB222E336467EF", 
   "isSuccess": true, 
   "vendorBookingCode": "cms-booking-code", 
   "errors": [] 
 } 

 *Response error:* 
 { 
   "transactionSetId": "A5053AC7FDAD45D2BAEB222E336467EF", 
   "isSuccess": false, 
   "errors": [ 
     { 
       "errorCode": "E58745", 
       "errorMessage": "error message" 
     } 
   ] 
 }

Back

Add picture from clipboard (Maximum size: 50 MB)