Gavin H
02/18/2025, 11:22 AM{
"entity": {
"id": "116"
},
"trandate": "02/17/2025",
"memo": "Shopify Refund for Order #2395",
"item": {
"items": [
{
"item": {
"id": "14607",
"rate": 1
},
"quantity": 1
}
]
}
}
but this always returns the error:
{
"type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
"title": "Bad Request",
"status": 400,
"o:errorDetails": [
{
"detail": "Error while accessing a resource. Please choose an item to add.",
"o:errorPath": "item.items[0]",
"o:errorCode": "USER_ERROR"
}
]
}
I am attempting to do a POST to <https://6370999-sb1.suitetalk.api.netsuite.com/services/rest/record/v1/salesorder/11885144/!transform/returnAuthorization>
Can anyone shed any light on this? Googl'ing doesn't really seem to give any insight, i've tried adding a line number but it returns the same error.simon
02/18/2025, 12:45 PM{
"item": {
"id": "14607"
},
"rate": 1,
"quantity": 1
}
Gavin H
02/18/2025, 1:15 PM{
"entity": {
"id": "116"
},
"item": {
"items": [
{
"item": {
"id": "14607"
},
"orderDoc": {
"id": "11885144",
"refName": "salesOrder"
},
"orderLine": 0,
"quantity": 1
}
]
},
"trandate": "02/17/2025"
}
And even this, just responds with
Response Body: {"type":"https://www.rfc-editor.org/rfc/rfc9110.html#section-15.6.1","title":"Internal Server Error","status":500,"o:errorDetails":[{"detail":"An unexpected error occurred. Error ID: m7ahawk71o6lld5cofafe","o:errorCode":"UNEXPECTED_ERROR"}]}I've added ?replace=item to the URL after !transform/returnAuthorization to no avail too. What i do find odd, is that the
orderLine
key, if i remove it, i get the same error as before, but with it, i get this 500 error, which albeit isn't progress it IS a different error.Gavin H
02/18/2025, 1:15 PMJay Flynn09
02/19/2025, 12:58 AMGavin H
02/19/2025, 11:28 AM