The transaction status API is used to query the status of a transaction carried out on a specific channel that was initiated through the messaging API.

Request

The status of a transaction made through messaging API is requested as follows:

URLhttps://api.imiconnect.io/resources/v1/messaging/status/ Note: If your IMIconnect web access URL is on a .io TLD, then you should use the API end point with .io. For example, if your domain is mycompany.imiconnect.com then your API base URL will be api.imiconnect.com. But if your domain is mycompany.imiconnect.io then your API base URL will be api.imiconnect.io.
*where
transactionid** is the transaction ID returned during the messaging request.
MethodGET
##Request Example
https://api.imiconnect.com/resources/v1/messaging/status/8026899a-bed4-4ea4-b1cd-eef98829dbd1
##Response Examples
[{
    "transactionid": "8026899a-bed4-4ea4-b1cd-eef98829dbd1",
    "clientid": "412",
    "api_version": "v1",
    "type": "outbound-api",
    "from": "VM-CONNECT",
    "to": "<mobile_number>",
    "body": "request JSON",
    “channel”: ”SMS”,
    "status": "sent", //(queued, delivered, failed, expired)
    "date_created": "Mon, 16 Aug 2010 03:45:01 UTC",
    "last_updated": "Mon, 16 Aug 2010 03:45:03 UTC",
    "error_code": null,
    "error_message": null,
}]
[{
    "transactionid": "8026899a-bed4-4ea4-b1cd-eef98829dbd1",
    "clientid": "412",
    "api_version": "v1",
    "type": "outbound-api",
    "from": "VM-CONNECT",
    "to": "+919642454694",
    "callflowid": "917",
    "channel": "voice",
    "status": "sent", //(queued, answered, no answer, rejected, busy, others)
    "date_created": "Mon, 16 Aug 2010 03:45:01 UTC",
    "last_updated": "Mon, 16 Aug 2010 03:45:03 UTC",
    "error_code": null,
    "error_message": null,
}]
[{
    "transactionid": "8026899a-bed4-4ea4-b1cd-eef98829dbd1",
    "clientid": "412",
    "api_version": "v1",
    "type": "outbound-api",
    "from": "VM-CONNECT",
    "to": "+919642454694",
    "body": "Hello",
    "channel": "fb / tiwtter / wechat",
    "appid": "a_1234556677",
    "status": "sent", //(queued, delivered, read, failed, expired)
    "date_created": "Mon, 16 Aug 2010 03:45:01 UTC",
    "last_updated": "Mon, 16 Aug 2010 03:45:03 UTC",
    "error_code": null,
    "error_message": null,
}]
[{
    "transactionid": "8026899a-bed4-4ea4-b1cd-eef98829dbd1",
    "clientid": "412",
    "api_version": "v1",
    "type": "outbound-api",
    "from": "<senderid>",
    "to": "<to>",
    "appid": "a_123455667",
    "channel": "RTM",
    "message": "message",
    "status": "sent", // (queued, delivered, read, failed, expired)
    "date_created": "Mon, 16 Aug 2010 03:45:01 UTC",
    "last_updated": "Mon, 16 Aug 2010 03:45:03 UTC",
    "error_code": null,
    "error_message": null,
}]
[{
    "transactionid": "8026899a-bed4-4ea4-b1cd-eef98829dbd1",
    "clientid": "412",
    "api_version": "v1",
    "type": "outbound-api",
    "from": "VM-CONNECT",
    "to": "<to>",
    "appid": "a_123455667",
    "channel": "push",
    "status": "sent", //(queued, delivered, read, failed, expired)
    "date_created": "Mon, 16 Aug 2010 03:45:01 UTC",
    "last_updated": "Mon, 16 Aug 2010 03:45:03 UTC",
    "error_code": null,
    "error_message": null,
}]

Response Body

The parameters of response body are:

Name

Description

transactionid

Specifies the transaction ID returned during the messaging request.

clientid

Specifies the client ID in IMIconnect.

api_version

Specifies the Messaging API version.

type

Specifies the type of the API.

from

Specifies the originating point of the message.

  • SMS - Sender ID or Short code
  • Voice - CLI number or Sender ID.
  • RTM - Sender id

to

Specifies the destination point of the message.
For example,

  • SMS and Voice - MSISDN
  • Facebook - Facebook user ID
  • RTM and Push - Customer ID

body

Specifies the message sent.

channel

Specifies the channel through which the message was sent.

appid

Specifies the appid that is generated while creating an app.

status

Specifies the status of the message. The options are:

  • sent
  • queued
  • delivered
  • read
  • failed
  • expired
  • answered
  • rejected
  • busy
  • others
  • no answer
date_createdSpecifies the date when the message was initiated.
last_updatedSpecifies the last updated date of the transaction.
error_codeSpecifies the error code when status of the message is not success.
error_messageSpecifies the description of the error.

Status Codes

This API may return the following response codes:

Return CodeMessageDescription
7000Invalid JSONReturned when an invalid JSON request is sent.
7001Authentication failedReturned when an invalid service key or profile key is provided in the request.
7002Service Key MissingReturned when the parameter key is missing in the message request.
7003any one of [customerid,msisdn,email, userid,pushid,psid, twitterid, wechatid] is mandatoryReturned when a mandatory parameter is missing for destination.
7003Mandatory parameters missing.Returned when the mandatory parameters configured in custom event are missing.
7003param 'text' is missing for androidReturned when parameter text or its value is missing for Android in push object.
7003param 'text' is missing for iosReturned when the parameter text or its value is missing for iOS in push object.
7003param 'push' missing for push channelReturned when the parameter push is missing.
7003either android or ios information is mandatory for push channelReturned when the push channel is missing in push object.
7003param 'text' missing for channel fbReturned when the parameter text or its value is missing for Facebook channel.
7003param 'OTT-Messaging' missing for channel fbReturned when the OTT-Messaging object is missing when deliverychannel is Facebook.
7003param 'fb' missing for channel fbReturned when the fb object is missing in OTT-Messaging object.
7003param 'text' missing for channel wechatReturned when the parameter text or its value is missing for WeChat channel.
7003param 'wechat' missing for channel wechatReturned when the wechat object is missing in OTT-Messaging object.
7003param 'OTT-Messaging' missing for channel wechatReturned when the OTT-Messaging object is missing when deliverychannel is WeChat.
7003param 'text' missing for channel twitterReturned when the parameter text or its value is missing for Twitter channel
7003param 'twitter' missing for channel twitterReturned when the parameter text or its value is missing for Twitter channel.
7003param 'twitter' missing for channel twitterReturned when the twitter object is missing in OTT-Messaging object.
7003param 'OTT-Messaging' missing for channel twitterReturned when the OTT-Messaging object is missing when deliverychannel is Twitter.
7003param 'text' missing for channel rtReturned when the parameter text or its value is missing for rt channel.
7003param 'rt' missing for channel rtReturned when the rt object is missing when deliverychannel is rt.
7003param 'body' missing for channel smsReturned when the parameter body or its value is missing for sms channel and the parameter type is not selected as text (1).
7003param 'text' missing for channel smsReturned when the parameter text or its value is missing for sms channel.
7003param 'sms' missing for channel smsReturned when the sms object is missing when deliverychannel is sms.
7003either param 'callflowid' or param 'media' is requiredReturned when the parameters callflowid or media or their values are missing for voice channel.
7003param 'voice' missing for channel voiceReturned when the voice object is missing when deliverychannel is voice.
7003No destination channel information found in requestReturned when the value is missing for deliverychannel.
7003param 'deliverychannel' missingReturned when the deliverychannel is missing.
7003mandatory param device_types missingReturned when devicetypes object is missing in _interactive object.
7003mandatory param value missing for action xxxReturned when the parameter value is missing in actions array.
7003mandatory param pos missingReturned when the parameter pos is missing in actions array.
7003mandatory param category missingReturned when the parameter category is missing in interactive object.
7003mandatory param actions missingReturned when the parameter actions is missing in interactive object.
7004invalid value for param 'priority', it should be one of [1,2,3,4,5]Returned when the parameter priority value is other than 1 to 5 for rt channel.
7004invalid value of param 'type' , only [1,2,3,4] are allowedReturned when the parameter type value is other than 1 to 4 for sms channel.
7004invalid delivery channelReturned when the parameter delivery channel value is other than sms, voice, push, rt, fb, twitter or wechat.
7004invalid device type xxx, only ios or android is allowedReturned when the parameter device_types value is other than ios or android.
7004duplicate device type xxxReturned when duplicate position value is provided in device_types array in interactive object.
7004invalid value of param pos, duplicate values for pos are not allowedReturned when duplicate position value is provided in actions array in interactive object.
7004invalid value of param action or action is invalid for this channelReturned when an invalid action is provided in actions array in interactive object.
7004invalid value of param value, specified value is invalid for action xxxReturned when an invalid value is provided in value parameter in interactive actions object.
7004invalid action for identifier xxxReturned when an invalid action is provided for corresponding category.
7004invalid identifier or no actions mapped for this identifierReturned when the corresponding identifiers for category are not mapped to the identifiers that are there for actions.
7004no identifier found for this category and at this positionReturned when identifiers are not found for a category.
7004invalid value of param pos, only positions [xx,xx] are allowed for this categoryReturned when an invalid position value is provided that is not there for corresponding category.
7004invalid number of actions, expected actions size xx, but found xxReturned when an unexpected number of actions found in interactive object.
7004invalid value of param category or no identifiers mapped to this categoryReturned when an invalid category is provided in request.
7005Request expiredReturned when the request is expired.
7006Internal error occurredReturned when an internal error occurs.
7007Service InactiveReturned when a service is in inactive state.
7009Maximum number of destination addressReturned when an API request exceeds the limit (1000) to send messages using messaging API.
7101Invalid Sender IDReturned when the sender ID is invalid.
7102Invalid addressReturned when the address is invalid.
7103Not enough creditsReturned when the client does not have enough credits in his account.
7104Invalid app idReturned when the app id is invalid.
7105Customer profile not foundReturned when the customer profile is not found.
7106Channel not configuredReturned when the channel is not configured.
7107Message length exceededReturned when the length of the message exceeded.
7108Invalid templateReturned when the template is invalid.
7109User in DnDReturned when the user is registered on Do Not Disturb list.
7110User is not activeReturned when the user is in inactive state.
7111Spam content detectedReturned when the content contains a spam word.
7112Invalid message typeReturned when the message type is invalid.
7113Social hoursReturned when the message is sent during non-social hours.
7114Configuration Error. Please contact admin.Returned when there is an error in configuration.
7115Rate plan not definedReturned when the rate plan is not defined.
7116Destination profile is not verifiedReturned when the destination profile is not verified.
7117RTM is not enabled for this appReturned when RTM is not enabled for this application.
7118Push is not enabled for this appReturned when Push is not enabled for this application.
7119Destination profile doesn't have OS detailsReturned when the destination profile does not have OS details.
7120Voice params length exceededReturned when the voice parameters length is exceeded.
7121Replaceable params could not be fetched.Returned when the replaceable parameters could not be fetched.
7200Unknown StatusReturned when the status is unknown.
7201Delivery failed at OperatorReturned when the delivery failed at operator.
7202Delivery failed at platformReturned when the delivery failed at platform.
7203Unknown Subscriber addressReturned when the subscriber address is not known.
7204Insufficient Credits in subscriber accountReturned when the subscriber account has insufficient credits.
7205Error in Binary messageReturned when there is an error in binary message.
7206Can't deliver. Subscriber SIM FullReturned when the subscribers sim is full.
7207Subscriber out of coverage area or not reachableReturned when the subscriber is out of coverage area.
7208Source ip is not white listedReturned when the source IP is not whitelisted.
7209Unable to deliver multipart messageReturned when unable to deliver multi part message.
7210Billing Configuration errorReturned when there is an error in billing configuration.
7211Billing error at operatorReturned when an error occurs at operator.
7212Invalid registrationReturned when the registration is invalid.
7213UnregisteredReturned when the user is not registered.
7214Cloud specific failureReturned due to cloud failure.
7301Message expiredReturned when the message is expired.
7302Rate limit exceededReturned when the rate limit exceeded.
7303Delivery notification of a message expiredReturned when the delivery notification of a message is expired.
7304Invalid app credentials(Invalid OAuth)Returned when invalid app credentials are provided.
7305Invalid user credentialsReturned when user credentials are invalid.
7306Duplicate message for twitterReturned when a duplicate message is sent on Twitter.
7307End point not reachable(FB is not reachable)Returned when Facebook is not reachable
7401No answerReturned when the call is not answered.
7402Customer busyReturned when the customer is busy.
7403Call rejectedReturned when the call is rejected.
7404OthersReturned for other errors
7500DeliveredReturned when the delivery is completed successfully.
7501SubmitedReturned when the submit is success.
7502ReadReturned when the message is read.
7600no results foundReturned when the results are not found.
7601transaction is not under this service or service key is invalidReturned when there is a mismatch with the service key or transaction.
7602user presence failureReturned when the user not available in the network.
7603either validation failed for request or user verification failureReturned when the validation is failed or user verification is failed for the request.
Language
Authorization
Header