Skip to main content
Question

Integrate with external Api

  • September 1, 2025
  • 4 replies
  • 76 views

I am very new to Acumatica, requirement is to hit an 3rd Party Endpoint and save the data into the SalesOrder in Acumatica. here are the things I did: 
1. got the community edition https://acumatica-builds.s3.amazonaws.com/index.html?prefix=builds/25.1/25.100.0054/AcumaticaERP/ 
2. got the all the 3 test data setup in db 
3. able to login and play around 
4. while trying to login using the api.. (reference docs: Sign In to the Service)

curl --location 'http://localhost/AcumaticaERP/entity/auth/login' \
--header 'Content-Type: application/json' \
--header 'Cookie: CompanyID=EvU100; Locale=Culture=en-US&TimeZone=GMTM0500G; UserBranch=; requestid=EE8D2DC0BF1C7DA211F0873A7C4D3F9F; requeststat=+st:833+sc:~/entity/auth/login+start:638923313721775647+tg:' \
--data '{
"name": "admin",
"password": "admin",
"tenant": "EvU100",
"branch": "EVU100"
}'

I am getting the Invalid credentials
5. next wanted to the right documentation if possible to connect with external api, do i need to enable something first 

4 replies

DipakNilkanth
Pro III
Forum|alt.badge.img+13

Hi ​@rraichooti,

Are you able to log in with the same credentials in your instance from the UI (via the login page)?


 


  • Author
  • Freshman I
  • September 1, 2025

@DipakNilkanth  after multiple attempts I was able to see the good response “204”, but here is the payload 

{
"name": "admin",
"password": "admin",
"company": "EvT100"
}
  • as like webapi projects exposing the swagger do we have any swagger. 
  • after installing where can I find the appropriate source code for editing from visual studio

not sure why the help pages were showing to provide “Tenant”, “branch”

observation is that i got the cookie added with all the other details
 

curl --location 'http://localhost/AcumaticaERP/entity/auth/login' \
--header 'Content-Type: application/json' \
--header 'Cookie: .ASPXAUTH=B01056A6432348AC99DA4FC87795D2D353A8D27DABD331701687BE38999C1E1E81E9EB1F831F6CB75B66A5161FED364ACD32991363B61B75AE1480FEC8B84F38550CA5B8F776B6AABE39FDA3886E15F43E5DBBCEB1E744F09FF1EA345BC999E49DE64067F7A795E3FD406F465B68EBB5C910F8BBB9360501F2D2CC3E81128A14CAE63E44; ASP.NET_SessionId=1ubwp4klcdozem2g5ded0wis; CompanyID=EvU100; Locale=Culture=en-US&TimeZone=GMTM0500G; UserBranch=2; requestid=EE8D2DC0BF1C7DA211F0875BBFFB88BE; requeststat=+st:207+sc:~/entity/auth/login+start:638923456591191870+tg:' \
--data '{
"name": "admin",
"password": "admin",
"company": "EvU100"
}'

 


JSpikowski
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • September 1, 2025

With cURL you need to install the cookie jar emulator. I use libcurl and grab the Set Cookie headers returned in the Login call. I create a cookie string I pass to other calls in the Cookie header. Be aware that Acumatica has a bug sending duplicate Set Cookie headers.

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • September 30, 2025

Hi ​@rraichooti were you able to find a solution? Thank you!