Hello ,
I am facing an issue with the NetSuite API when using the endpoint /record/v1/salesOrder/82404/!transform/returnAuthorization
. I am attempting to create a Return Authorization for a specific item with the following request body:
{
"itemList": {
"replaceAll": true,
"items": [
{
"item": {
"id": "19165" // The specific item ID
},
"quantity": 1 // The quantity to be returned
}
]
},
"memo": "Test",
"subsidiary": {
"id": "4"
},
"location": {
"id": "5"
}
}
The problem is that, despite specifying the itemList
in the body, the API includes all items from the Sales Order by default. This makes it impossible to create a Return Authorization for only the specified item and quantity.
Could guidance be provided on how to address this behavior or suggest alternative approaches?
Thank you!