Atlas API-Sabre
  1. Other Functions
Atlas API-Sabre
  • Shopping and Ticketing
    • Search
      POST
    • Verify
      POST
    • Order
      POST
    • Order Commit
      POST
    • Payment
      POST
    • Retrieve Booking
      POST
    • Smart Search
      POST
    • Get Offer
      POST
    • Seat Availability
      POST
    • Get Luggage
      POST
  • Post Ticketing Service
    • Search Ancillary
      POST
    • Order Ancillary
      POST
  • Notifications and Webhook
    • Register Webhook
      POST
    • Incident List
      POST
  • Refund
    • Refund Quotation
      POST
    • Make a Refund
      POST
    • Query Refund Status
      POST
  • Other Functions
    • Regenerate Order
      POST
    • Stop Ticket Issuance
      POST
    • Order List
      POST
    • PNR Claim
      POST
    • Get Balance
      POST
    • City Pairs API
      POST
    • Email List
      POST
    • Extract PNR
      POST
    • getAtripToken
      POST
  1. Other Functions

Email List

POST
/queryMail.do

Request

Header Params
Accept
string 
required
Example:
application/json
Content-Type
string 
required
Example:
application/json
Accept-Encoding
string 
required
Example:
gzip
x-atlas-client-id
string 
required
Example:
<YOUR_CLIENT_ID>
x-atlas-client-secret
string 
required
Example:
<YOUR_CLIENT_SECRET>
Body Params application/json
orderNo
string  | null 
optional
Order number.
At least one of the order number, receiving time and/or creation time must be specified for querying.
emailReceivingDateStart
string  | null 
optional
Start of the receiving time.
The time Atlas received the airline's email.
Format: yyyy-MM-dd hh:mm:ss UTC+08:00
emailReceivingDateEnd
string  | null 
optional
End of the receiving time.
The time Atlas received the airline's email.
Format: yyyy-mm-dd hh:mm:ss UTC+08:00.
You can only query data for up to one month at a time
createTimeStart
string  | null 
optional
Start of creation time.
Create Time is the time when Atlas created this email record in the Email list. Generally, it will be later than the receiving time.
Format: yyyy-mm-dd hh:mm:ss UTC+08:00
createTimeEnd
string  | null 
optional
End of creation time.
Create Time is the time when Atlas created this email record in the Email list. Generally, it will be later than the receiving time.
Format: yyyy-MM-dd hh:mm:ss UTC+08:00
You can only query data for up to one month at a time.
emailCategories
string  | null 
optional
Atlas email categories. Atlas categorizes emails but does not guarantee accuracy in classification.
-Travel Itinerary
-Schedule Change
-Payment Due
-Payment Success
-Receipt
-Trip Reminder
-PNR Cancellation Success
-Advertisement
-Duplicated Schedule Change
-Verification
-Unaccounted Cancellation
-Promo code
pageIndex
string  | null 
optional
Default:
1
pageSize
string  | null 
optional
Default:
100
Example
{
    "orderNo": "string",
    "emailReceivingDateStart": "string",
    "emailReceivingDateEnd": "string",
    "createTimeStart": "string",
    "createTimeEnd": "string",
    "emailCategories": "string",
    "pageIndex": "1",
    "pageSize": "100"
}

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 'https://sandbox.atriptech.com/queryMail.do' \
--header 'Accept: application/json' \
--header 'Accept;' \
--header 'Accept-Encoding: gzip' \
--header 'Accept-Encoding;' \
--header 'x-atlas-client-id: <YOUR_CLIENT_ID>' \
--header 'x-atlas-client-id;' \
--header 'x-atlas-client-secret: <YOUR_CLIENT_SECRET>' \
--header 'x-atlas-client-secret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "orderNo": "string",
    "emailReceivingDateStart": "string",
    "emailReceivingDateEnd": "string",
    "createTimeStart": "string",
    "createTimeEnd": "string",
    "emailCategories": "string",
    "pageIndex": "1",
    "pageSize": "100"
}'

Responses

🟢200Success
application/json
Body
status
integer 
required
msg
string  | null 
optional
hasNext
boolean 
required
-true: There is also the next page
-false: There is not the next page
records
array [object {9}] 
required
orderNo
string 
required
Order number
emailReceivingDate
string 
required
The time Atlas received the airline's email.
Format: yyyy-MM-dd HH:mm:ss UTC+08:00
uniqueCode
string 
required
Unique Code of the email
emailCategory
string 
required
Atlas email categories. Atlas categorizes emails but does not guarantee accuracy in classification.
from
string 
required
Email “from” address
to
string 
required
Email “to” address
emailSubject
string 
required
Email “Subject”
emailLink
string  | null 
optional
Email Link. Email Link is only valid for 10 mins.
createTime
string 
required
Create Time is the time when Atlas created this email record in the Email list.
Generally, it will be later than the receiving time.
Format: yyyy-MM-dd HH:mm:ss UTC+08:00
Example
{
    "status": 0,
    "msg": "string",
    "hasNext": true,
    "records": [
        {
            "orderNo": "string",
            "emailReceivingDate": "string",
            "uniqueCode": "string",
            "emailCategory": "string",
            "from": "string",
            "to": "string",
            "emailSubject": "string",
            "emailLink": "string",
            "createTime": "string"
        }
    ]
}
Modified at 2025-07-18 06:59:51
Previous
City Pairs API
Next
Extract PNR
Built with