I have an open payment for a Sales Order in Acumatica. Currently, Applied To Order is set to 0.00 for the payment attached to the order. I would like to change this value to the unpaid balance. I can easily do this in SOAP. For REST, I am using the following URL in Postman:
https://sandbox.com/AcumaticaERP/entity/Default/22.200.001/Payment
However, I am constantly getting the following error:
"Inserting 'AR Payment' record raised at least one error. Please review the errors.; ARAccountID: 'AR Account' cannot be empty.; ARSubID: 'AR Subaccount' cannot be empty."
Here’s is the body I’m passing:
{
"ReferenceNbr": { "value": "598089" },
"PaymentRef": {"value": "5006956/4/23/2024 8:18:10 AM" },
"AppliedToOrder": {"value": 200.00},
"CashAccount": {"value": "01010"},
"PaymentAmount": {"value": 200.00},
"PaymentMethod": {"value": "CASH"}
}