Hello. I’m using the Acumatica API to update one field inside the Sales Order entity.
This field is ‘Terms’, a relationship field in which users can select a Credit Terms record, to set it as parent.
I was using my Default web service endpoint, version 23.200.001. I made a Query to a Sales Order to see if the ‘Terms’ field was returned, but it wasn’t returned.
So, I created a new Web Service Endpoint, extending the Default one. Then I went to the Sales Order entity and added a new entry for the Terms field, like in this picture:

Currently we have these Terms records available:

Now when I use my custom endpoint ‘SalesOrderTerms’, and execute a GET to query one Sales Order, the Terms are returned. All fine until here.
But, when I try to execute a PUT call to update the Terms field, the field is not updated. This is my call:
Method: PUT
URL: https://<host-name>/entity/SalesOrderTerms/23.200.001/SalesOrder?$filter=OrderNbr%20eq%20'013381'
Payload:
{
"Terms": {
"value": "NET20"
}
}
The field is not updated. I’ve checked from the Acumatica UI, and also the response that I receive in Postman. The field doesn’t change.
I’ve tried to update other fields in the Order using my endpoint, like a checkbox, and it updated.
I don’t know what I am missing. If someone has any advice, it’d be greatly appreciated. Thank you so much for reading.

