The unique image ID returned by calling the Create Product Image API is inconsistent with the product image unique ID returned by the Product Image Query API.
- create product a image return image Id = “32239313780912”
post : admin/api/2022-07/products/7195763310768/images.json
body : {
"image":{
"src":"http:/xxxx/productImg/1A7R4H0R0/origin/main/TM/1656897692661.jpg"
}
}
return :
{
"image": {
"id": 32239313780912,
"product_id": 7195763310768,
"position": 1,
"created_at": "2022-09-26T09:26:08+08:00",
"updated_at": "2022-09-26T09:26:08+08:00",
"alt": null,
"width": 1200,
"height": 1200,
"src": "https://cdn.shopify.com/s/files/1/0617/0099/7296/products/tmz_1__1656897692661.jpg?v=1664155568",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/32239313780912"
}
}
- Receive a list of all Product Images return image Id = “32239314305200”
get : admin/api/2022-07/products/7195763310768/images.json
return:
{
"images": [
{
"id": 32239314305200,
"product_id": 7195763310768,
"position": 1,
"created_at": "2022-09-26T09:26:25+08:00",
"updated_at": "2022-09-26T09:26:25+08:00",
"alt": "Burton Custom Freestyle 151 Burton",
"width": 1200,
"height": 1200,
"src": "https://cdn.shopify.com/s/files/1/0617/0099/7296/products/Burton-Custom-Freestyle-151-Burton-1664155584.jpg?v=1664155585",
"variant_ids": [],
"admin_graphql_api_id": "gid://shopify/ProductImage/32239314305200"
}
]
}