Skip to main content
Solved

Customer Endpoint - POST via REST API

  • April 4, 2024
  • 1 reply
  • 142 views

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. 

1 reply

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • April 4, 2024

@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.