Hello, we are trying to transform a sales order to a fulfillment item using Netsuite REST API. However the endpoint is returning an error event though our payload follows what is described in the Netsuite API browser
{
"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. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.",
"o:errorPath": "item",
"o:errorCode": "USER_ERROR"
}
]
}
Here's a sample payload
POST /record/v1/salesOrder/{SALES_ORDER_ID}/!transform/itemFulfillment
{
"cseg2": 1,
"item": {
"items": [
{
"location": { "id": "198" },
"orderLine": 105
},
{
"location": { "id": "198" },
"orderLine": 111
},
{
"location": { "id": "198" },
"orderLine": 117
},
{
"location": { "id": "198" },
"orderLine": 123
},
{
"location": { "id": "198" },
"orderLine": 129
},
{
"location": { "id": "198" },
"orderLine": 135
},
{
"location": { "id": "198" },
"orderLine": 136
},
{
"location": { "id": "198" },
"orderLine": 137
}
]
}
}
Can you please help identify what we are doing wrong?