DragonPass API Developer Platform
v1
  • v2
  • v1
HomepageOfficial SiteContact Us
HomepageOfficial SiteContact Us
API Version
v1
  • v2
  • v1
  1. Development Guide
  • Implementation Guide
    • Get Started
    • DragonPass Modules
    • Our API Solution
  • Development Guide
    • Authentication
    • Response Format
    • Error Codes
    • Order Synchronization
    • UI Design Guidelines
  • Using the API
    • Search for resources
    • E-pass
      • Issuing, Querying, and Cancelling an E-pass
      • Querying E-pass Usage Orders and Details
      • Utilizing The E-pass
        • Lounge
        • Fast Track
        • Dining
    • Membership
      • Manage Memberships & Entitlements
      • Querying Membership Usage Orders and Details
      • Utilizing DragonPass Membership
        • Lounge
        • Fast Track
        • Dining
  • API reference
    • Authentication
      • Generate Access Token
    • Membership Management
      • Membership Registration
      • Update A Membership
      • Retrieve Membership Information
      • Generate Membership Dynamic QR Codes
    • Entitlement Management
      • Update Membership Entitlements
      • Retrieve Membership Entitlement Information
    • Transport Hubs
      • Retrieve Transport Hub
      • Retrieve Transport Hub Details
    • Resources
      • Retrieve Resource List
        • Retrieve Resources List Under A Specific Transport Hub
      • Search For Resources
        • Retrieve Resource Details
        • List Updated Resources
      • Check Resource Availability
        • Check Prebooking Resource Availability
    • Orders Management
      • Create Orders
        • E-pass
          • Issue An E-pass
            • Create E-pass Order
          • Lounge Prebooking
            • Create E-pass with Prebooking Order - Lounge
            • Create E-pass Prebooking Order - Lounge
          • Fast Track
            • Create E-pass Prebooking Order - Fast Track
            • Create E-pass with Prebooking Order - Fast Track
        • Membership
          • Create Membership Prebooking Order - Fast Track
          • Create Membership Prebooking Order - Lounge
      • Retrieve Order List
        • Retrieve E-pass Order List
        • Retrieve Membership Order List
      • Retrieve Order Details
        • E-pass
          • Retrieve E-pass Details
          • Retrieve E-pass Usage Order Details
        • Membership
          • Retrieve Membership Usage Order Details
      • Cancel Orders
        • Cancel an Order
  1. Development Guide

Order Synchronization

Order Synchronization#

DragonPass API Platform currently offers two types of order synchronization solutions.

1. Real-Time Order Synchronization#

The real-time order synchronization method leverages webhooks to instantly push order notification to the client’s system as soon as an redemption order is created or updated. Clients need to specify their endpoint URLs with DragonPass in advance to receive the webhook notifications.

Retry Mechanism#

In case of delivery failure, DragonPass system will retry sending the webhook up to 3 times to ensure data is successfully transmitted.

2. Daily Order Summary Report (In Development)#

The daily order summary report is provided as a CSV file that combines all order data for the day. It is sent to the client between 00:00 and 04:00 UTC. Clients can choose to receive their files via email, FTP, or an S3 bucket. If a client has multiple Program IDs, separate reports will be generated for each.

Delivery Methods#

FTP
Email
S3 bucket

3. Detailed Example#

Lounge

Callback Message JSON#

{
    "orderId": "DP00000000000001",
    "programId": "1888000000000001",
    "membershipId": "8888000066668888",
    "module": 1,
    "category": 1,
    "status": 1,
    "orderCreatedDate": "2024-12-31T00:00:00+00:00",
    "usageDate": "2024-12-31T00:00:00",
    "orderCancelledDate":"",
    "transportHubId": "A10045",
    "transportHubName": "Gatwick Airport",
    "resourceId": "N00129",
    "resourceName": "No1 Gatwick North",
    "passengers": {
        "cardholder": 1,
        "guests": 1
    }
}
When you successfully receive the DragonPass callback message, please return HTTP status code 200 OK along with this JSON body to indicate the successful handling of the request.
{
  "status": "success"
}

Field Descriptions#

The columns returned in the Daily Order Summary Report are also as follows:
ColumnDescriptionExample
orderIdUnique identifier of the order, generated by DragonPass each time a user utilizes their Membership or E-pass.DP00000000000001
programIdUnique identifier of the program. Assigned by DragonPass when a new program was onboarded.1888000000000001
membershipId/ePassIdUnique ID for the DragonPass Membership or E-pass8888000066668888
moduleSpecifies the type of products, e.g. "Lounge", "Fast Track".1
categorySpecifies the category of orders, e.g. "Walk-in", "Prebooking".1
statusOrder status.1
orderCreatedDateSpecifies the date and time when an order was created (in UTC+0 time).2024-12-31T00:00:00+00:00
usageDateSpecifies the date and time when an order was redeemed (in local time).2024-12-31T00:00:00
orderCancelledDateSpecifies the date and time when an order was cancelled (if applicable).
transportHubIdUnique ID for the transport hub.A10045
transportHubNameName of the transport hub.Gatwick Airport
resourceIdUnique ID for the DragonPass product.N00129
resourceNameName of the DragonPass product.No1 Gatwick North
cardholderSpecifies the number of cardholder.1
guestsSpecifies the number of guests.1
Enum Reference
FieldEnum
module1 - Lounge
category1 - Walk-in
2 - Prebooking
status1 - Order Created
2 - Order Cancelled

4. Order Synchronization Logic#

Order Creation Notification#

When a user redeems their visits, our system automatically sends the order notification to the client’s system.

Order Cancellation Notification#

If a user requests to cancel the order after redemption due to some reason, our system will send another order cancellation notification to the client’s system. This notification uses the same order number to ensure that the client can easily connect the two events.
📌
In some instances, due to network delays or other unforeseen issues, order creation notifications might not be delivered before order cancellation notifications. Our system ensures the integrity and traceability of events through unique order numbers.
If an order cancellation notification is received without a prior creation notification, the client should treat the order as cancelled. The system should record the cancellation and ignore any subsequent creation notification for the same order number.

5. Callback Service Authentication#

DragonPass callback service currently supports two authentication methods:
IP Whitelist Authentication
Customers can authenticate by whitelisting DragonPass IP addresses.
Standard JWT Authentication (HS256)
DragonPass also supports standard JWT (HS256) authentication.
If clients require any other special authentication methods, please reach out to our GTM/AM teams for further assistance, and we will tailor a solution to meet the needs.
Modified at 2025-05-15 08:35:47
Previous
Error Codes
Next
UI Design Guidelines