Hi NetSuite Community
I am working with the REST API to do a bunch of operations. One of the operations is to transform an Invoice to a CM and apply it, just like in the UI.
The system is transforming the Invoice to CM, however it leaves the CM opened, cause it cant apply it.
I looked at the doc from
The transform to CM and the creditMemo | Request body.
A suiteanswer exists 91284, but also it does not work.
POST
http://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/invoice/60/!transform/creditMemo
{
"toBeEmailed":false,
"apply":{
"items" :
[
{
"line": 0,
"amount":3.01,
"apply": true,
"applyDate": "2023-09-12",
"doc": {"id" : "60"}
}
]
}
}
The apply attribute throws and error and the lines are ignored
Am I missing something?