Processing credit cards using REST API in 2021

  • 23 November 2021
  • 2 replies

Userlevel 2

I'm working to upgrade from 2019R1 to 2021R2.

Credit card processing is quite different in 21R2 than I'm familiar with. I need some direction for how to process Sales Orders with Credit Cards using the REST API in 21R2.

I'm currently using the REST API to insert Sales Orders with a credit card payment (authorized only, not captured) using the SalesOrder endpoint. As part of the API call to the SalesOrder endpoint, I only have to provide the PaymentMethod and external PreAuthorizationNbr. This corresponds to a tab in the SO called "Payment Settings". It works great, but no longer exists in 21R2. 

I understand that I now need to use the Sales Order -> Payments tab, but it's not clear to me how to associate the external pre-authorization with the Payment and Application using the REST API.

Can anyone point me to documentation or examples or using the REST API to insert Sales Orders with pre-authorized (or even captured) credit card transactions.

Should I use the REST API to build a Payment and Application first? Then process the Sales Order second? How do I get Acumatica to validate or import the externally processed pre-authorization using the REST API? I’m struggling to get anything to work when using the Sales Order endpoint only.

What is the best practice for processing and associating externally processed credit cards and payments using the REST API in 21R2?

- Ben


Best answer by smarenich 23 November 2021, 17:12

View original

2 replies

Userlevel 7
Badge +3

Hey @brothe58  please check this example.

I think it may help you.

Userlevel 2

Just what I was looking for. Thanks!


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