Skip to main content
Solved

Troubleshooting Purchase Order Creation via Postman API Integration

  • Apr 22, 2024 5:42 AM UTC
  • 2 replies
  • 197 views
  • Translate All

I'm encountering an issue while attempting to create a purchase order through the API using Postman. Here's how I've proceeded: first, I generated an access token using Resource Owner Password Credentials. Then, I exchanged this token for a code to proceed with the purchase order creation. In the request body, I included a default raw dict that I found in the Acumatica discussion forum.

However, despite following these steps, I'm encountering an error. Could someone please offer guidance on how to resolve this issue? Any help or suggestions would be greatly appreciated.

This is how i have successfully generated the Access Token 
 

Now when i use this exchange token to create an PO in the acumatica using an API 
 

This is here i have put the access token and this is the API that i an using to create an PO in the acumatica. 
In the body i have used this raw dictionary that i found in the acumatica discussions form 
 

And in the headers i am using these 
 

After doing all this i am getting this error 
 

However, despite following these steps, I'm encountering an error. Could someone please offer guidance on how to resolve this issue? Any help or suggestions would be greatly appreciated.

Best answer by kpopova

Hi! You need to use PUT method instead of POST for creation of an entity. See an example here: https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=81e5ec25-09f7-421a-8f80-01b6b71d38c9

View original

2 replies

kpopova
Acumatica Employee
Forum|alt.badge.img+3
  • Acumatica Employee
  • Answer
  • Apr 22, 2024 7:17 AM UTC

Hi! You need to use PUT method instead of POST for creation of an entity. See an example here: https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=81e5ec25-09f7-421a-8f80-01b6b71d38c9

Translate

  • Author
  • Freshman I
  • Apr 22, 2024 9:29 AM UTC

Thank You @kpopova i was able to solve the issue : - )

Translate