Wondered if anybody has any experience trying to r...
# suitetalkapi
m
Wondered if anybody has any experience trying to receive inbound shipments via the API. Netsuite's documentation seems incomplete and/or contradictory on this feature (https://system.netsuite.com/help/helpcenter/en_US/APIs/REST_API_Browser/record/v1/2022.1/index.html#/definitions/receiveIn[…]-receiveItemsCollection and https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2022_1/script/record/receiveinboundshipment.html) with all fields apparently optional. I also can't see from the documentation how to set the serial numbers and bin locations. I have tried a really basic attempt with the minimum possible fields I could guess would be required from Postman but get an error about an invalid sublist or line each time. Rest API and Beta is enabled in our preferences.
the record browser is for suitescript
your invalid sublist operation is probably because you havent set the key field
a keyed sublist without a key field set is interpreted as adding a new line, which is invalid in the context of receiving against an inbound shipment
Working with Sublists and its 4 subsections go over how keyed and non keyed sublists work
keep in mind that receiveInboundShipment is a beta record, it just may not work in the first place