Discussions
How to create Item Receipt via REST API with Inventory Details?
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:
Peter Ries
NetSuite Customer Success, Technical Services