Card SMS messages render as multimedia cards on user devices, which improves notification readability and interactivity. Before you send a card SMS message, you must create a card SMS template and have it approved. You can refer to the sample templates in this topic to create your own.
You can call the CreateCardSmsTemplate operation and pass the
Templateparameter to create a card SMS template. You can also create a template in the console.For more information about template parameters, see Card SMS template parameter description.
The samples are for reference only. Fill in the template parameters as needed.
Notes
Fill in all required fields with the correct data types.
The dimensions and sizes of resources for video and image templates must meet the specified requirements.
Titles, body text, and buttons have character limits.
For all templates, use the
positionNumberparameter to set the display order of elements. The display order is typically from top to bottom and left to right.If you set the Type of a dynamic parameter to 1, the Sample field is required. Ensure that the definition and use of dynamic parameter variables are consistent.
Because the request parameter structure is complex, verify the parameter structure to prevent multiple JSON serializations that can cause parsing errors.
Ensure there is sufficient contrast between the font and background colors. Otherwise, your template may not be approved.
Image and text templates
Template type |
cardType |
5 |
|
15 |
|
11, 12, 13 |
|
7 |
|
1 |
|
2 |
Image and text template

Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "HMOVM image and text",
"purpose": "2",
"userExt": {
"outId": "1234554321"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "28755",
"actionType": "OPEN_APP",
"action": {
"target": "https://s.tb.cn/c.KxzZ",
"merchantName": "Test - Image and text template",
"packageName": [
"com.taobao.taobao"
],
"floorUrl": "https://s.tb.cn/c.KxzZ"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Test - BENZ AMG 2020 test drive invitation",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Test - Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_BROWSER",
"action": {
"target": "https://www.mercedes-benz.com.cn",
"merchantName": "Test - Redirecting to Mercedes-Benz"
},
"positionNumber": 4
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 5
}
With dynamic parameters
{
"extendInfo": {
"scene": "HMOVM image and text",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "All-new electric EQE"
},
{
"name": "${param2}",
"type": 1,
"example": "y6.ePwql"
}
],
"userExt": {
"outId": "1234554321"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "28755",
"actionType": "OPEN_APP",
"action": {
"target": "https://s.tb.cn/c.KxzZ",
"merchantName": "Test - Image and text template",
"packageName": [
"com.taobao.taobao"
],
"floorUrl": "https://s.tb.cn/c.KxzZ"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Test - BENZ AMG 2020 test drive invitation ${param1}",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Test - Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_BROWSER",
"action": {
"target": "https://www.mercedes-benz.com.cn/${param2}",
"merchantName": "Test - Redirecting to Mercedes-Benz"
},
"positionNumber": 4
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 5
}
Long text template
You can hide the content in the `[Enterprise]` field by setting visible=0. A placeholder is still required for this field.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "Long text and image test 8501",
"purpose": "2",
"userExt": {
"outId": "Test123"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "21566",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Mercedes-Benz",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ AMG 2020 ",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, Mercedes-Benz's passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "View details",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com/",
"merchantName": "Redirecting..."
},
"positionNumber": 5
},
{
"type": "BUTTON",
"content": "Book now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXXX/123",
"merchantName": "Redirecting..."
},
"positionNumber": 6
},
{
"type": "IMAGE",
"srcType": 1,
"src": "21786",
"actionType": "VIEW_PIC",
"action": {
"target": "21786"
},
"positionNumber": 7
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 15
}
With dynamic parameters
{
"extendInfo": {
"scene": "Long text and image test 8501",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Pure electric EDE"
}
],
"userExt": {
"outId": "Test123"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "21566",
"visible": 0,
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Mercedes-Benz",
"isTextTitle": true,
"visible": 0,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ AMG 2020 ${param1}",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, Mercedes-Benz's passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "View details",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com/",
"merchantName": "Redirecting..."
},
"positionNumber": 5
},
{
"type": "BUTTON",
"content": "Book now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXXX/123",
"merchantName": "Redirecting..."
},
"positionNumber": 6
},
{
"type": "IMAGE",
"srcType": 1,
"src": "21786",
"actionType": "VIEW_PIC",
"action": {
"target": "21786"
},
"positionNumber": 7
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 15
}
Carousel template

The cardType parameter varies based on the image dimensions. Select a value as needed:
16:9 carousel template: 11
1:1 carousel template: 12
48:65 carousel template: 13
Sample 16:9 carousel template
Without dynamic parameters
{
"extendInfo": {
"scene": "HO 16:9 carousel",
"purpose": "2",
"userExt": {
"outId": "1234554321"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "23145",
"actionType": "VIEW_PIC",
"action": {
"target": "23145"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "23166",
"actionType": "VIEW_PIC",
"action": {
"target": "23166"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ AMG 2020 test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 11
}
With dynamic parameters
{
"extendInfo": {
"scene": "HO 16:9 carousel",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Pure electric EDE"
}
],
"userExt": {
"outId": "1234554321"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "23145",
"actionType": "VIEW_PIC",
"action": {
"target": "23145"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "23166",
"actionType": "VIEW_PIC",
"action": {
"target": "23166"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ ${param1} test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 11
}
Sample 1:1 carousel template
Without dynamic parameters
{
"extendInfo": {
"scene": "HO 1:1 carousel",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Pure electric EDE"
}
],
"userExt": {
"outId": "1234554321"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "23145",
"actionType": "VIEW_PIC",
"action": {
"target": "23145"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "23166",
"actionType": "VIEW_PIC",
"action": {
"target": "23166"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ ${param1} test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 12
}
With dynamic parameters
{
"extendInfo": {
"scene": "HO 1:1 carousel",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Pure electric EDE"
}
],
"userExt": {
"outId": "1234554321"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "23145",
"actionType": "VIEW_PIC",
"action": {
"target": "23145"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "23166",
"actionType": "VIEW_PIC",
"action": {
"target": "23166"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ ${param1} test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 12
}
Sample 48:65 carousel template
Without dynamic parameters
{
"extendInfo": {
"scene": "HO 48:65 carousel",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "23145",
"actionType": "VIEW_PIC",
"action": {
"target": "23145"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "23166",
"actionType": "VIEW_PIC",
"action": {
"target": "23166"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ AMG 2020 test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 13
}
With dynamic parameters
{
"extendInfo": {
"scene": "HO 48:65 carousel",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Pure electric EDE"
}
]
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "23145",
"actionType": "VIEW_PIC",
"action": {
"target": "23145"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "23166",
"actionType": "VIEW_PIC",
"action": {
"target": "23166"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ ${param1} test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "The best or nothing.#As one of the world's most successful luxury car brands, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 13
}
Multi-image and text template

Images and text must appear in pairs, with the image first, followed by the text.
The main image and main title are placed first, followed by one to three sub-images and subtitles.
The resource address for opening the large image must be the same as the template image resource address. If the resource type is an ID, pass the ID as the value.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "Commercial multi-image and text template",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/bf83a3523abdd9/0316e7d09f5357f68f--4105360918.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/13bacd926189bc93fe98ad652f11d85c--819052851.jpg"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "The 3rd Tencent Games Player Open Day officially kicks off in Shenzhen, China~",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "IMAGE",
"srcType": 1,
"src": "21678",
"actionType": "VIEW_PIC",
"action": {
"target": "21678"
},
"positionNumber": 3
},
{
"type": "TEXT",
"content": "A 13-year IP-licensed mobile game, continuing the legacy with a perfect restoration of the original PC game..",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/202002/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/202002/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg"
},
"positionNumber": 5
},
{
"type": "TEXT",
"content": "Contra: Return is jointly developed by Tencent and KONAMI of Japan...",
"isTextTitle": false,
"positionNumber": 6
},
{
"type": "IMAGE",
"srcType": 1,
"src": "28755",
"actionType": "VIEW_PIC",
"action": {
"target": "28755"
},
"positionNumber": 7
},
{
"type": "TEXT",
"content": "Honor of Kings is Tencent's premier 5V5 team-based fair-play mobile game, a national M...",
"isTextTitle": false,
"positionNumber": 8
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 7
}
With dynamic parameters
{
"extendInfo": {
"scene": "HMOVM multi-image and text",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "November 2022"
},
{
"name": "${param2}",
"type": 1,
"example": "/helloworld"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/bf83a3523abdd9/0316e7d09f5357f68f--4105360918.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/13bacd926189bc93fe98ad652f11d85c--819052851.jpg"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "The 3rd Tencent Games Player Open Day will officially kick off in Shenzhen, China in ${param1}~",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "IMAGE",
"srcType": 1,
"src": "21678",
"actionType": "VIEW_PIC",
"action": {
"target": "21678"
},
"positionNumber": 3
},
{
"type": "TEXT",
"content": "A 13-year IP-licensed ${param2} mobile game, continuing the legacy with a perfect restoration of the original PC game..",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/202002/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/202002/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg"
},
"positionNumber": 5
},
{
"type": "TEXT",
"content": "Contra: Return is jointly developed by Tencent and KONAMI of Japan...",
"isTextTitle": false,
"positionNumber": 6
},
{
"type": "IMAGE",
"srcType": 1,
"src": "28755",
"actionType": "VIEW_PIC",
"action": {
"target": "28755"
},
"positionNumber": 7
},
{
"type": "TEXT",
"content": "Honor of Kings is Tencent's premier 5V5 team-based fair-play mobile game, a national M...",
"isTextTitle": false,
"positionNumber": 8
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 7
}
Horizontal scroll template 1
This template consists of content from 2 to 10 image and text templates (that is, 2 to 10 tmpCards).

Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "HOVM horizontal scroll 1",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "28234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "FlowerInfused Glass",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Nordic minimalist sky cloud art modern furniture XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 4
}
]
},
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "213234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Forest",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "South American primeval forest art modern furniture XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 4
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 1
}
With dynamic parameters
{
"extendInfo": {
"scene": "HOVM horizontal scroll 1",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Test title 1"
},
{
"name": "${param2}",
"type": 1,
"example": "Test title 2"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "28234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "FlowerInfused Glass ${param1}",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Nordic minimalist sky cloud art modern furniture XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 4
}
]
},
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "213234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Forest${param2}",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "South American primeval forest art modern furniture XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 4
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 1
}
Horizontal scroll template 2
The difference from horizontal scroll template 1 is that this template has only a title and no body text. The title is usually bold.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "HOVM horizontal scroll 2",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "28234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Nordic minimalist sky cloud art modern furniture XXXX ",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 3
}
]
},
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "213234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "South American primeval forest art modern furniture XXXX",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 3
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 2
}
With dynamic parameters
{
"extendInfo": {
"scene": "HOVM horizontal scroll 2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Test title 1"
},
{
"name": "${param2}",
"type": 1,
"example": "Test title 2"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "28234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Nordic minimalist sky cloud art modern furniture XXXX ${param1}",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 3
}
]
},
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "213234",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "South American primeval forest art modern furniture XXXX ${param2}",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 3
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 2
}
Video templates
Template type |
cardType |
4 |
|
14 |
|
18 |
Video template

Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "HOV video",
"purpose": "2",
"userExt": {
"companyName": "Alibaba Cloud"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "VIDEO",
"srcType": 1,
"cover": "28754",
"src": "28753",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "BENZ AMG 2020 test drive invitation",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_BROWSER",
"action": {
"target": "https://www.mercedes-benz.com.cn/",
"merchantName": "Test - Redirecting to Mercedes-Benz"
},
"positionNumber": 4
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 4
}
With dynamic parameters
{
"extendInfo": {
"scene": "HOV video",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "All-new electric EQE"
},
{
"name": "${param2}",
"type": 1,
"example": "y6.ePwql"
}
],
"userExt": {
"companyName": "Alibaba Cloud"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "VIDEO",
"srcType": 1,
"cover": "28754",
"src": "28753",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Test - BENZ AMG 2020 test drive invitation${param1}",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Test - Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile XXXX",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_BROWSER",
"action": {
"target": "https://www.mercedes-benz.com.cn/${param2}",
"merchantName": "Test - Redirecting to Mercedes-Benz"
},
"positionNumber": 4
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 4
}
Video, image, and text template

This template contains one video and one image. The video has a 16:9 aspect ratio and is positioned above the image, which has a 21:9 aspect ratio.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "Test - Video, image, and text template",
"purpose": "2",
"userExt": {
"outId": "1234554321"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "VIDEO",
"srcType": 1,
"src": "23167",
"cover": "23167",
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "719814534054846464",
"actionType": "VIEW_PIC",
"action": {
"target": "719814534054846464"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXXX/${param1}",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 14
}
With dynamic parameters
{
"extendInfo": {
"scene": "Test - Video, image, and text template",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Pure electric EDE"
}
]
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "VIDEO",
"srcType": 1,
"src": "23167",
"cover": "23167",
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 1,
"src": "719814534054846464",
"actionType": "VIEW_PIC",
"action": {
"target": "719814534054846464"
},
"positionNumber": 2
},
{
"type": "TEXT",
"content": " ${param1} test drive invitation",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile, we have never stopped exploring, creating, subverting, and innovating, always striving for the best!",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": " ${param1} book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXXX/${param1}",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 14
}
Image, text, and video template
The difference from the video, image, and text template is the position of the video and the image.

This template contains one image and one video. The image has a 21:9 aspect ratio and is positioned above the video, which has a 16:9 aspect ratio.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "Test image, text, and video 851",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"src": "21665",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 1
},
{
"type": "VIDEO",
"srcType": 1,
"src": "34221",
"cover": "21666",
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ AMG 2020 test drive invitation ",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile XXXX",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 18
}
With dynamic parameters
{
"extendInfo": {
"scene": "Test image, text, and video 851",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Pure electric EDE"
},
{
"name": "${param2}",
"type": 1,
"example": "ae28j"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"src": "21665",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 1
},
{
"type": "VIDEO",
"srcType": 1,
"src": "34221",
"cover": "21666",
"positionNumber": 2
},
{
"type": "TEXT",
"content": "BENZ ${param1} test drive invitation ",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Mercedes-Benz, the passion for innovation never dies. As the inventor of the automobile XXXX",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Book a test drive",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param2}"
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 18
}
Notification templates
Template type |
cardType |
3 |
|
6 |
General notification template

Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "HM notification",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "Transaction alert",
"isTextTitle": true,
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Expenditure from your account ending in 7283",
"isTextTitle": false,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "2680.60",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "CNY",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Transaction time",
"isTextTitle": false,
"positionNumber": 5
},
{
"type": "TEXT",
"content": "December 31, 2020 18:00",
"isTextTitle": false,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "Transaction type",
"isTextTitle": false,
"positionNumber": 7
},
{
"type": "TEXT",
"content": "WeChat Pay",
"isTextTitle": false,
"positionNumber": 8
},
{
"type": "TEXT",
"content": "Transaction amount",
"isTextTitle": false,
"positionNumber": 9
},
{
"type": "TEXT",
"content": "2680.60",
"isTextTitle": false,
"positionNumber": 10
},
{
"type": "TEXT",
"content": "Remaining balance",
"isTextTitle": false,
"positionNumber": 11
},
{
"type": "TEXT",
"content": "2308629.86",
"isTextTitle": false,
"positionNumber": 12
},
{
"type": "BUTTON",
"content": "Contact support",
"actionType": "DIAL_PHONE",
"action": {
"target": "159XXXXXX"
},
"positionNumber": 13
},
{
"type": "BUTTON",
"content": "View details",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 14
},
{
"type": "IMAGE",
"srcType": 1,
"src": "684986582695976960",
"actionType": "OPEN_URL",
"action": {
"target": " https://www.baidu.com?app=123",
"merchantName": "Redirecting..."
},
"positionNumber": 15
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 3
}
With dynamic parameters
{
"extendInfo": {
"scene": "HM notification",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "7283"
},
{
"name": "${param2}",
"type": 1,
"example": "2680.60"
},
{
"name": "${param3}",
"type": 1,
"example": "December 31, 2020 18:00"
},
{
"name": "${param4}",
"type": 1,
"example": "2680.60"
},
{
"name": "${param5}",
"type": 1,
"example": "2308629.86"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "Transaction alert",
"isTextTitle": true,
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Expenditure from your account ending in ${param1}",
"isTextTitle": false,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "${param2}",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "CNY",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Transaction time",
"isTextTitle": false,
"positionNumber": 5
},
{
"type": "TEXT",
"content": "${param3}",
"isTextTitle": false,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "Transaction type",
"isTextTitle": false,
"positionNumber": 7
},
{
"type": "TEXT",
"content": "WeChat Pay",
"isTextTitle": false,
"positionNumber": 8
},
{
"type": "TEXT",
"content": "Transaction amount",
"isTextTitle": false,
"positionNumber": 9
},
{
"type": "TEXT",
"content": "${param4}",
"isTextTitle": false,
"positionNumber": 10
},
{
"type": "TEXT",
"content": "Remaining balance",
"isTextTitle": false,
"positionNumber": 11
},
{
"type": "TEXT",
"content": "${param5}",
"isTextTitle": false,
"positionNumber": 12
},
{
"type": "BUTTON",
"content": "Contact support",
"actionType": "DIAL_PHONE",
"action": {
"target": "159XXXXXX"
},
"positionNumber": 13
},
{
"type": "BUTTON",
"content": "View details",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 14
},
{
"type": "IMAGE",
"srcType": 1,
"src": "684986582695976960",
"actionType": "OPEN_URL",
"action": {
"target": " https://www.baidu.com?app=123",
"merchantName": "Redirecting..."
},
"positionNumber": 15
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 3
}
Itinerary notification template
The first element in the
tmpCardsarray corresponds to the bottom image.Dates, times, and locations must appear in pairs, from left to right.
Description details must appear in groups of three.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "H itinerary",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/10b6f3e3d13739ae0d987dcd5b01bd32--2989669678.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/10b6f3e3d13739ae0d987dcd5b01bd32--2989669678.jpg"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Train ticket purchased successfully",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Order number:EJ7153628",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Shenzhen",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Urumqi",
"isTextTitle": false,
"positionNumber": 5
},
{
"type": "TEXT",
"content": "15:05",
"isTextTitle": false,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "22:55",
"isTextTitle": false,
"positionNumber": 7
},
{
"type": "TEXT",
"content": "2021-01-01",
"isTextTitle": false,
"positionNumber": 8
},
{
"type": "TEXT",
"content": "G321",
"isTextTitle": false,
"positionNumber": 9
},
{
"type": "TEXT",
"content": "2021-01-01",
"isTextTitle": false,
"positionNumber": 10
},
{
"type": "TEXT",
"content": "Passenger",
"isTextTitle": false,
"positionNumber": 11
},
{
"type": "TEXT",
"content": "Adult ticket",
"isTextTitle": false,
"positionNumber": 12
},
{
"type": "TEXT",
"content": "Second class seat",
"isTextTitle": false,
"positionNumber": 13
},
{
"type": "TEXT",
"content": "Zhang San",
"isTextTitle": false,
"positionNumber": 14
},
{
"type": "TEXT",
"content": "1420.19 CNY",
"isTextTitle": false,
"positionNumber": 15
},
{
"type": "TEXT",
"content": "Car 12, Seat 12F",
"isTextTitle": false,
"positionNumber": 16
},
{
"type": "BUTTON",
"content": "Change ticket",
"actionType": "DIAL_PHONE",
"action": {
"target": "1324354****"
},
"positionNumber": 17
},
{
"type": "BUTTON",
"content": "Refund ticket",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.ak47s.cn/back",
"merchantName": "Redirecting..."
},
"positionNumber": 18
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 6
}
With dynamic parameters
{
"extendInfo": {
"scene": "H itinerary",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Zhang San"
},
{
"name": "${param2}",
"type": 1,
"example": "back.do"
}
]
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/10b6f3e3d13739ae0d987dcd5b01bd32--2989669678.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/10b6f3e3d13739ae0d987dcd5b01bd32--2989669678.jpg"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Train ticket purchased successfully",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Order number:EJ7153628",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Shenzhen",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Urumqi",
"isTextTitle": false,
"positionNumber": 5
},
{
"type": "TEXT",
"content": "15:05",
"isTextTitle": false,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "22:55",
"isTextTitle": false,
"positionNumber": 7
},
{
"type": "TEXT",
"content": "2021-01-01",
"isTextTitle": false,
"positionNumber": 8
},
{
"type": "TEXT",
"content": "G321",
"isTextTitle": false,
"positionNumber": 9
},
{
"type": "TEXT",
"content": "2021-01-01",
"isTextTitle": false,
"positionNumber": 10
},
{
"type": "TEXT",
"content": "Passenger",
"isTextTitle": false,
"positionNumber": 11
},
{
"type": "TEXT",
"content": "Adult ticket",
"isTextTitle": false,
"positionNumber": 12
},
{
"type": "TEXT",
"content": "Second class seat",
"isTextTitle": false,
"positionNumber": 13
},
{
"type": "TEXT",
"content": "${param1}",
"isTextTitle": false,
"positionNumber": 14
},
{
"type": "TEXT",
"content": "1420.19 CNY",
"isTextTitle": false,
"positionNumber": 15
},
{
"type": "TEXT",
"content": "Car 12, Seat 12F",
"isTextTitle": false,
"positionNumber": 16
},
{
"type": "BUTTON",
"content": "Change ticket",
"actionType": "DIAL_PHONE",
"action": {
"target": "1324354****"
},
"positionNumber": 17
},
{
"type": "BUTTON",
"content": "Refund ticket",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.ak47s.cn/${param2}",
"merchantName": "Redirecting..."
},
"positionNumber": 18
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 6
}
E-commerce templates
Template type |
cardType |
10 |
|
17 |
|
8 |
|
16 |
|
19 |
|
20 |
E-commerce template
Sample e-commerce image template
The image aspect ratio is 1:1. You can use 1 to 8 images. Images support events.
You can configure only one button.
Without dynamic parameters
{
"extendInfo": {
"scene": "H e-commerce image and text",
"purpose": "2",
"userExt": {
"outId": "12345452"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "21689",
"actionType": "VIEW_PIC",
"action": {
"target": "21689"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg"
},
"positionNumber": 2
},
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/1f752ca77f2d851a6e621d0b88a7d0ab--670462893.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/1f752ca77f2d851a6e621d0b88a7d0ab--670462893.jpg"
},
"positionNumber": 3
},
{
"type": "TEXT",
"content": "399",
"isTextTitle": true,
"currencyDisplay": 1,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Final price: CNY 314",
"isTextTitle": true,
"positionNumber": 5,
"visible": 1
},
{
"type": "TEXT",
"content": "Smart large-capacity sensor trash can",
"isTextTitle": true,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "German Red Dot Design Award winner. One-touch packaging and automatic bag replacement. Convenient, hygienic, and truly improves quality of life.",
"isTextTitle": false,
"positionNumber": 7
},
{
"type": "BUTTON",
"content": "Visit store",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 8
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 9
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 10
}
With dynamic parameters
{
"extendInfo": {
"scene": "H e-commerce image and text",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "314 CNY"
}
],
"userExt": {
"outId": "12345452"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "21689",
"actionType": "VIEW_PIC",
"action": {
"target": "21689"
},
"positionNumber": 1
},
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/bf83a3523abdd90316e7d09f5357f68f--4105360918.jpg"
},
"positionNumber": 2
},
{
"type": "IMAGE",
"srcType": 2,
"src": "http://XXXX/1f752ca77f2d851a6e621d0b88a7d0ab--670462893.jpg",
"actionType": "VIEW_PIC",
"action": {
"target": "http://XXXX/1f752ca77f2d851a6e621d0b88a7d0ab--670462893.jpg"
},
"positionNumber": 3
},
{
"type": "TEXT",
"content": "399",
"isTextTitle": true,
"currencyDisplay": 1,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Final price: CNY ${param1}",
"isTextTitle": true,
"positionNumber": 5,
"visible": 1
},
{
"type": "TEXT",
"content": "Smart large-capacity sensor trash can",
"isTextTitle": true,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "German Red Dot Design Award winner. One-touch packaging and automatic bag replacement. Convenient, hygienic, and truly improves quality of life.",
"isTextTitle": false,
"positionNumber": 7
},
{
"type": "BUTTON",
"content": "Visit store",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 8
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 9
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 10
}
Sample e-commerce video template
1. The video aspect ratio is 1:1. You can use one video. Events are not supported.
2. You can configure only one button.
Without dynamic parameters
{
"extendInfo": {
"scene": "H e-commerce video",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "314 CNY"
}
],
"userExt": {
"outId": "12345452"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "VIDEO",
"srcType": 1,
"src": "21689",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "399",
"isTextTitle": true,
"currencyDisplay": 1,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Final price: CNY ${param1}",
"isTextTitle": true,
"positionNumber": 3,
"visible": 1
},
{
"type": "TEXT",
"content": "Smart large-capacity sensor trash can",
"isTextTitle": true,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "German Red Dot Design Award winner. One-touch packaging and automatic bag replacement. Convenient, hygienic, and truly improves quality of life.",
"isTextTitle": false,
"positionNumber": 5
},
{
"type": "BUTTON",
"content": "Visit store",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 6
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 7
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 10
}
With dynamic parameters
{
"extendInfo": {
"scene": "H e-commerce video",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "314 CNY"
}
],
"userExt": {
"outId": "12345452"
}
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "VIDEO",
"srcType": 1,
"src": "21689",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "399",
"isTextTitle": true,
"currencyDisplay": 1,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Final price: CNY ${param1}",
"isTextTitle": true,
"positionNumber": 3,
"visible": 1
},
{
"type": "TEXT",
"content": "Smart large-capacity sensor trash can",
"isTextTitle": true,
"positionNumber": 4
},
{
"type": "TEXT",
"content": "German Red Dot Design Award winner. One-touch packaging and automatic bag replacement. Convenient, hygienic, and truly improves quality of life.",
"isTextTitle": false,
"positionNumber": 5
},
{
"type": "BUTTON",
"content": "Visit store",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 6
},
{
"type": "BUTTON",
"content": "Buy now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 7
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 10
}
Multi-product template

The `tmpCards` array can contain either 22 or 33 elements. A count of 22 displays two products in the list, and a count of 33 displays three products. The maximum `positionNumber` value corresponds to the number of elements.
Some content can be hidden, but placeholders are required.
Currently, the redirect URL for image click events in the multi-product layout does not support dynamic parameters.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "Multi-product template test-33",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "Beauty**** - Top title",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Don't be a novice, be responsible for your beauty - Top subtitle",
"visible": 0,
"positionNumber": 2
},
{
"type": "BUTTON",
"content": "Image button click redirect - Top triangle",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 3
},
{
"type": "IMAGE",
"src": "23123",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Hide discount price background",
"visible": 0,
"positionNumber": 5
},
{
"type": "TEXT",
"content": "Hide discount price 112",
"visible": 0,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "Yves Saint Laurent (YSL) Rouge Pur Couture lipstick, new color 1966 red (satin finish, long-lasting....",
"positionNumber": 7
},
{
"type": "TEXT",
"content": "Authentic product, free shipping",
"positionNumber": 8
},
{
"type": "TEXT",
"content": "Hideable tag - Authentic product, free shipping",
"visible": 0,
"positionNumber": 9
},
{
"type": "TEXT",
"content": "Currency unit",
"visible": 1,
"positionNumber": 10
},
{
"type": "TEXT",
"content": 288.00,
"positionNumber": 11
},
{
"type": "TEXT",
"content": "Buy now",
"visible": 1,
"positionNumber": 12
},
{
"type": "BUTTON",
"content": "Product click",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 13
},
{
"type": "IMAGE",
"src": "23114",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 14
},
{
"type": "TEXT",
"content": "Save ",
"visible": 1,
"positionNumber": 15
},
{
"type": "TEXT",
"content": "99 CNY",
"visible": 1,
"positionNumber": 16
},
{
"type": "TEXT",
"content": "MAC Lipstick Matte 602 Chili MAC Lipstick Matte 602 Chili",
"positionNumber": 17
},
{
"type": "TEXT",
"content": "Direct mail from Hong Kong",
"positionNumber": 18
},
{
"type": "TEXT",
"content": "Great value authentic product",
"visible": 1,
"positionNumber": 19
},
{
"type": "TEXT",
"content": "Currency unit",
"visible": 1,
"positionNumber": 20
},
{
"type": "TEXT",
"content": 315.00,
"positionNumber": 21
},
{
"type": "TEXT",
"content": "Buy now",
"visible": 1,
"positionNumber": 22
},
{
"type": "BUTTON",
"content": "Product click",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 23
},
{
"type": "IMAGE",
"src": "54321",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 24
},
{
"type": "TEXT",
"content": "Hide discount price background",
"visible": 0,
"positionNumber": 25
},
{
"type": "TEXT",
"content": "Hide discount price 99",
"visible": 0,
"positionNumber": 26
},
{
"type": "TEXT",
"content": "Fanguang capsule lipstick, magnetic velvet, spicy and sweet...",
"positionNumber": 27
},
{
"type": "TEXT",
"content": "Great value",
"positionNumber": 28
},
{
"type": "TEXT",
"content": "Hideable tag - Authentic product, free shipping",
"visible": 0,
"positionNumber": 29
},
{
"type": "TEXT",
"content": "Currency unit",
"visible": 1,
"positionNumber": 30
},
{
"type": "TEXT",
"content": 119.01,
"positionNumber": 31
},
{
"type": "TEXT",
"content": "Buy now",
"visible": 1,
"positionNumber": 32
},
{
"type": "BUTTON",
"content": "Product click",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 33
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 17
}
With dynamic parameters
{
"extendInfo": {
"scene": "Multi-product template test-33",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "13245"
},
{
"name": "${param2}",
"type": 1,
"example": "21345"
},
{
"name": "${param3}",
"type": 1,
"example": "45321"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "Beauty****-Top title",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Don't be a novice, be responsible for your beauty - Top subtitle",
"visible": 0,
"positionNumber": 2
},
{
"type": "BUTTON",
"content": "Image button click redirect - Top triangle",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 3
},
{
"type": "IMAGE",
"src": "23123",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Hide discount price background",
"visible": 0,
"positionNumber": 5
},
{
"type": "TEXT",
"content": "Hide discount price 112",
"visible": 0,
"positionNumber": 6
},
{
"type": "TEXT",
"content": "Yves Saint Laurent (YSL) Rouge Pur Couture lipstick, new color 1966 red (satin finish, long-lasting....",
"positionNumber": 7
},
{
"type": "TEXT",
"content": "Authentic product, free shipping",
"positionNumber": 8
},
{
"type": "TEXT",
"content": "Hideable tag - Authentic product, free shipping",
"visible": 0,
"positionNumber": 9
},
{
"type": "TEXT",
"content": "Currency unit",
"visible": 1,
"positionNumber": 10
},
{
"type": "TEXT",
"content": 288.00,
"positionNumber": 11
},
{
"type": "TEXT",
"content": "Buy now",
"visible": 1,
"positionNumber": 12
},
{
"type": "BUTTON",
"content": "Product click",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param1}",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 13
},
{
"type": "IMAGE",
"src": "23114",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 14
},
{
"type": "TEXT",
"content": "Save ",
"visible": 1,
"positionNumber": 15
},
{
"type": "TEXT",
"content": "99 CNY",
"visible": 1,
"positionNumber": 16
},
{
"type": "TEXT",
"content": "MAC Lipstick Matte 602 Chili MAC Lipstick Matte 602 Chili",
"positionNumber": 17
},
{
"type": "TEXT",
"content": "Direct mail from Hong Kong",
"positionNumber": 18
},
{
"type": "TEXT",
"content": "Great value authentic product",
"visible": 1,
"positionNumber": 19
},
{
"type": "TEXT",
"content": "Currency unit",
"visible": 1,
"positionNumber": 20
},
{
"type": "TEXT",
"content": 315.00,
"positionNumber": 21
},
{
"type": "TEXT",
"content": "Buy now",
"visible": 1,
"positionNumber": 22
},
{
"type": "BUTTON",
"content": "Product click",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param2}",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 23
},
{
"type": "IMAGE",
"src": "54321",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 24
},
{
"type": "TEXT",
"content": "Hide discount price background",
"visible": 0,
"positionNumber": 25
},
{
"type": "TEXT",
"content": "Hide discount price 99",
"visible": 0,
"positionNumber": 26
},
{
"type": "TEXT",
"content": "Fanguang capsule lipstick, magnetic velvet, spicy and sweet...",
"positionNumber": 27
},
{
"type": "TEXT",
"content": "Great value",
"positionNumber": 28
},
{
"type": "TEXT",
"content": "Hideable tag - Authentic product, free shipping",
"visible": 0,
"positionNumber": 29
},
{
"type": "TEXT",
"content": "Currency unit",
"visible": 1,
"positionNumber": 30
},
{
"type": "TEXT",
"content": 119.01,
"positionNumber": 31
},
{
"type": "TEXT",
"content": "Buy now",
"visible": 1,
"positionNumber": 32
},
{
"type": "BUTTON",
"content": "Product click",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param3}",
"merchantName": "Alibaba Cloud"
},
"positionNumber": 33
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 17
}
Red envelope template

Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "HMMO red envelope",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "Q8jVYBnwN3Lxnc6eIjV",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Hema Fresh",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Double 11 Global Shopping Festival",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "sent you a red envelope",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Claim now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 8
}
With dynamic parameters
{
"extendInfo": {
"scene": "HMMO red envelope",
"purpose": "2",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Zhang San's Shop"
}
]
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "Q8jVYBnwN3Lxnc6eIjV",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Hema Fresh",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Double 11 Global Shopping Festival",
"isTextTitle": false,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "${param1} sent you a red envelope",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "BUTTON",
"content": "Claim now",
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com",
"merchantName": "Redirecting..."
},
"positionNumber": 5
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 8
}
Personalized red envelope template

The button text has a character limit. It supports events, but not the event to open a large image.
The image aspect ratio is 3:4. Avoid using images with high color contrast.
Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "Test personalized red envelope 851",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "41625",
"actionType": "VIEW_PIC",
"action": {
"target": "41625"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Hema Fresh",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Hema wishes you",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "sent you a red envelope! In this world, only the person who sends you a red envelope should not be let down!",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "IMAGE",
"srcType": 1,
"src": "32145",
"positionNumber": 5
},
{
"type": "BUTTON",
"content": "Open",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123",
"merchantName": "Hema"
},
"positionNumber": 6
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 16
}
With dynamic parameters
{
"extendInfo": {
"scene": "Test personalized red envelope 851",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "Wang Erxiao"
},
{
"name": "${param2}",
"type": 1,
"example": "qu98v"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "IMAGE",
"srcType": 1,
"src": "41625",
"actionType": "VIEW_PIC",
"action": {
"target": "41625"
},
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Hema Fresh",
"isTextTitle": true,
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Hema wishes ${param1}",
"isTextTitle": true,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "sent you a red envelope! In this world, only the person who sends you a red envelope should not be let down!",
"isTextTitle": false,
"positionNumber": 4
},
{
"type": "IMAGE",
"srcType": 1,
"src": "32145",
"positionNumber": 5
},
{
"type": "BUTTON",
"content": "Open",
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param2}",
"merchantName": "Hema"
},
"positionNumber": 6
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 16
}
Single coupon template

Sample code
Without dynamic parameters
{
"extendInfo": {
"scene": "Single coupon test 851",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "30",
"currencyDisplay": 1,
"positionNumber": 1
},
{
"type": "TEXT",
"content": "New user exclusive coupon",
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Available on orders over 100",
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Only for select electronic products",
"positionNumber": 4
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 5
},
{
"type": "IMAGE",
"src": "21345",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com"
},
"positionNumber": 6
},
{
"type": "BUTTON",
"content": "Claim now",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com?app=123"
},
"positionNumber": 7
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 19
}
With dynamic parameters
{
"extendInfo": {
"scene": "Single coupon test 851",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "100"
},
{
"name": "${param2}",
"type": 1,
"example": "qwqe45"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "30",
"currencyDisplay": 1,
"positionNumber": 1
},
{
"type": "TEXT",
"content": "New user exclusive coupon",
"positionNumber": 2
},
{
"type": "TEXT",
"content": "Available on orders over ${param1}",
"positionNumber": 3
},
{
"type": "TEXT",
"content": "Only for select electronic products",
"positionNumber": 4
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 5
},
{
"type": "IMAGE",
"src": "21345",
"srcType": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com"
},
"positionNumber": 6
},
{
"type": "BUTTON",
"content": "Claim now",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://XXXX.com?app=${param2}"
},
"positionNumber": 7
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 19
}
Multi-coupon template

The `[Discount]` field can only contain the ¥ symbol and numbers. It cannot contain other text. Otherwise, the discount information will not be displayed on the user's device. You can hide the ¥ symbol by setting
currencyDisplay=0.You can only choose one of the two button sizes (large or small).
Sample code
Without dynamic parameters, small button
{
"extendInfo": {
"scene": "Multi-coupon template test",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "Double 12 special offer recommendations",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 2
},
{
"type": "TEXT",
"content": "10",
"currencyDisplay": 1,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "10 off on orders over 50",
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Only for select electronic products (Huawei flagship store)",
"positionNumber": 5
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 6
},
{
"type": "BUTTON",
"content": "Claim",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 7
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 8
},
{
"type": "TEXT",
"content": "30",
"positionNumber": 9
},
{
"type": "TEXT",
"content": "Available on orders over 100",
"positionNumber": 10
},
{
"type": "TEXT",
"content": "Only for select mother and baby products (Balabala flagship store)",
"positionNumber": 11
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 12
},
{
"type": "BUTTON",
"content": "Claim",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 13
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 14
},
{
"type": "TEXT",
"content": "50",
"positionNumber": 15
},
{
"type": "TEXT",
"content": "Off for every 300 spent",
"positionNumber": 16
},
{
"type": "TEXT",
"content": "Only for select personal care and cleaning products (Estée Lauder flagship store)",
"positionNumber": 17
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 18
},
{
"type": "BUTTON",
"content": "Claim",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 19
},
{
"type": "TEXT",
"content": "Product coupon",
"positionNumber": 20
},
{
"type": "TEXT",
"content": "200",
"positionNumber": 21
},
{
"type": "TEXT",
"content": "No minimum spend",
"positionNumber": 22
},
{
"type": "TEXT",
"content": "All categories Double 12 special",
"positionNumber": 23
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 24
},
{
"type": "BUTTON",
"content": "Claim",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 25
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 20
}
Without dynamic parameters, large button
{
"extendInfo": {
"scene": "Multi-coupon template test",
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "Double 12 special offer recommendations",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 2
},
{
"type": "TEXT",
"content": "10",
"currencyDisplay": 1,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "10 off on orders over 50",
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Only for select electronic products (Huawei flagship store)",
"positionNumber": 5
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 6
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 7
},
{
"type": "TEXT",
"content": "30",
"positionNumber": 8
},
{
"type": "TEXT",
"content": "Available on orders over 100",
"positionNumber": 9
},
{
"type": "TEXT",
"content": "Only for select mother and baby products (Balabala flagship store)",
"positionNumber": 10
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 11
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 12
},
{
"type": "TEXT",
"content": "50",
"positionNumber": 13
},
{
"type": "TEXT",
"content": "Off for every 300 spent",
"positionNumber": 14
},
{
"type": "TEXT",
"content": "Only for select personal care and cleaning products (Estée Lauder flagship store)",
"positionNumber": 15
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 16
},
{
"type": "TEXT",
"content": "Product coupon",
"positionNumber": 17
},
{
"type": "TEXT",
"content": "200",
"positionNumber": 18
},
{
"type": "TEXT",
"content": "No minimum spend",
"positionNumber": 19
},
{
"type": "TEXT",
"content": "All categories Double 12 special",
"positionNumber": 20
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 21
},
{
"type": "BUTTON",
"content": "Use now (large button)",
"visible": 0,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=123"
},
"positionNumber": 22
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 20
}
With dynamic parameters
{
"extendInfo": {
"scene": "Multi-coupon template test",
"params": [
{
"name": "${param1}",
"type": 1,
"example": "12341231"
},
{
"name": "${param2}",
"type": 1,
"example": "34121231"
},
{
"name": "${param3}",
"type": 1,
"example": "32456322"
}
],
"purpose": "2"
},
"templateContent": {
"pages": [
{
"tmpCards": [
{
"type": "TEXT",
"content": "Double 12 special offer recommendations",
"positionNumber": 1
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 2
},
{
"type": "TEXT",
"content": "10",
"currencyDisplay": 1,
"positionNumber": 3
},
{
"type": "TEXT",
"content": "10 off on orders over 50",
"positionNumber": 4
},
{
"type": "TEXT",
"content": "Only for select electronic products (Huawei flagship store)",
"positionNumber": 5
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 6
},
{
"type": "BUTTON",
"content": "Claim",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param1}"
},
"positionNumber": 7
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 8
},
{
"type": "TEXT",
"content": "30",
"positionNumber": 9
},
{
"type": "TEXT",
"content": "Available on orders over 100",
"positionNumber": 10
},
{
"type": "TEXT",
"content": "Only for select mother and baby products (Balabala flagship store)",
"positionNumber": 11
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 12
},
{
"type": "BUTTON",
"content": "Claim",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param2}"
},
"positionNumber": 13
},
{
"type": "TEXT",
"content": "Store coupon",
"positionNumber": 14
},
{
"type": "TEXT",
"content": "50",
"positionNumber": 15
},
{
"type": "TEXT",
"content": "Off for every 300 spent",
"positionNumber": 16
},
{
"type": "TEXT",
"content": "Only for select personal care and cleaning products (Estée Lauder flagship store)",
"positionNumber": 17
},
{
"type": "TEXT",
"content": "2021.09.12~2021.12.12",
"positionNumber": 18
},
{
"type": "BUTTON",
"content": "Claim",
"visible": 1,
"actionType": "OPEN_URL",
"action": {
"target": "https://www.baidu.com?app=${param3}"
},
"positionNumber": 19
}
]
}
]
},
"cardSignName": "Alibaba Cloud",
"cardType": 20
}