Template and Variable Specifications
You can only send SMSs with approved templates. A template consists of fixed texts and variables or only fixed texts. The variables change according to the SMS content.
Apply for several SMS templates in advance according to service requirements and reserve sufficient time for review. Templates can be reviewed only on workdays.
Read the following specifications and mak sure that your SMS templates comply with the common specifications and special specifications of each template type.
Common Specifications
Template Specifications
Format |
Each template contains no more than 500 characters.
|
---|---|
Content |
Use as much fixed text as possible so that the meaning and application scenario of the SMS can be understood.
|
An SMS signature is automatically added to a message, so do not add one to a template.
Variable Specifications
Each template can contain a maximum of 20 variables, excluding continuous variables. (If characters not containing spaces exist between variables, the variables are discontinuous.)
The system supports variables listed in the following table. You can choose a proper variable format and length.
Variable Format |
Type |
Example Value |
Description |
---|---|---|---|
${TXT_Digit} |
Character |
${TXT_20} |
Digit indicates the maximum length. The value can be 1 to 20 characters. One non-English character, one English letter, one digit, or one English punctuation mark is counted as one character. Set this parameter based on the site requirements. Do not set this parameter to a large value. Note: The variable value cannot contain braces ({ }). Otherwise, template variables may fail to be parsed. |
${NUM_Digit} |
Digit |
${NUM_6} |
Digit indicates the maximum length. The value can be 1 to 20 characters. One digit is counted as one character. When sending an SMS, enter a number ranging from 0 to 9. The number cannot contain other characters, such as hyphens (-). Set this parameter based on the site requirements. Do not set this parameter to a large value. |
${DATE} |
Date |
${DATE} |
The date in an SMS is in yyyy/MM/dd format, for example, 2017/07/16, 2017/7/16, or 2017/7/1. |
${TIME} |
Time |
${TIME} |
The system supports the following time formats:
|
Specifications for Each Template Type
In addition to the common specifications, each template type has the following specifications:
Category |
Variable Specifications |
Content Specifications |
---|---|---|
Verification code template |
|
A Chinese mainland SMS must contain a verification code, registration code, or dynamic code. |
Notification template |
The link and contact information cannot be sent using variables. Enter the link and contact information using fixed texts in the template. |
Marketing promotional information is not allowed. |
- The template specifications may be adjusted in real time based on the carrier's rules. The final template review result prevails.
- If your violation causes bad influence, serious measures will be taken and your account will be blocked. Strictly comply with the specifications to enhance service security.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot