Import a Product
Imports a JSON representation of a product.
Direction WMS → WCS
HTTP Method POST
Path /api/product/import
Request Body
Section titled “Request Body”{ "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}Responses
Section titled “Responses”202: Product passed validation
{ "message": "Accepted"}400: Product failed validation
{ "message": "Bad Request", "errors": [ { "message": "Product field productId must contain at least 1 non-whitespace character", "path": "productId" }, { "message": "Product field title must contain at least 1 non-whitespace character", "path": "title" }, { "message": "The number of units must not be a negative value", "path": "productsPerSubbin" } ]}401: Access denied, Invalid Authentication
{ "message": "Unauthorized"}