In the return value of obtaining the store order interface, there is no image data related to the order product. An example of the product return value for the order I received : array(1) { [0]=> array(20) { [“fulfillable_quantity”]=> int(1) [“fulfillment_service”]=> string(6) “manual” [“fulfillment_status”]=> NULL [“grams”]=> int(0) [“id”]=> int(14262451863860) [“price”]=> string(6) “600.00” [“product_id”]=> int(8337101881652) [“quantity”]=> int(1) [“requires_shipping”]=> bool(true) [“sku”]=> string(0) “” [“title”]=> string(34) “The Collection Snowboard: Hydrogen” [“variant_id”]=> int(45351939998004) [“variant_title”]=> NULL [“vendor”]=> string(15) “Hydrogen Vendor” [“name”]=> string(34) “The Collection Snowboard: Hydrogen” [“gift_card”]=> bool(false) [“properties”]=> array(0) { } [“taxable”]=> bool(true) [“tax_lines”]=> array(0) { } [“total_discount”]=> string(4) “0.00” } } There are no images in this result set, so you need to obtain the corresponding images of the product through the interface/admin/api/2023-10/products/632910392/images/850703190.json, But the official interface has a limit of 40 calls per minute, so how can we avoid situations where there are too many requests based on this situation???
Topic summary
A developer is working with Shopify’s Orders API endpoint (/admin/api/2023-10/orders.json?status=any) and has encountered two main issues:
Missing Product Images:
- The order response returns product data but excludes image information
- To obtain product images, a separate API call to
/admin/api/2023-10/products/{product_id}/images.jsonis required - This creates additional API requests for each product in an order
Rate Limit Concerns:
- Shopify’s API has a limit of 40 calls per minute
- The developer is seeking strategies to avoid hitting rate limits when fetching product images for multiple orders
- No solutions have been provided yet in the thread
The discussion remains open with the developer requesting help from the community on handling these API limitations efficiently.
Does anyone have a solution to this request restriction issue? If so, please leave a message. Thank you very much.