How to create an item using the rest webservices?
My header:
{{REST_SERVICES}}/record/v1/nonInventorySaleItem/eid:448
I am using this body:
{
“cost”: 10,
“itemType”: “inventory”,
“price”: 10,
“itemId”: “shampoo”,
“costUnits”: “400”,
“subsidiary”: {
“items”: [
{
“id”: 1,
“refName”: “AK”
}
]
},
“totalValue”: 200,
“taxSchedule”: {
“id”: “S1”
}
}
getting this response:
{
“type”:”https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1″,
“title”:”Bad Request”,
“status”:400,
“o:errorDetails”:[
{
“detail”:”Error while accessing a resource. Please enter value(s) for: Tax Schedule.”,
“o:errorCode”:”USER_ERROR”
}
]
}