About Material ​
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Material is the core business module of Genstore, used to manage image, video, and other types of media files within the store.
The Material Object Object ​
Material represent digital assets that merchants can upload to their store for various purposes including product images, marketing materials, documents, and brand assets.
Properties ​
{
"material": {
"duration": "122",
"optimizeUrl": "https://image-c-pioneer.weimobqa.com/qa-2TL/3d19b66355d04653a722cb3e116620f9.webp",
"materialFileType": "1",
"size": "1111",
"coverImageUrl": "https://image-c-pioneer.weimobqa.com/qa-2TL/3d19b66355d04653a722cb3e116620f9.jpg",
"materialType": "1",
"id": "123",
"title": "title",
"materialDetailExts": [
{
"value": "",
"key": ""
}
],
"url": "https://image-c-pioneer.weimobqa.com/qa-2TL/4022047364584/57051e41027b414b91a4dadfd3268d68.png",
"introduction": "description"
}
}
POST Add materials ​
Create Genstore store assets using an external URL
Access scope
Requires ANY of the following access scopes: write_materials
Endpoint
POST /api/202412/materials
Request Params
* Material type 1: Image; File type 1: bmp, File type 2: png, File type 3: jpeg, File type 4: jpg, File type 5: gif, File type 24: svg, File type 25: webp, File type 26: heic
* Material type 2: Audio; File type 6: mp3, File type 7: wma, File type 8: wav, File type 9: amr, File type 28: aac,
* Material type 3: Video; File type 10: mp4, File type 11: flv, File type 12: f4v, File type 13: webm, File type 14: avi, File type 27: mov
* Material type 4: File; File type 15: doc, File type 16: docx, File type 18: xls, File type 19: xlsx, File type 20: ppt, File type 21: pptx, File type 22: pdf, File type 30: css, File type 31: rar, File type 32: rtf, File type 33: txt, File type 34: zip, File type 35: dotx, File type 36: json, File type 37: potx, File type 38: ppsx, File type 39: xmind
Response Data
* Material type 1: Image; File type 1: bmp, File type 2: png, File type 3: jpeg, File type 4: jpg, File type 5: gif, File type 24: svg, File type 25: webp, File type 26: heic
* Material type 2: Audio; File type 6: mp3, File type 7: wma, File type 8: wav, File type 9: amr, File type 28: aac
* Material type 3: Video; File type 10: mp4, File type 11: flv, File type 12: f4v, File type 13: webm, File type 14: avi, File type 27: mov
* Material type 4: File; File type 15: doc, File type 16: docx, File type 18: xls, File type 19: xlsx, File type 20: ppt, File type 21: pptx, File type 22: pdf, File type 30: css, File type 31: rar, File type 32: rtf, File type 33: txt, File type 34: zip, File type 35: dotx, File type 36: json, File type 37: potx, File type 38: ppsx, File type 39: xmind
curl -X POST \
https://{shop}.genmystore.com/api/202412/materials" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"material":{
"duration":"108",
"materialFileType":"1",
"size":"10245",
"materialType":"1",
"title":"Front view image of Apple Watch",
"url":"https://image-c.genstoredev.com/qa-34K/4022109170826/a34555550e704aa8994cc44c9c375b58.jpg",
"introduction":"Front view image of Apple Watch"
}
}'
HTTP/1.1 200 OK
{
"material": {
"duration": "537",
"optimizeUrl": "https://image-c-pioneer.weimobqa.com/qa-2TL/3d19b66355d04653a722cb3e116620f9.webp",
"materialFileType": "1",
"size": "4236498",
"coverImageUrl": "https://image-c-pioneer.weimobqa.com/qa-2TL/3d19b66355d04653a722cb3e116620f9.jpg",
"materialType": "1",
"id": "11592",
"title": "Overlord Generation",
"materialDetailExts": [
{
"value": "128",
"key": "with"
}
],
"url": "https://image-c-pioneer.weimobqa.com/qa-2TL/4022047364584/57051e41027b414b91a4dadfd3268d68.png",
"introduction": "Overlord Generation"
}
}
GET Search Material ​
Pop up material list
Access scope
Requires ANY of the following access scopes: read_materials
Endpoint
GET /api/202412/materials
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/materials" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"materials": [
{
"duration": "537",
"optimizeUrl": "https://image-c-pioneer.weimobqa.com/qa-2TL/3d19b66355d04653a722cb3e116620f9.webp",
"materialFileType": "1",
"size": "4236498",
"coverImageUrl": "https://image-c-pioneer.weimobqa.com/qa-2TL/3d19b66355d04653a722cb3e116620f9.jpg",
"materialType": "1",
"id": "11592",
"title": "霸王十代",
"materialDetailExts": [
{
"value": "4236498",
"key": "size"
}
],
"url": "https://image-c-pioneer.weimobqa.com/qa-2TL/4022047364584/57051e41027b414b91a4dadfd3268d68.png",
"introduction": "霸王十代"
}
]
}
About Material
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Material is the core business module of Genstore, used to manage image, video, and other types of media files within the store.
The Material Object Object
Material represent digital assets that merchants can upload to their store for various purposes including product images, marketing materials, documents, and brand assets.
Properties
POST Add materials
Create Genstore store assets using an external URL
Access scope
Requires ANY of the following access scopes: write_materials
Endpoint
POST /api/202412/materials
GET Search Material
Pop up material list
Access scope
Requires ANY of the following access scopes: read_materials
Endpoint
GET /api/202412/materials