Booking | AssignSeats
Assign seat to a specific passenger.
Notice:
Product Scope : TechHub
POST
/flight/booking
Parameter
Field | Mandatory | Type | Scope | Description |
---|---|---|---|---|
action | required |
String | AssignSeats | |
key | required |
String | API security key applied from AeroHub | |
signature | required |
String | Refer to Guideline to generate. | |
timestamp | required |
Int | The ‘timestamp’ field should be a 10-digit Unix timestamp in seconds, used for encryption and data verification. | |
version | optional |
String | API version information, e.g. 3.2.0 | |
request | required |
Object | ||
sessionId | required |
String | SessionId: generated from AirPricing | |
segmentSeats | required |
Object[] | Object for Seat | |
passengerId | required |
int | Passengerid, start from 0, no duplicate, e.g.: 0, 1, 2, 3, 4, 5 | |
flightNumber | required |
String | flight number | |
depAirport | required |
String | Departure airport 3_letter number | |
arrAirport | required |
String | Arrival airport 3_letter number | |
deck | required |
String | deck | |
rowNo | required |
String | rowNo | |
colNo | required |
String | colNo | |
data | required |
String | data |
Request_Example:
{ "action": "AssignSeats", "key": "6KmkWEQEQAqeqewqQPc5myN5", "request": { "segmentSeats": [ { "arrAirport": "KIX", "cabin": "ECONOMY", "depAirport": "NRT", "depTime": "202307140715", "designator": "1A", "flightNumber": "MM312", "mateData": "DG0mKjr8kRMhDSaLDwvT5GDS2FpRA6dOV+lidQPaxrd4Aee/uYEfut0w+i6j0wHUR+C4Z1LN/pv3Uu/lMhoXhaaZhELWOi5t8IqUzD1ZXqgCDLO/XfGL/BheOjJaqnip0eVibb98zz86jsBGQyAAXJThGAJzjTpD646qJoOlUqaXo+d9jq4Dfil1B3zJkpJKHHwNeDrStt3rkrKIWGHLltJZRHn+2bj7GoJjdYSEZmUVBdFqUVMs0UlI8UOIiU7nCZii9h32X6Y3lhJ/7Qf9eB045uM6TNTljEZ3CwuD96d4rfyDQxEt3mgGOEf4tfaE7oKE0RtGC92LolGhaePu1H7r0gSAmPmITNE5BveW0R3Jvw9hogoCgU8You7ctxhxESOYQdjCPIVoY6vNSBB77LJswkE8vxgu9FEu1do77NOyS1OI+WWk8Dt4bguov7eKTslPIeGlHMVYBOpR5iEO6bPPk4DX5g2rk4XotLdYYKNHDOIZFrWC3jqn37C0fJULwKzR7hnhp30pvgGkqhu4msYjT/xiNWfYXo3fD+IcD551YtI0Snmn8ick3YSriKD7Kjb+SbY3xkjnT8I59RN0viiIhALKsIVas6Qox83f2rceWfw+HOC5EYasxJQDSl7Cy1YqARarJkTROYuMqK8QlQknl88vYJP3+GQqhljJ5Ro=", "passengerId": 0, "seatPrice": "1590" }, { "arrAirport": "KIX", "cabin": "ECONOMY", "depAirport": "NRT", "depTime": "202307140715", "designator": "1B", "flightNumber": "MM312", "mateData": "DG0mKjr8kRMhDSaLDwvT5GDS2FpRA6dOV+lidQPaxrd4Aee/uYEfut0w+i6j0wHUR+C4Z1LN/pv3Uu/lMhoXhcuO1K05Tg+pHf29qQZKr5IVimUGyj3vvYzBlckfmG1nJOsJ89gNMRqmh3Pek5odTL+GUPL1wdXNy1TSIptU2FC/bDJfBg+Rb7miRVEt+tkSMPm2uIL3R/ybEsIMFSf3oiSNwNSYm4L7GrTw+tGSrH/5KEQVVpIRIEoAkOfcKpNGKsBc35BmnEfAcpHabLhWVULI1BPqgkUa0diJ/ywfX0bjDosX51tTSffgXCEujxzinXQTl4bJx3Oh1x9V+bQXqMH83Tg7WUciMAbrA01CRpsKcLLx9AaGf7fp19MYd399fykboxYeSTNbMsF26E1ReqAe2hhSV/uyX7rcQnZdLbAmBXyCj4+an1InDN/lTUJ4hqoyiafyaW5fpuuG6MTNeTfRf0+7NNNjgFExo9NEDWIUDpuOEfqa5psSM46h98KpzHhiNOCxad0rFx2A0gU9+6T96V0DX1rCgtR3Iv4pR3N1CmSFDPDMCLm4JGMb3k1ydxCRW/+LkXnALbo6lwXRu8hA3NnVZHYB+1wW0MZsgRwuR7ZrUMjLfDIvpkfGPeCFKCspeKdn8xd8+Y8vxXKyVQWMq2lPnVoWr9TfF5eUei0=", "passengerId": 1, "seatPrice": "1590" } ], "sessionId": "bf9525900543ed3859523a2e9b22c2c44b4" }, "signature": "XiH2u8Jp2bDAwqHOHRAJMYIOtrK5Tej9TgZaqvkCg=", "timestamp": 1685116516, "version": "v3.2.0" }
Response
Field | Type | Description |
---|---|---|
status | int | 0 for success, others for failure, refer to status error appendix for details |
msg | String | Return message, maximum 64 char |
contentStatus | int | Return the original code from airlines or suppliers. |
contentMsg | String | Return the original message from airlines or suppliers, maximum 64 char |
amount | Float | price of the seat |
currency | String | Currency information, 3_letter code e.g. USD |
originalAmount | Float | price of the seat |
originalCurrency | String | Currency information, 3_letter code e.g. USD |
Success-Response:
{ "amount": 92.3, "contentMsg": "Success", "contentStatus": 0, "currency": "USD", "msg": "Success", "originalAmount": 119000.0, "originalCurrency": "KRW", "status": 0 }
Status Code
Name | Description |
---|---|
1000 | General system error |
1001 | Request parameters or part of parameters missing |
1002 | Invalid Action |
1003 | API request timeout, please request again |
1004 | Invalid request parameter |
1005 | Service system error |
1006 | System busy, please try again |
1101 | Authentication fail, wrong signature |
1102 | Account disabled, please contact with account administrator |
2002 | No valid Journey in the session |
2003 | No passengers in the current session |
2009 | PassengerID does not exist |
2202 | Code in SellSSR request parameters does not match with the code in GetSeatAvailability |
2203 | The seat can not be occupied anymore |
Error-Response
{ "status": 1000, "msg": "Letslfy flight internal error" }
Author:admin Create time:2023-05-24 16:07
Last editor:AeroHub Update time:2024-09-10 16:26
Last editor:AeroHub Update time:2024-09-10 16:26