When the status of a sent message changes, the webhook is sent to the address that is specified in the callbackUrl field when the mailing list was created.
Request body:
{
"id": "e67057c1-e97b-4fb4-b040-7cd81528baa9",
"bulkId": "cc5a20f9-55da-4e5c-932e-cc85c3d36566",
"groupId": "d49144ec-d09d-4e24-99f9-34c5ded7de64",
"flowId": "20689f30-8c7b-45b4-9884-8593fc275aed",
"oldStatus": "PENDING",
"newStatus": "DELIVERED",
"oldStatusCode": 2,
"newStatusCode": 6,
"price": 2.5,
"partCount": 1,
"callbackData": "00001"
}
Field Description:
| Field | Type | Mandatory | Description |
|---|---|---|---|
| id | String | Yes | Message ID. |
| bulkId | String | Yes | The common identifier of all messages from the mailing list. |
| groupId | String | Yes | Internal identifier. |
| flowId | String | Yes | Internal identifier. |
| oldStatus | String | Yes | Previous Message Status. |
| newStatus | String | Yes | Current message status. |
| oldStatusCode | Int | Yes | Previous message status code. |
| newStatusCode | Int | Yes | The current status code of the message. |
| price | Int | Yes | Cost of the message. |
| partCount | Int | Yes | The number of parts of the message. |
| callbackData | String | Yes | The value passed to the callbackData field when the message was sent. |