Trying to insert a record into RMAHead using the rest API (v2).
Using Postman but receiving a runtime error (400 bad request, the request cannot be fulfilled due to bad syntax).
POST https://epicap.smt.com/EpicorERPTest/api/v2/odata/MYCOMPANY/Erp.BO.ProcSvc/RMAProcs&api-key=MYAPIKEY
Body (raw)
{“OpenRMA”: true,“Company”: “MYCOMPANY”,“RMANum”: 0,“CustNum”: 134600,“BTCustNum”: 134600}
Assuming the body isn’t formatted correctly though this is copied from Swagger which adds the RMA correctly.
Turning off custom errors gives this response.
A potentially dangerous Request.Path value was detected from the client (&).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (&).