Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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