You are viewing an old version of this page. View the current version.
Compare with Current
View Version History
Version 1
Next »
Check exist vendor code
You can use the following endpoint to check the existing vendor code.
Method: GET
URL: https://pim-client.wizart.ai/api/articles/available-vendor-codes?vendor_code={vendor_code}
Headers: Accept: application/json, Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG…
Example of the request:
CURL:
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…'
Example of response:
{
"data": {
"vendor_codes": {
"165198": true
}
}
}
Get all of the imports
You can use the following endpoint to get all of the user imports.
Method: GET
URL: https://pim-client.wizart.ai/api/customer/imports
Headers: Accept: application/json, Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG…
Example of the request:
CURL:
curl --location --request GET 'https://pim-client.wizart.ai/api/customer/imports' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG…'
{
"data": [
{
"id": 7486,
"path": null,
"original_name": "Test1.csv",
"status": "success",
"status_message": "Total rows imported: 125 out of 125",
"result": {
"total_rows": "125",
"imported_rows": "125"
},
"mapping_id": 545,
"created_at": "2021-10-26 15:34:10",
"updated_at": "2021-10-26 15:35:43",
"timezone": "UTC"
},
{
"id": 7487,
"path": null,
"original_name": "Test2.csv",
"status": "success",
"status_message": "Total rows imported: 125 out of 125",
"result": {
"total_rows": "135",
"imported_rows": "135"
},
"mapping_id": 545,
"created_at": "2021-10-26 15:37:01",
"updated_at": "2021-10-26 15:38:35",
"timezone": "UTC"
},
{
"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"
}
}