We are transitioning our business from a sole proprietorship to a corporation and need to migrate our product catalog from our existing Square account to a new Square account.
While we understand that product and inventory data can be migrated via CSV, Square Support informed us that product images cannot be transferred in bulk between accounts and suggested contacting the API developer community.
We have a large number of products, many with multiple images.
Could you please advise:
Is it possible to bulk transfer all product images between two Square accounts using the Catalog API?
Can the images be automatically linked to the corresponding products in the new account while preserving their display order?
Is there an existing tool, recommended procedure, or migration support available for this process?
We would like to avoid manually downloading and re-uploading each image.
Indeed the catalog API should allow you to achieve this programatically with a little bit of script work. This page should help you get started. If the data import has already been done via CVS you’d just need to make sure to have a correct mapping for your script.
I did want to quickly check in with you if you’ve asked Square Support if it would be possible to transfer ownership of the account. This is done in certain use cases and might be easier than creating a new account and dealing with the migration.
Hope that helps, let me know if you have any other questions.
I have already contacted Square Support in Japan, and they informed me that a new Square account is required when transitioning from a sole proprietorship to a corporation.
Therefore, transferring ownership of the existing account does not appear to be an option in our case.
Regarding the Catalog API, I understand that migrating product images should be technically possible.
However, I don’t have much experience with API development, so I would really appreciate some additional guidance.
Is there an existing script, tool, or step-by-step guide that could help us retrieve all images from our old account and upload them to the correct products in our new account?
Our main priority is to transfer all product images, including multiple images per product, without having to manually upload them one by one.
If you still have the original images somewhere that will save you the step of having to download them all. Otherwise you’ll be scripting two things. First, something to automatically download all the images. The second to upload them.
Before you get started, I’d take some time reading through our developer API documentation. Having a contextual understanding of what the calls are (especially in Catalog API) will be helpful. I don’t know what your specific situation is but of the top of my head you’ll probably need to write a script that does something along the following lines:
Download:
Catalog Images objects are always attached to an object such as CatalogItem, CatalogVariation, etc… so you can use “List Catalog” to retrieve all the items (and then filter in your script) or “Search Catalog Items/Objects” to retrieve an already filtered set of items,
Every one of these Objects will have either an image_data field which holds the URL to the image directly, or an image_id with which you can now retrieve the image object with another search call (I’d recommend getting all these ID’s and then doing one big batch call). Create a list of all these URL’s
While you’re doing this, also save the mapping (so you know which image goes to which object)
Once you have this list or URL’s bulk download them all either programatically or using a 3rd party tool.
Upload:
programatically loop through your list of images and upload them using the create catalog image call.
(presuming you’ve already imported all the data via .csv) In this call immediately attach it to the correct Catalog item, or item variation by setting the object_id to the correct one (hopefully derivable from your mapping in step 3, you might need to do an intermediate look up to find out what the object ID in the new environment by matching on name from the old environment)
While making this I recommend using either our API explorer, or a 3rd party program such as Postman or Insomnia to test your API calls and make sure they’re responding they way you’re looking for.
While I can advice on how to implement, you will have to write the script and API calls for this yourself. If you don’t feel confident doing so I would advice acquiring the help of an freelancer or agency.