X Lead Connect
  1. SMS
X Lead Connect
  • Overview
  • API Key Integration
  • SMS
    • Message Delivery Flow
    • Send Message
      POST
    • Get Usage Report
      GET
  • MMS
    • Message Delivery Flow
    • Send Message
      POST
    • Get Usage Report
      GET
  • eDM
    • Message Delivery Flow
    • Send Message
      POST
  • Account Management
    • Get Points Balance
      GET
    • Get Quota Balance
      GET
  1. SMS

Message Delivery Flow

Our SMS delivery service offers HTTP POST method for sending text messages. These messages should be encoded in UTF-8 format.
Upon receiving a send request through our X Lead platform, we promptly issue a reference id. This immediate feedback serves as an acknowledgment to your system, confirming that we have successfully received the request and queued it for processing.
After processing, we will provide the status of your request through your callback URL. The response may indicate a valid send with the corresponding number of points to deduct, or it may be an invalid submission due to reasons such as insufficient points, an invalid mobile number, or the number being on the do-not-call list.
Once the message has been submitted to the corresponding telecommunications operator, our service extends an additional callback feature. This focuses on the response from the recipient's handheld device. Once the telecommunications operator receives a delivery status from the recipient's device, we relay this information back to you through your callback URL, and this is crucial for understanding the success rate of your sent messages and for troubleshooting any issues related to message delivery.
Our system is designed to keep you thoroughly informed throughout the entire process. From the moment your message is dispatched from our platform, we ensure that each step is communicated back to you for effective tracking.
Here is the complete flow of the delivery and report operation.
image.png

Callback URL is the URL you provided to us (setup in dashboard) in order to listen to our updates in below format :
FieldDescription
rcreturn code
rmreturn message with detail explanation, if any
ref_idreference id that we returned during your original API call
statussubmission or delivery status of your API request

There are 2 tiers of callbacks :#


1st Callback (Send Request Report)
This is an update on the status of your send request, if it is processed as a valid request, you will receive a callback call (rc = 100), indicating that it has been successfully validated and submitted to the carrier, and this message will be charged.
rc = 100 (message will be charged)
StatusDescription
SMDA valid send, message has been submitted to carrier for delivery

In the event of a failure (rc = -100), you may encounter the following scenarios with corresponding status.
rc = -100 (message will not be charged)
StatusDescription
IMIncorrect country code or mobile
OFCAIn OFCA DNC and filtered (HK only)
IULIn unsend list, message did not send out
IPInsufficient points
ISInvalid sender, or sender id is not registered in your account


2nd Callback (Delivery Report)
When our system receives an update from the carrier, we will initiate a callback to your side to provide this status update. The update may include the following scenarios.
rc = 100
StatusDescription
DELIVRDcarrier has successfully delivered to the recipient's device
EXPIREDmessage is not delivered as processing exceeded the validity period
UNDELIVundelivered due to unreachable destination, network issues, or recipient's device being turned off
REJECTDrejected due to invalid content, blacklisted, or policy restrictions
UNKNWNcarrier cannot determine the final delivery status of the message

NOTE
You must first log into your account dashboard and set up this Callback URL in order to receive our status update of messages delivery.
Modified at 2025-11-11 13:05:23
Previous
API Key Integration
Next
Send Message
Built with