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.
Material 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": "霸王十代",
"materialDetailExts": [
{
"value": "",
"key": ""
}
],
"url": "https://image-c-pioneer.weimobqa.com/qa-2TL/4022047364584/57051e41027b414b91a4dadfd3268d68.png",
"introduction": "霸王十代"
}
}
POST
Create Material ​
Create Genstore store assets using an external URL.
Access scope
Requires ANY of the following access scopes: write_materials
Endpoint
POST
/api/202412/material
Request Params
Response Data
curl -X POST \
https://{shop}.genmystore.com/api/202412/material" \
-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": "霸王十代",
"materialDetailExts": [
{
"value": "128",
"key": "with"
}
],
"url": "https://image-c-pioneer.weimobqa.com/qa-2TL/4022047364584/57051e41027b414b91a4dadfd3268d68.png",
"introduction": "霸王十代"
}
}
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.
Material 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
Create Material
Create Genstore store assets using an external URL.
Access scope
Requires ANY of the following access scopes: write_materials
Endpoint
POST
/api/202412/material
GET
search Material
Pop up material list
Access scope
Requires ANY of the following access scopes: read_materials
Endpoint
GET
/api/202412/materials