status field. The examples below use the account
webhook envelope; the campaign envelope carries
the same fields at the root level.
Events and resulting status
sms.failed maps to the undelivered status. It is a network failure that
happened after the send was accepted: since billing closes at acceptance,
the message has already been charged.data fields (account webhook)
Normalized error code in case of failure, or
null when there is no error.
See the error codes table.Examples by event
sms.delivered — delivered
sms.delivered — delivered
sms.undelivered — undelivered
sms.undelivered — undelivered
sms.failed — network failure after acceptance
sms.failed — network failure after acceptance
sms.expired — expired
sms.expired — expired
Error codes
When there is a failure, theerrorCode field carries a normalized value.
The possible values are listed below.
On success (
sms.delivered) or expiration (sms.expired) events, the
errorCode field comes as null.