HK Ramble
  1. Booking
HK Ramble
  • Booking Flow
  • Booking
    • Search
      POST
    • Verify
      POST
    • Order
      POST
    • Pay
      POST
    • Confirm
      POST
    • SSR
      POST
    • OrderDetail
      POST
  • Change
    • ChangePricePush
      POST
    • ChangeResultPush
      POST
  • IssueNofity
    • IssueNotify
      POST
  1. Booking

Confirm

POST
/json/confirm
errorCode errorMsg Description
0 ok request has been processed successfully
S001 System error system error
P001 - wrong parameter
B002 Partner is not exists partnerID does not exist
B003 Illegal sign illegal sign. Please check your signature
B009 Order status is invalid order status is invalid
B010 Order number not exist order number does not exist
B022 Ticketing failed balance left is not enough to pay the order
B024 Order has been paid order has already been paid. No need to pay again

Request

Body Params application/json
authentication
object 
required
partnerId
string 
required
sign
string 
required
ticketing
object 
required
orderNum
string 
required
pnr
string 
required
currency
string 
required
totalPrice
number 
required
Example
{
    "authentication": {
        "partnerId": "1111111111111",
        "sign": "1234567890fgg"
    },
    "ticketing": {
        "orderNum": "11032504410312",
        "pnr": "WENWKH",
        "currency": "USD",
        "totalPrice": 312.99
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/json/confirm' \
--header 'Content-Type: application/json' \
--data-raw '{
    "authentication": {
        "partnerId": "1111111111111",
        "sign": "1234567890fgg"
    },
    "ticketing": {
        "orderNum": "11032504410312",
        "pnr": "WENWKH",
        "currency": "USD",
        "totalPrice": 312.99
    }
}'

Responses

🟢200Success
application/json
Body
java.lang.Object
errorCode
string 
required
Example:
0
errorMsg
string 
required
Example:
ok
data
object (TicketingReq) 
optional
java.lang.Object
authentication
object (Authentication) 
optional
java.lang.Object
ticketing
object (Ticketing) 
optional
java.lang.Object
Examples
{
    "errorCode": "0",
    "errorMsg": "ok",
    "data": {
        "orderNum": "1012704540",
        "orderAmount": 2015,
        "transactionExpense": 2.02,
        "payAmount": 2017.02
    }
}
Modified at 2025-02-13 08:16:04
Previous
Pay
Next
SSR
Built with