Callbacks are divided into two types based on direction of the related message: - statusCallback indicates status of an outbound MT SMS, MMS, or RBM message. - inboundCallback indicates an inbound MO message or a multichannel message client's response to a suggestion or location request.
| Name | Type | Description | Notes |
|---|---|---|---|
| time | string | [default to undefined] | |
| eventTime | string | Represents the time at which the message was read, for `message-read` callbacks. | [optional] [default to undefined] |
| type | InboundCallbackTypeEnum | [default to undefined] | |
| to | string | The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. | [default to undefined] |
| description | string | A detailed description of the event described by the callback. | [default to undefined] |
| message | InboundCallbackMessage | [default to undefined] | |
| errorCode | number | Optional error code, applicable only when type is `message-failed`. | [optional] [default to undefined] |
| carrierName | string | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. | [optional] [default to undefined] |
import { Callback } from 'bandwidth-sdk';
const instance: Callback = {
time,
eventTime,
type,
to,
description,
message,
errorCode,
carrierName,
};