shop.product.skus.update

Updates information about a product SKU.

Parameters

  • id GET

    SKU id.

  • product_id POST

    Product id.

  • sku POST Optional

    SKU code.

  • sort POST Optional

    Sort order value.

  • name POST Optional

    SKU name.

  • image_id POST Optional

    Selected image id.

  • price POST Optional

    Price.

  • purchase_price POST Optional

    Purchase price.

  • compare_price POST Optional

    “Compare at” price.

  • count POST Optional

    Number of items available in stock.

  • available POST Optional

    Availability for ordering in storefront.

  • file_name POST Optional

    Attachment file name.

  • file_size POST Optional

    Attachment file size.

  • file_description POST Optional

    Attachment description.

  • virtual POST Optional

    Flag meaning whether sku is virtual, i.e. created dynamically from selected feature values. 0: non-virtual, 1: virtual.

  • 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.