AddProduct

Adding a new product.

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

Input parameters

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

  3. name (string)
  4. Required. Product name. Maximum length is 255 characters.

  5. code (string)
  6. Required. Product code.

  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. Stock status of the product.

  22. availability_id (integer)
  23. Specify the availability name when the stock state is not specified.

  24. man_code (string)
  25. Manufacturer code.

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

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

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

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

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

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

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

  40. wholesale_c_brutto (double)
  41. Wholesale C gross price of the product. 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 from 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)
  61. Width.

  62. height(double)
  63. Height.

  64. depth(double)
  65. Depth.

Output Data

  1. id (integer)
  2. Identifier of the created product.