using the rest api to transform an RMA into an ite...
# ask-stanley-ai
m
using the rest api to transform an RMA into an item receipt, I am getting this error "Error while accessing a resource. The total inventory detail quantity must be 2". But the inventory detail IS 2. What is the deal?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like the error you're encountering is due to the existing inventory detail on the sales order when you're trying to do a transformation with the REST API. The API is expecting you to replace the old inventory details explicitly using the replace parameter in the API params. Here's a simplified explanation: When you're transforming a sales order (or any transformation) using the REST API, the inventory detail that already exists on the sales order is causing the error. You need to use the replace parameter in the API params to explicitly overwrite the old inventory details. ****** 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.862393916
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852731287
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848911107
Please provide your feedback on this answer.