Email Events/Reports Discrepancy between webhooks and polling

Hi Team,
According to the API documentation
"When the callback URL is set via either of these methods, OpenText messaging service will post Email status as application/json to this end point. The schema is the same as in the response from "Get Email status" method except that the values of "job_state" parameter will not include "complete" even if all deliveries are complete."
However, when we compare the webhook data to the data returned by /mra/v1/outbound/emails/status, we receive different payloads.
Webhook data:
{
"job_id": "test2-1601284132",
"entry_time": "2024-07-10T01:08:37.000Z",
"job_state": [ "Delivered", "Reporting", "Posted" ],
"deliveries": [
{
"ref_base64": "MzMzMw==",
"email": "teessing0x0123x@yahoo.com",
"delivery_attempts": [
{
"state": "Posted",
"first_attempt": "2024-07-10T01:14:16.000Z"
},
"events": {
"email_delivery_events": {
"dsn": {
"event_time": "2024-07-10T01:14:00.000Z",
"value": "5.0.0"
}
}
}
]
}
]
}
/mra/v1/outbound/emails/status data:
{
"job_id": "test2-1601284132",
"entry_time": "2024-07-10T01:08:37.000Z",
"job_state": [
"Delivered",
"Posted"
],
"html_open_tracking": {
"total_open_count": 0,
"distinct_open_count": 0
},
"deliveries": [
{
"ref_base64": "MzMzMw==",
"email": "teessing0x0123x@yahoo.com",
"delivery_attempts": [
{
"state": "Sent",
"first_attempt": "2024-07-10T01:14:16.000Z"
}
],
"events": {
"email_delivery_events": [
{
"dsn": {
"event_time": "2024-07-10T01:14:00.000Z",
"value": "5.0.0",
"message": "\"%20smtp;%20552%201%20Requested%20mail%20action%20aborted%2C%20mailbox%20not%20found\""
}
}
]
}
}
]
}
Is there any way we can make the webhook data match the data returned by /mra/v1/outbound/emails/status? At the very least, can the deliveries[0].events.email_delivery_events.dsn.message be included in the webhook data?
Also, the deliveries[0].delivery_attempts[0].state of the two do not match? Is this expected?
Thanks,
Geovanni
Comments
-
Hi All,
For further context, we are getting the webhook data by callingPOST https://t2api.us.cloudmessaging.opentext.com/mra/v1/outbound/emails
The polling data is obtained by callingGET https://t2api.us.cloudmessaging.opentext.com/mra/v1/outbound/emails/status
We noticed that the webhook data is missing some valuable information that is contained in the polling data.
The swagger is found here:
Thanks,
Geovanni Gonzalez0
Categories
- All Categories
- 124 Developer Announcements
- 54 Articles
- 156 General Questions
- 155 Thrust Services
- 56 Developer Hackathon
- 38 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9.1K Extended ECM
- 920 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 35 eDOCS
- 195 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 11 XM Fax
- Follow Categories