shop.product.skus.add

Adds a new product SKU. Add all necessary SKU fields to a POST request which you need to save in the database. Available fields: product_id, id_1c, sku, sort, name, image_id, price, primary_price, purchase_price, compare_price, count, available, dimension_id, file_name, file_size, file_description, virtual.

Parameters

  • product_id GET

    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.