Skip to Main Content

API, CLI, SDK & Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Issue with Transform API: Return Authorization Includes All Sales Order Items

Firas AlhindeNov 19 2024

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!

Comments

Post Details

Added on Nov 19 2024
0 comments
71 views