put https://{accountName}.{environment}.com.br/api/catalog/pvt/stockkeepingunit/
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
astrue
without this conditions, it will return a400 - Bad Request
.
Attention!
The
PackagedWeightKg
andWeightKg
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:
Attribute | Type | Description |
---|---|---|
Id | integer | SKU ID |
ProductId | integer | Product ID |
IsActive | boolean | Shows if the SKU is active |
Name | string | SKU Name |
RefId | string | SKU RefId |
PackagedHeight | decimal | Packaged Height |
PackagedLength | decimal | Packaged Length |
PackagedWidth | decimal | Packaged Width |
PackagedWeightKg | decimal | Packaged Weight |
Height | decimal | SKU Height |
Length | decimal | SKU Length |
Width | decimal | SKU Width |
WeightKg | decimal | SKU Weight |
CubicWeight | decimal | Cubic Weight |
IsKit | boolean | Shows if the SKU is a Kit |
CreationDate | string | SKU Creation Date |
RewardValue | decimal | How much the client will get rewarded by buying the SKU |
EstimatedDateArrival | string | SKU Estimated Date Arrival |
ManufacturerCode | string | Manufacturer Code |
CommercialConditionId | integer | Commercial Condition ID |
MeasurementUnit | string | Measurement Unit |
UnitMultiplier | decimal | Multiplies the number of SKUs inserted on the cart |
ModalType | string | Defines deliver model |
KitItensSellApart | boolean | Defines 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:
Attribute | Type | Description |
---|---|---|
Id | integer | SKU ID |
ProductId | integer | Product ID |
IsActive | boolean | Shows if the SKU is active |
Name | string | SKU Name |
RefId | string | SKU RefId |
PackagedHeight | decimal | Packaged Height |
PackagedLength | decimal | Packaged Length |
PackagedWidth | decimal | Packaged Width |
PackagedWeightKg | decimal | Packaged Weight in Kilos |
Height | decimal | SKU Height |
Length | decimal | SKU Length |
Width | decimal | SKU Width |
WeightKg | decimal | SKU Weight in Kilos |
CubicWeight | decimal | Cubic Weight |
IsKit | boolean | Shows if the SKU is a Kit |
CreationDate | string | SKU Creation Date |
RewardValue | decimal | How much the client will get rewarded by buying the SKU |
EstimatedDateArrival | string | SKU Estimated Date Arrival |
ManufacturerCode | string | Manufacturer Code |
CommercialConditionId | integer | Commercial Condition ID |
MeasurementUnit | string | Measurement Unit |
UnitMultiplier | decimal | Multiplies the number of SKUs inserted on the cart |
ModalType | string | Defines deliver model |
KitItensSellApart | boolean | Defines if Kit components can be sold apart |
Videos | string | Videos 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": []
}