Reputation: 33
I'm battling with the item receipt on a Transfer Order. I've tried what is available in their documentation without any luck.
I've tried the following:
POST https://<accountID>/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}}/!transform/itemreceipt
With the following payload:
{
"item": {
"items": [
{
"orderLine": 4,
"itemReceive": true,
"quantity": 1
}
]
}
}
And I've tried the following payload with line + 1, as the line number doesn't always reflect the same line number on a transfer order:
{
"item": {
"items": [
{
"orderLine": 5,
"itemReceive": true,
"quantity": 1
}
]
}
}
I get the following 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. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.",
"o:errorPath": "item",
"o:errorCode": "USER_ERROR"
}
]
}
When I get the items on the transfer order:
GET https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}}/item
These are the items on that transfer order:
{
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}/item"
}
],
"items": [
{
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}/item/1"
}
]
},
{
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}/item/4"
}
]
},
{
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}/item/7"
}
]
},
{
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}/item/10"
}
]
},
{
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/transferorder/{{TRANSFER_ORDER_ID}/item/13"
}
]
}
],
"totalResults": 5
}
I'm trying to update line/item 4. I've tried including line 4 and 5 in my payload with the same error.
Any help will be greatly appreciated!
Upvotes: 0
Views: 37