post https://{accountName}.{environment}.com.br/api/catalog/pvt/stockkeepingunit
Creates a new SKU from scratch
Warning!
You can't create a new SKU as active. To set an SKU as active, it must 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 create an SKU with
IsActive
astrue
, 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 |
---|---|---|
ProductId | integer | Product ID |
IsActive | boolean | Shows if the SKU is active. To avoid receiving a 400 - Bad Request this attribute must be false |
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. The possible values are: "CHEMICALS" , "ELECTRONICS" , "FURNITURE" , "GLASS" , "LIQUID" , "MATTRESSES" , "REFRIGERATED" , "TIRES" , "WHITE_GOODS" and "FIREARMS" |
KitItensSellApart | boolean | Defines if Kit components can be sold apart |
Request body example:
{
"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 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. The possible values are: "CHEMICALS" , "ELECTRONICS" , "FURNITURE" , "GLASS" , "LIQUID" , "MATTRESSES" , "REFRIGERATED" , "TIRES" , "WHITE_GOODS" and "FIREARMS" |
KitItensSellApart | boolean | Defines if Kit components can be sold apart |
Videos | string | List of Videos URLs |
{
"Id":3,
"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
}