There have been a few breaking changes to the sku model in the API, due to the addition of a few fields, and the change in requirement of some already-existing fields. You can find the full spec for the skus model in our API documentation here: https://docs.masonhub.co/api/v1#tag/Catalog/paths/~1skus/post
A complete list of the changes are as follows:
A full example of a POST for a new sku to https://sandbox.masonhub.co/account_name/api/v1/skus:
[
{
"customer_identifier": "pants4523",
"customer_bar_code": "2345687902",
"vendor_bar_code": "2345687902",
"vendor_style": "FP-pants",
"brand_name": "Freddie's Pants",
"product_name": "Fancy Pants",
"product_category": "Apparel",
"product_sub_category": "pants",
"product_description": "This is a pair of very, very fancy pants, with stripes.",
"vendor_brand_code": "FP",
"customer_brand_code": "Freddie's",
"customer_color": "Blk",
"vendor_color": "Black",
"size": "32/30",
"vendor_size": "32-30",
"ormd": false,
"lot": false,
"unit_cost": 80,
"price": 160,
"dim_weight": 0.75,
"dim_length": 4,
"dim_width": 2.2,
"dim_height": 0.5,
"dim_volume": 6,
"country_of_origin": "US",
"commodity_code": "6200"
}
]