Update SKU

Updates an existing SKU

🚧

Warning!

You can't update an SKU as active if it doesn't have:

  • At least one SKU File associated with it.
  • At least one active component associated with it, if the SKU is set as a kit.

If you update an SKU with IsActive as true without this conditions, it will return a 400 - Bad Request.

🚧

Attention!

The PackagedWeightKg and WeightKg attributes are not exclusive in Kilos. It can be used in another weight unit. It is important to maintain consistency and use the same weight unit on both attributes.

Request body has the following properties:

AttributeTypeDescription
IdintegerSKU ID
ProductIdintegerProduct ID
IsActivebooleanShows if the SKU is active
NamestringSKU Name
RefIdstringSKU RefId
PackagedHeightdecimalPackaged Height
PackagedLengthdecimalPackaged Length
PackagedWidthdecimalPackaged Width
PackagedWeightKgdecimalPackaged Weight
HeightdecimalSKU Height
LengthdecimalSKU Length
WidthdecimalSKU Width
WeightKgdecimalSKU Weight
CubicWeightdecimalCubic Weight
IsKitbooleanShows if the SKU is a Kit
CreationDatestringSKU Creation Date
RewardValuedecimalHow much the client will get rewarded by buying the SKU
EstimatedDateArrivalstringSKU Estimated Date Arrival
ManufacturerCodestringManufacturer Code
CommercialConditionIdintegerCommercial Condition ID
MeasurementUnitstringMeasurement Unit
UnitMultiplierdecimalMultiplies the number of SKUs inserted on the cart
ModalTypestringDefines deliver model
KitItensSellApartbooleanDefines if Kit components can be sold apart

Request body example:

{
    "Id": 310118448,
   "ProductId": 310117069,
   "IsActive": true,
   "Name": "sku test",
   "RefId": "125478",
   "PackagedHeight": 10,
   "PackagedLength": 10,
   "PackagedWidth": 10,
   "PackagedWeightKg": 10,
   "Height": null,
   "Length": null,
   "Width": null,
   "WeightKg": null,
   "CubicWeight": 0.1667,
   "IsKit": false,
   "CreationDate": null,
   "RewardValue": null,
   "EstimatedDateArrival": null,
   "ManufacturerCode": "123",
   "CommercialConditionId": 1,
   "MeasurementUnit": "un",
   "UnitMultiplier": 1,
   "ModalType": null,
   "KitItensSellApart": false
}

Response body has the following properties:

AttributeTypeDescription
IdintegerSKU ID
ProductIdintegerProduct ID
IsActivebooleanShows if the SKU is active
NamestringSKU Name
RefIdstringSKU RefId
PackagedHeightdecimalPackaged Height
PackagedLengthdecimalPackaged Length
PackagedWidthdecimalPackaged Width
PackagedWeightKgdecimalPackaged Weight in Kilos
HeightdecimalSKU Height
LengthdecimalSKU Length
WidthdecimalSKU Width
WeightKgdecimalSKU Weight in Kilos
CubicWeightdecimalCubic Weight
IsKitbooleanShows if the SKU is a Kit
CreationDatestringSKU Creation Date
RewardValuedecimalHow much the client will get rewarded by buying the SKU
EstimatedDateArrivalstringSKU Estimated Date Arrival
ManufacturerCodestringManufacturer Code
CommercialConditionIdintegerCommercial Condition ID
MeasurementUnitstringMeasurement Unit
UnitMultiplierdecimalMultiplies the number of SKUs inserted on the cart
ModalTypestringDefines deliver model
KitItensSellApartbooleanDefines if Kit components can be sold apart
VideosstringVideos URLs

Response body example:

{
    "Id": 310118449,
    "ProductId": 1,
    "IsActive": true,
    "Name": "sku test",
    "RefId": "1254789",
    "PackagedHeight": 10.0,
    "PackagedLength": 10.0,
    "PackagedWidth": 10.0,
    "PackagedWeightKg": 10.0,
    "Height": null,
    "Length": null,
    "Width": null,
    "WeightKg": null,
    "CubicWeight": 0.1667,
    "IsKit": false,
    "CreationDate": "2020-04-22T12:12:47.5219561",
    "RewardValue": null,
    "EstimatedDateArrival": null,
    "ManufacturerCode": "123",
    "CommercialConditionId": 1,
    "MeasurementUnit": "un",
    "UnitMultiplier": 1.0,
    "ModalType": null,
    "KitItensSellApart": false,
    "Videos": []
}
Language
Authentication
URL
Click Try It! to start a request and see the response here!