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. 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. 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. 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. 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. 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"
}
}
Set Meal#
All simulations will be processed with N04091 - Crystal Jade Go - Set Meal, SIN, Singapore International Airport.
1. Walk-in Order Redemption#
Simulate Set Meal Redemption - Request
{
"dpId": "1788000066668888",
"adultCount": 1,
"childCount": 0
}
Simulate Set Meal Redemption - Response
{
"code": 0,
"data": {
"dpId": "1788000066668888",
"transactionId": "DPSL00001",
"message": "Order Created"
}
}
2. Order Cancellation#
Simulate Set Meal Order Cancellation - Request
{
"dpId": "1788000066668888",
"transactionId": "DPSL00001"
}
Simulate Set Meal Order Cancellation - Response
{
"code": 0,
"data": {
"dpId": "1788000066668888",
"transactionId": "DPSL00001"
"message": "Order Cancelled"
}
}
Coupon#
All simulations will be processed with N04091 -N12078-GIRAFFE, MAN, Manchester Airport.
1. Walk-in Order Redemption#
Simulate Coupon Redemption - Request
{
"dpId": "1788000066668888",
"adultCount": 1,
"childCount": 0
}
Simulate Coupon Redemption - Response
{
"code": 0,
"data": {
"dpId": "1788000066668888",
"transactionId": "DPMV00001",
"message": "Order Created"
}
}
2. Order Cancellation#
Simulate Coupon Order Cancellation - Request
{
"dpId": "1788000066668888",
"transactionId": "DPMV00001"
}
Simulate Coupon Cancellation - Response
{
"code": 0,
"data": {
"dpId": "1788000066668888",
"transactionId": "DPSL00001"
"message": "Order Cancelled"
}
}