Hi,
I would like to change Opportunity status to Close as WON or Close as LOST via API:
I use PATCH:
...api/data/v9.1/opportunities(f58cca41-f506-ea11-a811-000d3a2c59aa)
with JSON:
{"statecode": 1, "statuscode": 3, "actualvalue": 0.0, "salesstage": 3, "actualvalue_base": 0.0, "actualclosedate": "2019-11-15"}
But still get:
{"error":{"code":"0x80040216","message":"This message can not be used to set the state of opportunity to won. In order to set state of opportunity to won, use the won message instead.","innererror":{"message":"This message can not be used to set the state of opportunity to won. In order to set state of opportunity to won, use the won message instead."
I have tried to find a solution on Internet but without any success.
Please, help :)