Transactional emails report can be exported using API. Once exported using this method, the export will be processed and may take some time to complete. You need to use the ExportID you get from Export method to check the status.
The URL: https://api.enginemailer.com/RESTAPI/Submission/Report/CheckExport
Our REST API only accepts JSON object as a parameter list. Authentication parameter must be included within this list. Only one authentication parameter needed (UserKey).
Below is the example of the Request JSON object to deliver the email.
{
"UserKey": "your_userID_given_by_Enginemailer",
"ID": 9
}
Parameter name (Case-sensitive) |
Description |
Nullable? |
UserKey |
The User ID for the user. Please login to your Enginemailer account and check in the Profile. |
No |
ID |
The Export ID resulted from export method. |
No |
Below is the example of the response. If the export still processing, it will show "Processing" status.
{
"Result": {
"StatusCode": "200",
"Status": "OK",
"Message": "Success",
"Data": {
"ExportID": 9,
"Status": "Processing"
}
}
}
If the export is complete, it will show "Complete" status and the URL to download the file.
{
"Result": {
"StatusCode": "200",
"Status": "OK",
"Message": "Success",
"Data": {
"ExportID": 9,
"Status": "Complete",
"URL": "https://enginemailerblob.blob.core.windows.net/files/XXXXXXXXXXXXXXXXX/21_10_2021_11_00_48.csv"
}
}
}