I’ve created an RMA and I’m now trying to fill out the details header via the API. When I submit my payload in swagger, I’m getting ‘request is invalid’, which is very vague. I’ve done plenty of other post requests to different endpoints, so I’m not totally new to this. I’m at a loss though.
Here is my payload:
{
"Company": "SIE",
"OpenRMA": true,
"OpenDtl": true,
"RMANum": 5184,
"ReturnReasonCode": "repair",
"PartNum": "S-Evaluation",
"LineDesc": "640i",
"ReturnQty": 1,
"ConNum": 4,
"CustNum": 3842,
"ShipToCustNum": 3842,
"ECCComment": "This is a comment",
"ShipToCustID": "S10003819",
"ShipToName": "Test Name",
"CustomerContactEMailAddress": "jane@company.com"
}
And here is the response body:
{
"odata.error": {
"code": "",
"message": {
"lang": "en-US",
"value": "The request is invalid."
},
"innererror": {
"message": "entity : An error has occurred.\r\n",
"type": "",
"stacktrace": ""
}
}
}
I’ve tried deleting fields until it starts telling me a certain field is required. As far as I can tell, I have all the required fields.