REST API - The property 'RMADisp1' does not exist on type 'Erp.RMADisp'

I am currently receiving the error “message”: “entity : The property ‘RMADisp1’ does not exist on type ‘Erp.RMADisp’. Make sure to only use property names that are defined by the type.\r\n”,
when trying to add a new RMA Disposition using Postman. (sending as JSON).

POST https://svr.sme.com/myinstance/api/v1/Erp.BO.RMADispSvc/RMADisps

Body
{“Company”: “MYCOMPANY”,
“RMANum”: 25,
“RMALine”: 1,
“RMAReceipt”: 1,
“RMADisp1”: 0,
“DispType”: “INS-REJ”,
“WareHouseCode”: “RUK”,
“BinNum”: “01”,
“InspectorID”: “ELS”,
“ReasonCode”: “NLR”,
“DispQty”: “1”,
“DispQtyUOM”: “EA”
}

When changing RMADisp1 to RMADisp, same error. When removing that line completely get the same error but with DispType.

Why do you think it should have a 1 at the end? And RMADisp needs to be unique for the RMA Num, Line, and Receipt. Are you trying to set data on an existing disposition, or trying to add a new one?

The swagger API documentation states RMADisp1. Trying to add a new one by sending the 0.

The error message doesn’t quite fit this idea, but I’ve found the REST API to be intolerant of missing fields. The example JSON in my help page has a lot more fields than you’ve shown us.

I think possibly we need to be invoking /GetNewRMADisp rather than /RMADisps.

1 Like

Just an update, successfully working using /GetNewRMADisp