Skip to main content
Solved

Customer Endpoint - POST via REST API

  • Apr 4, 2024 6:21 AM UTC
  • 1 reply
  • 179 views
  • Translate All

Hii I'm getting an issue while trying to create a customer in Acumatica from Salesforce using an API POST request. To address a mapping problem in the default endpoint, I've created a Custom Endpoint with an action named "Save" specifically for this purpose. However, upon sending the request, I receive an error message: "The request is invalid," along with details stating that "The Entity field is required."

Could you please assist me in resolving this issue?

 

Best answer by Dmitrii Naumov

@sambhavjain You are not supposed to Map save action to an endpoint. To write (and save) data to Acumatica please use ‘PUT’ request type and remove the Save action mapping. 

View original

1 reply

Dmitrii Naumov
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • Answer
  • Apr 4, 2024 12:18 PM UTC

@sambhavjain You are not supposed to Map save action to an endpoint. To write (and save) data to Acumatica please use ‘PUT’ request type and remove the Save action mapping. 

Translate