Batch Product creation

The Batch or Bulk processing on Shopware can be performed using the Sync APIs.

Shopware-6 documentation:

https://docs.shopware.com/en/shopware-platform-dev-en/admin-api-guide/sync-api

Strategy

The strategy to perform this operation is as follows,

The API call

/api/v2/_action/sync

The request body

{

    "write-product": {

        "entity": "product",

        "action": "upsert",

        "payload": [

            {

               "name": "Test Product 1",

                "type": "product",

                "price": [

                    {

                       "net": "100",

                       "gross": "100",

                        "linked": true,

                        "listPrice": {

                           "net": "100",

                           "gross": "100",

                            "linked": true

                        },

                        "currencyId": "b7d2554b0ce847cd82f3ac9bd1c0dfca"

                    }

                ],

                "stock": 0,

                "taxId": "1b7614e1e76c45bcaef55c8d7632fd69",

               "productNumber": "87111111119"

            },

                        {

               "name": "Test Product 2",

                "type": "product",

                "price": [

                    {

                       "net": "100",

                       "gross": "100",

                        "linked": true,

                        "listPrice": {

                           "net": "100",

                           "gross": "100",

                            "linked": true

                        },

                        "currencyId": "b7d2554b0ce847cd82f3ac9bd1c0dfca"

                    }

                ],

                "stock": 0,

                "taxId": "1b7614e1e76c45bcaef55c8d7632fd69",

               "productNumber": "871222222511"

            }

        ]

    }

}

Result

Alumio configuration guide coming soon...