SMS API

MessageStatus

This value is included in the OutgoingMessageResponse type.

Type: Enum

Possible Values

ValueDescription
0 – HoldMessage is on hold and will not be processed until set to ‘Ready’.
200 – SentMessage sent successfully. HTTP equivalent: 200 – OK
201 – ReadyMessage is queued, ready to be processed. HTTP equivalent: 201 – CREATED
202 – ProcessingMessage is being processed by Esendex. HTTP equivalent: 202 – ACCEPTED
400 – InvalidDIDThe number provided is invalid, wrong format, or it cannot send to the destination. HTTP equivalent: 400 – BAD REQUEST
401 – InvalidLicenseKeyThe provided license key is invalid. HTTP equivalent: 401 – UNAUTHORIZED
402 – AccountSuspendedThe account has been suspended. HTTP equivalent: 402 – PAYMENT REQUIRED
403 – StopOnPhoneNumberNo messages can be sent to the destination phone number from the license key. HTTP equivalent: 403 – FORBIDDEN
404 – MissingDIDOrInvalidMessageIDProper number could not be established or MessageID provided is invalid. HTTP equivalent: 404 – NOT FOUND
405 – InvalidDateTimeScheduledDateTime not in UTC. HTTP equivalent: 405 – METHOD NOT ALLOWED
406 – InvalidDestinationDestination phone number invalid. HTTP equivalent: 406 – NOT ACCEPTABLE
411 – NoMessageNo message body provided. HTTP equivalent: 411 – LENGTH REQUIRED
413 – MessageExceedsLimitMessage is too long. HTTP equivalent: 413 – PAYLOAD TOO LARGE
506 – FailedMessage failed to submit to provider.
507 – CancelledMessage cancelled.
508 – FailedByProviderMessage submitted to provider but failed by delivery receipt.

Let’s start sending, together.