Project

General

Profile

기능(Feature) #717

Updated by Dan Hoang 8 months ago

Define API out for CMS so CMS can update price 
 *Request:* 
 { 
   "hotelCode": "262574", 
   "rateList": [ 
     { 
       "ratePlanCode": "PAA10199", 
       "chargeType": "RoomCharge", 
       "dates": [ 
         { 
           "price": 1000000, 
           "date": "2025-10-01", 
           "status": "Open" 
         }, 
         { 
           "price": 1000000, 
           "date": "2025-10-02", 
           "status": "Open" 
         }, 
         { 
           "price": 1000000, 
           "date": "2025-10-03", 
           "status": "Open" 
         }, 
         { 
           "price": 1000000, 
           "date": "2025-10-04", 
           "status": "Close" 
         } 
       ] 
     }, 
     { 
       "ratePlanCode": "PAA10200", 
       "chargeType": "OccupancyCharge", 
       "dates": [ 
         { 
           "price": 1000000, 
           "date": "2025-10-01", 
           "status": "Open", 
           "occupancy": 1 
         }, 
         { 
           "price": 1200000, 
           "date": "2025-10-01", 
           "status": "Open", 
           "occupancy": 2 
         }, 
         { 
           "price": 1000000, 
           "date": "2025-10-02", 
           "status": "Open", 
           "occupancy": 1 
         }, 
         { 
           "price": 1200000, 
           "date": "2025-10-02", 
           "status": "Open", 
           "occupancy": 2 
         } 
       ] 
     } 
   ] 
 } 

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

Back

Add picture from clipboard (Maximum size: 50 MB)