Versions Compared

Key

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

You can use the following endpoint to get product 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": "<string>",
        "result": "<string>",
        "mapping_id": "<string>",
        "created_at": "<string>",
        "updated_at": "Total rows imported: 1109 out of 1109"<string>",
        "timezone": "<string>"
      }
    },
    {
      "type": "<string>",
      "id": "<string>",
      "resultattributes": {
        "path": "<string>",
        "totaloriginal_rowsname": "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:

...