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
400: Product failed validation
401: Access denied, Invalid Authentication
Success Response (202)
Section titled “Success Response (202)”{ "message": "Product import request accepted", "status": "ACCEPTED"}Error Response (400)
Section titled “Error Response (400)”{ "message": "Validation failed", "errors": [ "productId is required", "title cannot be empty" ]}