Email Query
Atlas API queryMail.do reference for retrieving email records linked to bookings and support workflows.
application/jsonapplication/jsongzip<YOUR_CLIENT_ID><YOUR_CLIENT_SECRET>Order number. At least one of the order number, receiving time and/or creation time must be specified for querying.
Start of the receiving time. The time Atlas received the airline's email. Format: yyyy-MM-dd hh:mm:ss UTC+08:00
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
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
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.
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
1100-true: There is also the next page
-false: There is not the next page
POST /queryMail.do HTTP/1.1
Accept: text
Accept-Encoding: text
x-atlas-client-id: text
x-atlas-client-secret: text
Content-Type: application/json
Content-Length: 291
{
"orderNo": "TESTD20230811113115020",
"emailReceivingDateStart": "2022-12-11 18:33:33",
"emailReceivingDateEnd": "2022-12-11 18:33:33",
"createTimeStart": "2022-12-11 18:33:33",
"createTimeEnd": "2022-12-11 18:33:45",
"emailCategories": [
"Payment Success",
"Advertisement"
],
"pageIndex": 1,
"pageSize": 100
}{
"records": [
{
"orderNo": "TESTD20230811113115020",
"emailReceivingDate": "2022-12-11 18:33:33",
"uniqueCode": "2b5435c63102ac28d840b2a54f61e2db",
"emailCategory": "Unidentified",
"from": "xiaoyebiao@qq.com",
"to": "connexpay@mx.theatlas.top",
"emailSubject": "sda",
"emailLink": "http://order-oss-sg.oss-ap-southeast-1.aliyuncs.com/2022/12/2b5435c63102ac28d840b2a54f61e2db.eml?Expires=1704364782&OSSAccessKeyId=LTAI5tDmTE9iwtNdsqxVXuom&Signature=Hl6vBTM8lv%2Fan%2FFnCVQmQnwaXnk%3D",
"createTime": "2022-12-11 18:33:45"
}
],
"hasNext": false,
"status": 0,
"msg": "success"
}Was this helpful?

