Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code

Description

Common

0

Product added/updated

1

Item with article does not exist (obsolete code, no longer in use)

2

Product matching the parent article "parent_article" was not found

3

The product is now a separate parent variant

4

The product was set as a variant to another product

5

Category change error

For new products only

6

The "title" parameter is mandatory (only for new products)

7

One of the required fields is not set

8

Obsolete code. No longer used

9

The product was moved to another category

10

Error transferring a product to another category

11

The passed parameter is not found in the "Catalog" template

12

It is not possible to set the category of the product variant, because the parent product has a different category.

Product link

13

An entry with the link provided already exists

14

Error when creating/saving a link

Stock balances

15

Stock balances updated

16

Unable to update stock balances because they are disabled on the site

17

Data integrity error on stock balances in the warehouse

18

The warehouse for the stock balances was not found

19

Error when updating stock balances

Accessories and gifts

20

When adding an accessory/gift, there is no accessory/gift with the specified article

21

When adding an accessory/gift section, there is no category with the specified details

Gallery (for the variant, common and 360-degree view)

22

The gallery image has been uploaded

23

The Incorrect link to the image is incorrect

24

Error when writing an image to a file

25

Unknown error when loading an image

26

Error when loading an image

27

MIME type of the uploaded image does not correspond to the following: image/jpeg, image/gif, image/png

28

The gallery has been cleared.

This code is displayed if you pass the "removeAll":true parameter in the gallery, or if you upload new images and do not specify the "override" parameter or specify explicitly "override": true, which in turn also clears the image gallery.

...

Code Block
languagejs
{
    "status": "WARNING",
    "response": {
        "log": [
            {
                "article": "AAAA_TEST",
                "info": [
                    {
                        "code": 23,
                        "message": "НекорректнаяIncorrect link ссылкаto наthe изображениеimage \"sdgagadsgsadgsadgsadgsagsadg\""
                    },
                    {
                        "code": 0,
                        "message": "ТоварProduct обновленupdated"
                    },
                    {
                        "code": 13,
                        "message": "Запись с ссылкойAn entry with the link \/aaaa-test\/ ужеalready существуетexists"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image https:\/\/cdn.pixabay.com\/photo\/2013\/07\/12\/12\/58\/tv-test-pattern-146649_960_720.png успешноhas been загруженоuploaded"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image https:\/\/lh4.ggpht.com\/wKrDLLmmxjfRG2-E-k5L5BUuHWpCOe4lWRF7oVs1Gzdn5e5yvr8fj-ORTlBF43U47yI=w300 has успешноbeen загруженоuploaded"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image http:\/\/wp.patheos.com.s3.amazonaws.com\/blogs\/faithwalkers\/files\/2013\/03\/bigstock-Test-word-on-white-keyboard-27134336.jpg has успешноbeen загруженоuploaded"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image https:\/\/i.vimeocdn.com\/portrait\/58832_300x300 успешноhas been загруженоuploaded"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image http:\/\/www.testinteligencia.net\/image\/repository\/test1.jpg успешноhas been загруженоuploaded"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image https:\/\/i.ytimg.com\/vi\/yaqe1qesQ8c\/maxresdefault.jpg успешноhas been загруженоuploaded"
                    },
                    {
                        "code": 25,
                        "message": "ПроизошлаUnknown неизвестнаяerror ошибкаwhen приloading загрузкеan изображенияimage. Cannot read from non-readable stream"
                    }
                ]
            },
            {
                "article": "BBBB_TEST",
                "info": [
                    {
                        "code": 15,
                        "message": "ОстаткиStock товараbalances обновленыupdated"
                    },
                    {
                        "code": 0,
                        "message": "ТоварProduct добавленadded"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image https:\/\/cdn.pixabay.com\/photo\/2013\/07\/12\/12\/58\/tv-test-pattern-146649_960_720.png успешноhas been загруженоuploaded"
                    },
                    {
                        "code": 22,
                        "message": "ИзображениеThe image https:\/\/lh4.ggpht.com\/wKrDLLmmxjfRG2-E-k5L5BUuHWpCOe4lWRF7oVs1Gzdn5e5yvr8fj-ORTlBF43U47yI=w300 has успешноbeen загруженоuploaded"
                    }
                ]
            }
        ]
    }
}