Versions Compared

Key

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

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

Method: GET

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

Authorization: Type: Bearer Token, Token: Bearer eyJ0eXAiOiJKV1QiLCJhbG…

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

Info

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.

Expand
titleRequest example
Image RemovedImage AddedImage Added

CURL:

Code Block
curl --location --request GET 'https://pim-client.wizart.ai/api/customerv2.1/imports/{importId}<integer>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG…<Bearer Token>'
Expand
titleResponse example
Code Block
{
 
  "data": [
    {
      "type": "<string>",
      "id": 8558,"<string>",
      "attributes": {
        "path": null"<string>",
        "original_name": "Feb-03-2022-Wallpaper.csv<string>",
        "status": "success<string>",
        "status_message": "Total rows imported: 1109 out of 1109"<string>",
        "result": "<string>",
        "mapping_id": "<string>",
        "created_at": "<string>",
        "updated_at": "<string>",
        "timezone": "<string>"
      }
    },
    {
      "type": "<string>",
      "id": "<string>",
      "resultattributes": {
        "path": "<string>",
  "total_rows      "original_name": "1109<string>",
        "status": "<string>",
        "importedstatus_rowsmessage": "1109<string>",
         }"result": "<string>",
        "mapping_id": 1"<string>",
        "created_at": "2022-02-03 12:38:40<string>",
        "updated_at": "2022-02-03 12:50:49<string>",
        "timezone": "UTC<string>"
      }
    }
  ]
}

You can come across the following statuses/notifications:

Name of statusStatus

Description

State

'uploading_files'

Upload the files that you send you’re sending to the PIM.

intermediate status, import in progress

'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] .

intermediate status, import in progress

'unpacking_archive'

Extract the uploaded images from the archive.

intermediate status, import in progress

'checking_images'

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

intermediate , in progress

'waiting_queue'

Waiting for free workers to start the import.

in progress

'importing_data'

The import is in progress.

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.

import finished

'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 not 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.

import finished

'failure'

If you see the the ‘failure’ notification, the import was finished with some errors. Usually, it is a server error. All the products before this error occured occurred 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, occurred will be successfully imported.

import finished