I am trying to create a payment and apply it to a select Invoice. When I attempt it, I get the error message “The system failed to commit the Adjustments row.” Would love it if someone could help point out what I’m missing here. Below is a slightly edited version of the JSON request body...
{
"ApplicationDate": {
"value": "2021-01-16T00:00:00.000+05:00"
},
"ApplicationHistory": t],
"AppliedToDocuments": {
"value": "73.07"
},
"CardAccountNbr": {
"value": "8888"
},
"CashAccount": {
"value": ""
},
"CreditCardProcessingInfo": I],
"CurrencyID": {
"value": "USD"
},
"CustomerID": {
"value": "7656TSGDB"
},
"Description": {
"value": ""
},
"DocumentsToApply": p
{
"AmountPaid": {
"value": "73.07"
},
"BalanceWriteOff": {
"value": null
},
"CustomerOrder": {
"value": ""
},
"Description": {
"value": ""
},
"DocType": {
"value": "Invoice"
},
"ReferenceNbr.": {
"value": "IN888888"
},
"WriteOffReasonCode": {
"value": ""
}
}
],
"Hold": {
"value": true
},
"OrdersToApply": p],
"PaymentAmount": {
"value": "73.07"
},
"PaymentMethod": {
"value": "CREDITCARD"
},
"PaymentRef": {
"value": "NNN-000001"
},
"ReferenceNbr.": {
"value": null
},
"Status": {
"value": "Closed"
},
"Type": {
"value": "Payment"
}
}
Thanks in advance!