The issue of integrating shopify's product api interface

Recently, I was integrating the api interface of shopify. When synchronizing products to my shopify store, I encountered a problem where the products were successfully created, but the images were not displayed. I call interface is https://test-tangbuy.myshopify.com/admin/api/2025-01/products, The requested json data is {“product”:{“body_html”:“Warrior sneaker women’s shoes summer new lightweight soft sole shoes Women’s Student breathable mesh shock-absorbing running shoes”,“id”:“8906091200739”,“image”:{“metafields”:,“name”:“image1”,“position”:1,“src”:“https://img.alicdn.com/bao/uplo aded/i3/2219437505767/O1CN0108aq2I1sTLAiT8Xmx_!! 4611686018427387111-0-item_pic.jpg”,“variant_ids”:},“images”:[{“metafields”:,“name”:“image1”,“position”:1,“src”:“htt ps://img.alicdn.com/bao/uploaded/i3/2219437505767/O1CN0108aq2I1sTLAiT8Xmx_!! 4611686018427387111-0-item_pic.jpg”,“variant_ids”:},{“metafields”:,“name”:“image2”,“position”:2,“src”:“https://img.a licdn.com/bao/uploaded/i3/2219437505767/O1CN0108aq2I1sTLAiT8Xmx_!! 4611686018427387111-0-item_pic.jpg”,“variant_ids”:}],“metafields_global_description_tag”:“shoes”,“metafields_global_ti tle_tag”:“Warrior sneaker women’s shoes summer new lightweight soft sole shoes Women’s Student breathable mesh shock-absorbing running shoes”,“options”:[{“name”:“Color classification”,“position”:1,“values”:},{“name”:“Size”,“position”:2,“values”:}],“product_type”:“Shoes”,“published”:t Rue, “published_at” : “the 2025-07-02 T03:54:53. 209 z”, “sortedOptionNames” : [" Color classification",“Size”],“status”:“draft”,“tags”:[“test”],“title”:“Warrior sneaker women’s shoes summer new lightweight soft sole shoes Women’s Student breathable mesh shock-absorbing running Shoes, “” variants” : [{" available “: 99,” barcode “:” XYZ123456 ", “compare_at_price” : 99.9, “fulfillment_service” : “manual”, “grams” : 100,“inventory_management”:“shopify”,“inventory_policy”:“DENY”,“option1”:“Shoes”,“option2”:“Red”,“option3”:“Green”,“posi tion”:1,“price”:99.9,“requires_shipping”:false,“sku”:“tb12345678”,“taxable”:true}],“vendor”:“test “}}. It’s fine if the picture can be opened. But the interface data returned by the {” id “:” 8906103161059 “, “images” : , “options” : [{” id “:” 11295255658723 “, “name” : “Color classification”,“position”:1,“product_id”:“8906103161059”,“values”:[“Shoes”]},{“id”:“11295255691491”,“name”:“Size”,“posi tion”:2,“product_id”:“8906103161059”,“values”:[“Red”]}],“product_type”:””,“published”:false,“sortedOptionNames”:[“Color classification”,“Size”],“status”:“draft”,“tags”:[“test”],“title”:“Warrior sneaker women’s shoes summer new lightweight soft sole shoes Women’s Student breathable mesh shock-absorbing running shoes”,“variants”:[{“available”:0,“barcode”:“XYZ123456”,“fulfillment_service”:“manual”,“grams”:100,“id”:“46770213388515” ,“inventoryQuantity”:0,“inventory_item_id”:“48868087103715”,“inventory_policy”:“DENY”,“option1”:“Shoes”,“option2”:“Red”, “Position” : 1, “price” : 99.90, “product_id” : “8906103161059”, “requires_shipping” : true, “sku” : “tb12345678,” “taxable” : true, "titl In “e”:“Shoes/Red”}],“vendor”:"test "}, the images returned are all empty. The products I saw in the test store on shopify also had no images displayed. Is there any expert who can help solve this problem?

Hey,

You should move over to GraphQL API for products as REST is deprecated. Then try again with your product data
There is a guide here and lots of information in the forum.

1 Like

+1 to Jordans advice here