Is there a way to authorize a return for 1 item fr...
# ask-stanley-ai
j
Is there a way to authorize a return for 1 item from an invoice that has many line items without needing to individually remove all lines? The link needs to be kept, so clearing all and adding the item would not work
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you can authorize a return for 1 item from an invoice that has many line items without needing to individually remove all lines. You can do this by creating a Return Authorization (RA) that includes only the item you want to return. Here is an example of how you can do this:
Copy code
-d 
{
  "externalId": "RMA-US_NO.7000948208",
  "location": 24,
  "item": {
    "items": [
      {
        "orderLine": 2,
        "item": {
          "externalId": "KSD-239558"
        },
        "quantity": 1,
        "amount": 3.99,
        "rate": 3.99
      }
    ]
  }
}
In the above example, the payload includes only the item that needs to be returned. However, it was mentioned that the initial call resulted in an RA that included all items, not just the one being returned. To resolve this, you need to add
&replace=item
to overwrite the item sublist. Please note that this process will not break the link between the order and the invoice. If you want to break the link, you might need to delete all sales invoice lines and re-add them. ****** 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.796177506
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.792920411
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.79285562
Please provide your feedback on this answer.