Skip to content

Import a Product

Imports a JSON representation of a product.

Direction WMS → WCS

HTTP Method POST

Path /api/product/import

{
"productId": "ABC123",
"title": "Premium Coffee Beans 1kg",
"barcodes": [
"1234567890123",
"9876543210987"
],
"imageUrl": "https://example.com/images/coffee-beans.jpg",
"consumable": true,
"productsPerSubbin": {
"1/1": 48,
"2/2": 24,
"2/4": 12
},
"batchManaged": true
}

202: Product passed validation

400: Product failed validation

401: Access denied, Invalid Authentication

{
"message": "Product import request accepted",
"status": "ACCEPTED"
}
{
"message": "Validation failed",
"errors": [
"productId is required",
"title cannot be empty"
]
}