Manish Kumar Gupta
05/06/2024, 9:07 AMcurl -X POST \
'https://<NetSuite-REST-API-Base-URL>/record/v1/purchaseorder/<purchase_order_internal_id>/!transform/itemreceipt' \
-H 'Authorization: REDACTED' \
-H 'Content-Type: application/json' \
-d '{
"item": {
"items": [
{
"line": <line_index>,
"quantity": 1
}
]
}
}'
upon sending this curl i get this 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"
}
]
}
the line item is correct i am still getting this error, can anyone help me here?battk
05/06/2024, 10:49 AMbattk
05/06/2024, 10:50 AMManish Kumar Gupta
05/06/2024, 11:18 AM