Hello,
I am trying to create an Item Receipt, from a PO. The account has Inventory Status enabled, but no Lot #s, nor Bins nor Serial Numbers. I can do this if I do not specify the Inventory Details, but then NetSuite defaults the Status to "Good" and that's not what I need.
I am trying with this request:
POST
{{REST_SERVICES}}/record/v1/purchaseOrder/99999999/!transform/itemReceipt
{
"customForm": {"id": "162"},
"entity": {"id": "1187"},
"location": {"id": "2"},
"subsidiary": {"id": "2"},
"tranDate": "2023-02-28",
"item": {
"items": [
{
"orderline": 1,
"itemReceive": true,
"location": {"id": "2"},
"quantity": 6.0,
"inventoryDetail": {
"inventoryassignment": {
"items": [{"quantity": 6.0, "inventoryStatus": { "id": 1 }}]
},
"quantity": 6.0
}
}
]
}
}
When I submit that in Postman, I get:
Bad Request - Error400 - "detail": "Error while accessing a resource. The total inventory detail quantity must be 6.",
"o:errorPath": "item.items[?(@.orderLine==1)]",
"o:errorCode": "USER_ERROR"
Thanks for any ideas. I believe I have everything in the REST API spec, but maybe I'm still missing something?