How to download catalog images

Hi,

I have implemented the catalog list api, in which I got the categories alone with the image_id. I want to know how I can download this image with this id. Is there any base url for that? How I can achieve this?

"category_data": {
        "name": "Electronics",
        "image_ids": [
          "L5K42AII2ZGLD37SQB63FIWC"
        ],
}

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Upload and Attach Images
Catalog API
Retrieve Catalog Objects

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

To download the image associated with a catalog object, you need to retrieve the CatalogImage object associated with the image_id. You can do this by calling the RetrieveCatalogObject endpoint of the Catalog API with the image_id as the object_id parameter. The response will include a CatalogImage object which contains an image_url field. This URL can be used to download the image.

This answer was reviewed by @Bryan-Square.