Skip to main content

Validate Import Products

PUT /v1/product/import-validate

Validates product data before performing an import operation. This endpoint checks field mappings, validates categories and product references, and returns a preview of the operations that would be executed without committing any changes. It helps identify potential issues before running the actual import.

Headers

  • \~ - Custom header for ~

Request Body

[
{
"name": "product name",
"sku": "product-sku",
"products": [
{
"price": 100
}
],
"resell": false,
"subscription": true,
"properties": {
"length": "1m"
},
"categories": [
"category name"
],
"image": "http://app.zit.red/logo.png"
}
]

Response Example

{
"products": [
{
"op": {
"updateOne": {
"filter": {
"_id": "product-id-1"
},
"update": {
"categories": [
"category-id-1"
],
"status": {
"deleted": false
},
"integrations": []
}
}
},
"document": {
"id": "product-id-1",
"sku": "product-sku"
}
}
],
"properties": [],
"distributors": []
}