DragonPass provides a set of simulation APIs that allow clients to simulate order redemption and cancellation in the sandbox environment. These APIs are useful for validating business logic and access control before committing to production transactions.Lounge (Walk-in & Prebooking)#
All simulations(Walk-in & Prebooking) will be processed with N00012 - Plaza Premium Lounge, Hong Kong International Airport, Hong Kong.
1. Simulate Walk-in Order Redemption#
Simulate Lounge Redemption - Request
{
"dpId": "1788000066668888",
"adultCount": 1,
"childCount": 0
}
Simulate Lounge Redemption - Response
{
"code": 0,
"data": {
"dpId": "1788000066668888",
"transactionId": "DPSL00001",
"message": "Order Created"
}
}
2. Simulate Prebooking Order Redemption#
The prebooked order can only be redeemed from 1 hour before to 3 hours after the prebooking time, please confirm that time in your test order. N00012 is located in Hong Kong (UTC+8).
Simulate Lounge Prebooking Order Redemption - Request
{
"voucher": "668800008888",
"adultCount": 1,
"childCount": 0
}
Simulate Fast Track Order Redemption - Prebooking - Response
{
"code": 0,
"data": {
"voucher": "668800008888",
"transactionId": "DPSL00001",
"message": "Order Created"
}
}
3. Simulate Order Cancellation#
This API can cancel both Walk-in orders and Prebooking orders.Simulate Fast Track Order Cancellation - Request
{
"dpId": "1788000066668888",
"transactionId": "DPSL00001"
}
Simulate Lounge Order Cancellation - Response
{
"code": 0,
"data": {
"dpId": "1788000066668888",
"transactionId": "DPSL00001",
"message": "Order Cancelled"
}
}
Fast Track (Prebooking)#
All simulations will be processed with C10826 - Suvarnabhumi Airport(BKK) International Departure, Bangkok, Thailand.
1. Simulate Prebooking Order Redemption#
The prebooked order can only be redeemed from 1 hour before to 3 hours after the prebooking time, please confirm that time in your test order. N10826 is located in Thailand (UTC+7).
Simulate Fast Track Order Redemption - Prebooking - Request
{
"voucher": "668800008888",
"adultCount": 1,
"childCount": 0
}
Simulate Fast Track Order Redemption - Prebooking - Response
{
"code": 0,
"data": {
"voucher": "668800008888",
"transactionId": "DPFT00001",
"message": "Order Created"
}
}
2. Simulate Order Cancellation#
Simulate Fast Track Order Cancellation - Request
{
"voucher": "668800008888",
"transactionId": "DPFT00001"
}
Simulate Fast Track Order Cancellation - Response
{
"code": 0,
"data": {
"voucher": "668800008888",
"transactionId": "DPFT00001",
"message": "Order Cancelled"
}
}