Skip to main content

Product Update - updateProduct()

Product Update

The updateProduct method on the Horoz Logistics E-Export Integration platform should be used to update the details of products previously defined in the Horoz system for use in the order creation step. Important information about the updateProduct() method and considerations when querying road shipment cargo statuses in the Horoz system are listed below for the clients' reference.

  • updateProduct() is a RESTful web service method that accepts data in JSON format using the POST method.

  • When using the updateProduct() method to update product information in the Horoz system, the relevant product details should be passed in the method's body as JSON. The processKey information specific to the client should be passed as a parameter in the header. Requests sent using the updateProduct() method must be encoded as UTF-8 and transmitted to the Horoz Logistics E-Export Integration Web Service.

  • The updateProduct() method is specifically designed for correcting dimension information for product definitions entered incorrectly by the seller.

  • In addition to updating dimension information, the updateProduct() method can update the container definition and change the product type from NORMAL and/or BULK PRODUCT to COMPONENT PRODUCT. The reverse transformation is also possible.

  • The updateProduct() method is a web service method used to update the Horoz system's information for products that have already been registered in the system and will be included in orders.

  • The updateProduct() method accepts the following parameters as a POST request in JSON format: productId, productCode, productName, productGroupName, width, length, height, gross, netKg, desi, ean, logCode, packageType, stackStatus, containerDefination.

  • The response includes responseCode and responseMessage to notify the client about the success/failure of the update operation. Product updates cannot be performed for products already used in an order.


POST updateProduct()

Parameter Descriptions & Rules

The table below lists the input and output parameters for the updateProduct() operation along with their types and formats.

PARAMETERDESCRIPTIONDATA TYPELENGTHFIELD LOCATIONREQUIRMENT
processKeyprocessKey information defined for the clientstring100HeaderMandatory
productIdProduct Id informationInteger-inBody RequestMandatory
productCodeProduct code informationstring100inBody RequestMandatory
productNameProduct name informationstring500inBody RequestMandatory
productGroupNameProduct group code informationstring10inBody RequestMandatory
productDetailProduct details stringArray-inBody Request-------
widthWidth – is the field of the productDetail array.Float-inBody RequestMandatory
lengthLength – is the field of the productDetail array.Float-inBody RequestMandatory
heightHeight – is the field of the productDetail array.Float-inBody RequestMandatory
grossGross Weight – is the field of the productDetail array.Float-inBody RequestMandatory
netKgNet Weight – is the field of the productDetail array.Float-inBody RequestMandatory
desiDesi – is the field of the productDetail array.Float-inBody RequestMandatory
eanProduct EAN codestring13inBody RequestOptional
logCodeProduct log codestring7inBody RequestOptional
packageTypePackage typestring100inBody RequestMandatory
stackStatusStack StatusBoolean-inBody RequestMandatory
containerDefinationContainer definitionstring15inBody RequestMandatory

The expected enum values within the updateProduct() method are detailed below.

ENUM FIELDFIELD NAMEDESCRIPTION
productGroupNameProduct gorup nameThe productGroupName information, which obtained from the response returned from the listProductGroups method, and which is appropriate for the product definition, must be entered as correct and UPPERCASE.
packageTypePackage typePackage type may be declared by entering the appropriate value for the product definition among the values PALLET, CONTAINER, FILE, PARCEL.
containerDefinationContainer definitionContainer definition may be declared by entering the appropriate value for the product definition among the values NORMAL PRODUCT, BULK PRODUCT, COMPONENT PRODUCT.

Service Responses

You can access the successful/unsuccessful service responses here.