How do i get lot numbers for assembly item via res...
# ask-stanley-ai
m
How do i get lot numbers for assembly item via rest api?
c
AI generated answer (using internal Slack threads):
To get lot numbers for an assembly item via REST API in NetSuite, you would need to make a GET request to the
record/v1/inventoryItem
endpoint. However, please note that the lot numbers are not directly associated with the assembly item itself, but with the inventory items that make up the assembly item. Here is a sample request:
Copy code
javascript
GET /suite/api/rest/record/v1/inventoryItem/{internalId}
Replace
{internalId}
with the internal ID of the assembly item you are interested in. The response will include details about the assembly item, including the components that make up the assembly. For each component, you would then need to make another GET request to the
record/v1/inventoryItem
endpoint, this time replacing
{internalId}
with the internal ID of the component. The response will include details about the inventory item, including the lot numbers if the item is lot numbered. Please note that this process assumes that you have the necessary permissions to access the
record/v1/inventoryItem
endpoint and that the assembly item and its components are set up correctly in NetSuite. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.867603958
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835774541
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824789524
Please provide your feedback on this answer.
Thank you for your feedback