RE: Hello everyone, I trying to transform Transfer Order to Item Receipt using Suitetalk API.
Using suitetalk API : https://{NS Accountid}suitetalk.api.netsuite.com/services/rest/record/v1/transferOrder/{to_ID}/!transform/itemReceipt
Got error
“o:errorDetails”: [
{
“detail”: “Error while accessing a resource. The total inventory detail quantity must be 1.”,
“o:errorPath”: “item.items[?(@.orderLine==3)]”,
“o:errorCode”: “USER_ERROR”
}
Also attached the request body below.
{
“createdFrom”: “8817***”,
“memo”: “testing TO,IR”,
“item”: {
“items”: [
{
“orderLine”: 3,
“itemreceive”: true,
“quantity”: 1.0,
“location”:6,
“inventoryDetail”: {
“inventoryAssignment”: {
“items”: [
{
“receiptInventoryNumber”: “230199”,
“quantity”: 1.0
}
]
}
}
}
]
}
}
There seems to be a few threads with people struggling to achieve this but this thread might be useful:
https://community.oracle.com/netsuite/english/discussion/4481903/how-to-create-item-receipt-via-rest-api-with-inventory-details