Project

General

Profile

Actions

기능(Feature) #718

closed

기능(Feature) #713: Implement open API for CMS

Implement Handle booking API

Added by Dan Hoang 8 months ago. Updated 8 months ago.

Status:
완료(Done)
Priority:
높음(High)
Assignee:
Start date:
07/08/2025
Due date:
07/17/2025
% Done:

100%

Estimated time:
8.00 h
Spent time:
Part:
Build env.:
Dev

Description

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

Request: {
"hotelCode": "12234567",
"bookingType": "book",//enum ("book", "modify", "cancel")
"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": "",
"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"
}
]
}

Actions #1

Updated by Dan Hoang 8 months ago

  • Description updated (diff)
Actions #2

Updated by Dan Hoang 8 months ago

  • Description updated (diff)
Actions #3

Updated by Dan Hoang 8 months ago

  • Description updated (diff)
Actions #4

Updated by Dan Hoang 8 months ago

  • Status changed from 신규(New) to 진행(Doing)
  • Assignee set to Dan Hoang
  • Start date set to 07/08/2025
  • Estimated time set to 8.00 h
Actions #5

Updated by Dan Hoang 8 months ago

  • % Done changed from 0 to 100
  • Build env. set to Dev
Actions #6

Updated by Dan Hoang 8 months ago

  • Due date set to 07/17/2025
  • Status changed from 진행(Doing) to 완료(Done)
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 50 MB)