Question

[API] The issue with pushing payments to Acumatica

  • 22 March 2024
  • 4 replies
  • 37 views

Userlevel 1
Badge

I have encountered an issue where one of my clients cannot push payments to Acumatica.
The client uses the Undeposited Funds account.
 


Example of the request:
 

{

    "id": null,

    "rowNumber": null,

    "note": "TEST2024",

    "custom": null,

    "files": null,

    "ApplicationDate": {

        "value": "2024-03-06T14:33:28Z"

    },

    "LastModifiedDateTime": null,

    "ApplicationHistory": null,

    "AppliedToDocuments": null,

    "CardAccountNbr": null,

    "CashAccount": {

        "value": "1499"

    },

    "CreditCardProcessingInfo": null,

    "CurrencyID": {

        "value": "USD"

    },

    "CustomerID": {

        "value": "CUSTOM"

    },

    "Description": {

        "value": "TEST2024"

    },

    "DocumentsToApply": [],

    "Hold": null,

    "OrdersToApply": null,

    "PaymentAmount": {

        "value": 571.76

    },

    "PaymentMethod": {

        "value": "ACH HQ"

    },

    "PaymentRef": null,

    "ReferenceNbr": null,

    "Status": {

        "value": "03-2024"

    },

    "Type": {

        "value": "Payment"

    },

    "PostPeriod": {

        "value": "03-2024"

    }

}



 

Acumatica returns the error message:
 

Response: {"message":"An error has occurred.","exceptionMessage":"Payment.CardAccountNbr: 'Card/Account Nbr.' cannot be empty.\nPayment.PaymentRef: 'Payment Ref.' cannot be empty.\nInserting 'AR Payment' record raised at least one error. Please review the errors.",


However, we use the same request for our other clients and do not encounter any problems.

Could you explain what the reason is of this issue and how to fix it?
 


4 replies

Userlevel 7
Badge +4

Hi @Andrew1986,

Can you please share the Request URL you are using and the expected behavior? 

From the error message, you can notice the CardAccountNbr field cannot be null. Try using a valid input for the field. 

Userlevel 1
Badge

https://{{BASE_URL}}/AcumaticaERP/entity/YP/22.200.001/Payment

Userlevel 1
Badge

we use the same request for our other clients and do not encounter any problems.
So, once the client uses the undep fund account, we use the request mentioned above and it works.
But for this client it doesn’t work. I want to understand which settings can influence to this

Userlevel 7
Badge +4

Hi @Andrew1986,

The CardAccountNbr seems to be enabled when you don’t set the Proc. Center ID field.

For more details on how it work kindly refer the Summary Area section in https://help.acumatica.com/(W(10))/Help?ScreenId=ShowWiki&pageid=ae844bf4-1aef-42cd-9e2f-49b3ee1bc8d7

Specifically, check the Proc. Center ID, Proc. Center ID related sections.

Hope that helps.! Good Luck,

Reply


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