ProductVariantSkuUpdateDTO Object

Overview

The REST API makes exclusive use of the ProductVariantSkuUpdateDTO object whenever updating the SKU of a product variant.  This article will help you to know the various members of this object.

Requirements

The following pre-requisites will be necessary to accomplish the goals of this article:

  • General understanding of REST and API’s
  • Understanding of C# and/or JavaScript

Getting Started

There are no tasks needed to get started with understanding this object. 

ProductVariantSkuUpdateDTO

The ProductVariantSkuUpdateDTO object will contain all of the details needed to update the SKU of a specific product variant in your Hotcakes Commerce store.

Members

The following table gives you details on the various members of the ProductVariantSkuUpdateDTO object.  The descriptions are based upon default functionality and the default Viewset included with Hotcakes.

Member Default Description
MatchingOptions List of VariantOptionDataDTO A collection of choices (options) and their ID's
ProductBvin (empty string) The unique ID or Bvin of an existing product.
Sku (empty string) The new SKU that you wish for the variant to have.

 

Example of ProductVariantSkuUpdateDTO

{
   "ProductBvin":"5d520070-17e5-4587-bddb-9935bc584b6c",
   "Sku":"SAMPLE005-01",
   "MatchingOptions":[
      {
         "ChoiceId":"696252e1-ef08-4eef-b83a-1e9d237db51d",
         "ChoiceItemId":"5A5C3C93-4CE6-46CB-A460-06FD6F8E03BE"
      },
      {
         "ChoiceId":"f5c6fbd8-65c6-4942-9173-7f1c2c64b8c1",
         "ChoiceItemId":"90C9CE3C-AD0E-4B8D-ABA9-3E825DB2DE93"
      }
   ]
}
Have more questions? Submit a request

Need More Help?

Do you need more assistance with this article? Please review your support options.