Booking | GetBookingPayments
Get available payment method.
Notice:
- Product Scope: TechHub, FareMarket
- Only agent balance payment is supported currently.
POST
/flight/booking
Parameter
Field | Mandatory | Type | Scope | Description |
---|---|---|---|---|
action | required |
String | GetBookingPayments | |
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.0.0 | |
request | required |
Object | ||
sessionId | required |
String | Generated from AirPricing |
Request_Example:
{ "action": "GetBookingPayments", "key": "n93mPT7WzN6cLKC2", "signature": "YhQ2EoBQOfOnf/EOnuuuK5i+K+ncydeQhjFpoXYiEMo=", "timestamp": 1685116516, "request": { "sessionId": "a2aae1fc3qaaaa4107a419f4ae713a7" } }
Response
Field | Type | Description |
---|---|---|
status | Number | 0 for success, others for failure, please refer to status error appendix for detail |
msg | String | Return message, maximum 64 char |
payments | Object[] | |
chargeFee | String | charge fee amount from AeroHub |
code | String | Payment Type: AAG: AeroHub payment account CAG: Customized account set up by customer CC: Credit / Debt card |
currency | String | currency set up from each airline payment account |
desc | String | Payment description |
Success-Response:
{ "status": 0, "msg": "Success", "payments": [ { "chargeFee": 0, "code": "AAG", "currency": "USD", "desc": "AeroHub Pay" } ], "contentStatus": 0, "contentMsg": "Success" }
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 |
Error-Response
{ "status": 1000, "msg": "Letslfy flight internal error" }
Author:admin Create time:2023-05-24 16:08
Last editor:AeroHub Update time:2025-04-22 14:25
Last editor:AeroHub Update time:2025-04-22 14:25