Error during the payment creation process via API

  • 10 February 2023
  • 1 reply

Userlevel 1

Hi Team,

Could you help with the following question?


We have an Invoice and Credit Memo.
In Acumatica I can apply a Credit Memo to the Invoice.

But via API, when I do the same, I receive the error message - {"message":"An error occurred during processing of the field Reference Nbr.: Reference Nbr. 'AR006176' cannot be found in the system."}

I attached the example with the endpoint and request. Maybe I use the wrong request?
Meanwhile, when I use the same request to pay the invoice by payment, it works.


Best answer by jinin 10 February 2023, 10:28

View original

1 reply

Userlevel 7
Badge +11

Hi @Andrew1986 

I think the applied invoice already associated with another payment. That is the reason you are getting the error. Please check with another invoice nbr.

Sample JSON

"ApplicationDate": {
"value": "2023-01-02"
"Branch": {
"value": "PRODWHOLE"
"CardAccountNbr": {},
"CashAccount": {
"value": "10200"
"CustomerID": {
"value": "AACUSTOMER"
"Description": {
"value": "w53"
"DocumentsToApply": [
"AmountPaid": {
"value": 100.0000
"DocType": {
"value": "Invoice"
"ReferenceNbr": {
"value": "AR009766"
"Hold": {
"value": false
"PaymentAmount": {
"value": 100.0000
"PaymentMethod": {
"value": "CHECK"
"PaymentRef": {
"value": "453245"
"Type": {
"value": "Payment"



About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved