UpdateProductByCode

Updating a product with the given code.

  • Input data type => object
  • Output data type => object

Input parameters

  1. _session_hash (string)
  2. Required. Session identifier (received during login - doLogin)

  3. code (string)
  4. Required. Product code.

  5. name (string)
  6. Product name. Maximum length is 255 characters.

  7. price (double)
  8. Net price of the product. Decimal separator used is the dot "."

  9. price_brutto (double)
  10. Gross price of the product. Decimal separator used is the dot "."

  11. category_id (integer)
  12. Identifier of the product's default category. The category with the given id must exist in the store.

  13. producer_id (integer)
  14. Identifier of the product's producer. The producer with the given id must exist in the store.

  15. short_description (string)
  16. Short description of the product. Maximum length of the description depends on the used database, limitation of the TEXT field.

  17. description (string)
  18. Description of the product. Maximum length of the description depends on the used database, limitation of the TEXT field.

  19. active (integer)

    Specifies whether the product is active in the store.

    • 0 - inactive
    • 1 - active
  20. stock (string)
  21. Product stock.

  22. availability_id (integer)
  23. Specifies the availability name in case the stock state is not specified.

  24. man_code (string)
  25. Manufacturer code.

  26. old_price (double)
  27. Old net product price. The decimal separator used is the dot "."

  28. old_price_brutto (double)
  29. Old gross product price. The decimal separator used is the dot "."

  30. wholesale_a_netto (double)
  31. Wholesale A net product price. The decimal separator used is the dot "."

  32. wholesale_a_brutto (double)
  33. Wholesale A gross product price. The decimal separator used is the dot "."

  34. wholesale_b_netto (double)
  35. Wholesale B net product price. The decimal separator used is the dot "."

  36. wholesale_b_brutto (double)
  37. Wholesale B gross product price. The decimal separator used is the dot "."

  38. wholesale_c_netto (double)
  39. Wholesale C net product price. The decimal separator used is the dot "."

  40. wholesale_c_brutto (double)
  41. Wholesale C gross product price. The decimal separator used is the dot "."

  42. tax_id (integer)
  43. VAT rate identifier.

  44. product_options (string)
  45. Product options in the format of the import / export module.

  46. weight (double)
  47. Product weight.

  48. uom (string)
  49. Product unit of measure.

  50. is_stock_validated (integer)
  51. The Check Stock State option.

  52. points_value (integer)
  53. The Price in Points option.

  54. points_earn (integer)
  55. The Earned Points option.

  56. points_only (integer)
  57. The Product Only for Points option.

  58. url (string)
  59. Friendly link.

  60. width(double)

    Width.

  61. height(double)

    Height.

  62. depth(double)

    Depth.

Output Data

  1. _update (boolean)
  2. Update status.