Hi, i have used correct mapping but giving error , mapping is :
{
“name”: “testetInv ITEM”,
“type”: “simple”,
“description”: “tester data”,
“sku”: “ti001”,
“manage_stock”: true,
“stock_quantity”: 1.0,
“weight”: 2.0,
“short_description”: “tester data 2”,
“dimensions”: “{‘length’:’6′,’width’:’60’,’height’:’16’}”,
“regular_price”: 123.0
}
and used API call is :
postproduct = invokeurl
[
url :”https://demo.webeng.co/powabear/wp-json/wc/v3/products/”
type :POST
parameters:woomap
headers:head
];
error is :
{
“code”: “rest_invalid_param”,
“message”: “Invalid parameter(s): dimensions”,
“data”: {
“status”: 400,
“params”: {
“dimensions”: “dimensions is not of type object.”
},
“details”: {
“dimensions”: {
“code”: “rest_invalid_type”,
“message”: “dimensions is not of type object.”,
“data”: {
“param”: “dimensions”
}
}
}
}
}