```curl -X POST \ 'https://<NetSuite-REST-API...
# suitetalkapi
m
Copy code
curl -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
Copy code
{
  "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?
b
you cant use line id as the key while creating the item receipt
the item receipt hasnt been created yet, no line has an id
m
thanks @battk