Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

You can use the following endpoint to get product information from the PIM.

Method: GET

URL: https://pim-client.wizart.ai/api/customer/imports/{importId}

Headers: Accept: application/json, Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG…

importId’ is the ID of the import. You can get it using https://wizart.atlassian.net/wiki/spaces/WDP/pages/2176712714/Other+API+methods#Getting-all-imported-data, or you can check the name of your log file.

 Request example

CURL:

curl --location --request GET 'https://pim-client.wizart.ai/api/customer/imports/{importId}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG…'
 Response example
{
    "data": {
        "id": 8558,
        "path": null,
        "original_name": "Feb-03-2022-Wallpaper.csv",
        "status": "success",
        "status_message": "Total rows imported: 1109 out of 1109",
        "result": {
            "total_rows": "1109",
            "imported_rows": "1109"
        },
        "mapping_id": 1,
        "created_at": "2022-02-03 12:38:40",
        "updated_at": "2022-02-03 12:50:49",
        "timezone": "UTC"
    }
}

You can come across the following statuses/notifications:

Name of status

Description

'uploading_files'

Upload the files that you send to PIM.

'validating_csv'

Make sure your CSV has all required fields completed, as well as no changes in the structure of the original CSV template. If you get an error at this stage, please check File upload requirements [wall product types] or File upload requirements [flooring] .

'unpacking_archive'

Extract the uploaded images from the archive.

'checking_images'

Make sure your CSV is not missing any images from the ZIP archive.

'waiting_queue'

Waiting for free workers to start the import.

'importing_data'

The import is in progress.

'success'

You’ll get the ‘success’ notification if the import was finished without any errors and warnings, which means that all the products have been successfully imported.

'warning'

You’ll get the ‘warning’ notification if the import was finished without any errors but with some warnings. Your CSV file might contain some non-critical errors, for example, incorrect value type. Some of the products might have not been imported.

Please note that the products whose records contain errors will be skipped, but the import of the other products will be still in progress.

'failure'

If you see the the ‘failure’ notification, the import was finished with errors. Usually, it is a server error. All the products before this error occured will be successfully imported to the PIM, the other products will have to be re-imported.

Please note that the products with a fatal error will stop the import process; however, the products imported before the error occured, will be successfully imported.

  • No labels