Rest api Json for item receipt
# ask-stanley-ai
v
Rest api Json for item receipt
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you are trying to create an item receipt using the REST API. Here's a general guideline on how to do it: 1. You need to transform a Purchase Order (PO) to an Item Receipt. In SuiteScript, this can be done using the
record.transform
method. However, in REST API, you need to use the
!transform
endpoint. 2. The
orderLine
field is used to specify which line items from the PO you want to receive. The
orderLine
starts from 1, not 0. 3. The
itemreceive
field should be set to
true
for the items you want to receive. 4. The
location
field is used to specify the location of the items. Here's a sample JSON body for the REST API request:
Copy code
json
{
    "item":{
       "items":[
          {
            "orderLine": 1,
            "itemreceive": true,
            "location": 6
          },
          {
            "orderLine": 2,
            "itemreceive": true,
            "location": 6
          }
       ]
    },
    "shipStatus": {
        "id": "C"
    }
}
Please replace the
orderLine
and
location
values with your actual data. The
shipStatus
field is optional and can be removed if not needed. Please note that the REST API is still in beta and the behavior might change in the future. ****** 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.840399206
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834497154
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833146393
Please provide your feedback on this answer.