shop.product.update

Adds a new product.

Parameters

  • id GET

    Product id.

  • name POST Optional

    Name.

  • summary POST Optional

    Brief description.

  • meta_title POST Optional

    TITLE element for product page in storefront.

  • meta_keywords POST Optional

    META keywords.

  • meta_description POST Optional

    META description.

  • description POST Optional

    Full description.

  • status POST Optional

    Publication status. 0: hidden, 1: published.

  • type_id POST Optional

    Product type id.

  • image_id POST Optional

    Default image id.

  • sku_id POST Optional

    Default SKU id.

  • ext POST Optional

    Default image file name extension.

  • url POST Optional

    URL of product page in storefront.

  • rating POST Optional

    Product rating.

  • price POST Optional

    Price.

  • compare_price POST Optional

    “Compare at” price.

  • currency POST Optional

    Product currency's ISO3 code.

  • min_price POST Optional

    Lowest SKU price of product.

  • max_price POST Optional

    Highest SKU price of product.

  • tax_id POST Optional

    Id of product's tax rule.

  • count POST Optional

    Number of items available in stock.

  • cross_selling POST Optional

    Recommended products selection mode (cross-selling). 0: disabled, 1: automatic selection, 2: manually selected recommended products.

  • upselling POST Optional

    Recommended products selection mode (upselling). 0: disabled, 1: automatic selection, 2: manually selected recommended products.

  • rating_count POST Optional

    Number of votes for product.

  • total_sales POST Optional

    Total cost of sold product items.

  • category_id POST Optional

    Main category id.

  • badge POST Optional

    Id of selected default badge or HTML code of custom badge.

  • sku_type POST Optional

    SKU type. 0: non-virtual, 1: virtual.

  • base_price_selectable POST Optional

    Base price for generating virtual SKUs based on selected feature values.

  • access_token GET

    API auth token obtained during the API authorization.

  • format GET Optional

    Sets response format. Available options: json (default), xml.

Error codes

  • invalid_request

    Invalid formed request. Additional information about the error is available in error_description parameter.

  • access_denied

    Access to the specified API method for the current token is denied.

  • invalid_method

    Unknown API method.