Versions Compared

Key

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

Please note, that for For all API calls you have to , please use the access_token. From from API authentication and authorization

...

Checking available vendor

...

codes

You can use the following endpoint to check the existing available vendor codecodes.

Method: GET

URL: https://pim-client.wizart.ai/api/articles/available-vendor-codes?vendor_code={vendor_code}

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

Expand
titleExample of the request:Request example

CURL:

Code Block
curl --location --request GET 'https://pim-client.wizart.ai/api/articles/available-vendor-codes?vendor_code=165198' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG…'
Expand
titleExample of response:Response example
Code Block
{
    "data": {
        "vendor_codes": {
            "165198": true
        }
    }
}

...

Getting all imported data

You can use the following endpoint to get all of the user importsimported data.

Method: GET

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

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

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

Image Removed
Expand
titleExample of the request:
Request example
Image AddedImage Added

CURL:

Code Block
curl --location --request GET 'https://pim-client.wizart.ai/api/customerv2.1/imports' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <Bearer eyJ0eXAiOiJKV1QiLCJhbG…Token>'
codelanguage
Expand
title
Response example
json
Code Block
{
    "data": [

       {
            "id"type": 7486,
    "<string>",
       "pathid": null,
     "<string>",
      "original_nameattributes": "Test1.csv",
   {
        "statuspath": "success<string>",
  
         "statusoriginal_messagename": "Total rows imported: 125 out of 125<string>",

           "resultstatus": {
   "<string>",
            "totalstatus_rowsmessage": "125<string>",
   
            "imported_rows"result": "125"
            },
  <string>",
         "mapping_id": 545"<string>",
 
          "created_at": "2021-10-26 15:34:10<string>",
   
        "updated_at": "2021-10-26 15:35:43<string>",
   
        "timezone": "UTC<string>"
      }
 },    },
    {
     
      "idtype": 7487,
     "<string>",
      "pathid": null"<string>",
            "original_name"attributes": "Test2.csv",
{
           "statuspath": "success<string>",
   
        "statusoriginal_messagename": "Total rows imported: 125 out of 125<string>",
   
        "resultstatus": {
      "<string>",
         "totalstatus_rowsmessage": "135<string>",
      
         "imported_rowsresult": "135"
            },
   <string>",
        "mapping_id": 545"<string>",
            "created_at": "2021-10-26 15:37:01<string>",
            "updated_at": "2021-10-26 15:38:35<string>",

           "timezone": "UTC<string>"
 
      },
    }
   {
            "id": 7489,
            "path": null,
            "original_name": "Test3.csv",
            "status": "success",
            "status_message": "Total rows imported: 125 out of 125",
            "result": {
                "total_rows": "165",
                "imported_rows": "165"
            },
            "mapping_id": 545,
            "created_at": "2021-10-27 08:04:34",
            "updated_at": "2021-10-27 08:06:11",
            "timezone": "UTC"
        }]
}

Delete specific import by Id

You can use the following endpoint to get all imported data.

Method: DELETE

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

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

Headers: Accept: application/json

Expand
Image AddedImage Added

CURL:

Code Block
curl --location --request DELETE 'https://dev-pim-client.wizart.ai/api/v2.1/imports/<integer>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <Bearer Token>'
Expand
titleResponse example
Code Block
{
  "message": "<string>"
}