Saleor Product Bulk upload script

1.8k views Asked by At

I am new to saleor and is creating a ecommerce platform. I have downloaded saleor and made it up and running. I have 1000+ products to add. To add manually is a big nightmare. Checking if there is any scripts or ways to bulk upload products along with details (like images etc) to the saleor

2

There are 2 answers

0
Pythonist On

Saleor has GraphQL API that can be used for that purpose.

Here's brief documentation: https://docs.getsaleor.com/en/latest/architecture/graphql.html

Queries you'll be most interested in lives in https://github.com/mirumee/saleor/blob/master/saleor/graphql/product/mutations/products.py

0
Tien Do On

You can use its GraphQL API, it requires about 5 queries to import a product to Saleor properly. There is no official guide for tasks like this but you can look at its API reference document, trying different mutations based on product structure. Once you get it done with GraphQL playground you can write a script to import all your products.