Using the rest api can you give me an example of h...
# ask-stanley-ai
m
Using the rest api can you give me an example of how to transform a returnAuthorization to an itemreceipt where I am receiving a kititem with two components. Please specify how to add the inventory details for the components of the kit item.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like you are trying to transform a returnAuthorization to an itemReceipt using the REST API and you want to include inventory details for the components of a kit item. Here is an example of how you might structure your payload:
Copy code
json
{
  "shipStatus": "B",
  "item": {
    "items": [
      {
        "orderLine": 1,
        "quantity": 1,
        "location": 10,
        "itemReceive": true,
        "inventoryDetail": {
          "inventoryAssignment": {
            "items": [
              {
                "issueInventoryNumber": 10189,
                "quantity": 1,
                "binNumber": 2211
              }
            ]
          },
          "quantity": 1
        }
      },
      {
        "orderLine": 2,
        "quantity": 1,
        "location": 10,
        "itemReceive": true,
        "inventoryDetail": {
          "inventoryAssignment": {
            "items": [
              {
                "issueInventoryNumber": 10190,
                "quantity": 1,
                "binNumber": 2212
              }
            ]
          },
          "quantity": 1
        }
      }
    ]
  }
}
In this example, the
orderLine
corresponds to the line number of the item in the returnAuthorization. The
quantity
is the quantity of the item you are receiving. The
location
is the location ID where the item is being received. The
itemReceive
should be set to true to indicate that the item is being received. The
inventoryDetail
object contains the details of the inventory for the item. The
inventoryAssignment
object contains an array of items, each with an
issueInventoryNumber
,
quantity
, and
binNumber
. The
issueInventoryNumber
is the internal ID of the inventory number. The
quantity
is the quantity of the item in the specific bin. The
binNumber
is the internal ID of the bin where the item is located. Please note that you need to include the
inventoryDetail
object for each component of the kit item. ****** 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.826792479
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824266076
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823991179
Please provide your feedback on this answer.