Hi everyone,
I believe this is my first time posting on here. I did not see anything related to this question so I am hoping I have not repeated anything or placed this in the wrong category.
We are having a Rest API issue. For the most part it is going well. We are using Epicor version 10.2.500.0 and Rest API v2.
One of the Part Nums includes the ‘/’ character. So when we try to call an endpoint such as: -
https:/OUR-TEST-PORTAL/api/v2/odata/ad-001/Erp.BO.PartSvc/PartPlants('ad-001','HALE','SSSHOTM/D')
It errors
{
"HttpStatus": 400,
"ReasonPhrase": "REST API Exception",
"ErrorMessage": "OData path exception Bad Request - Error in query syntax. for the request https://OUR-TEST-PORTAL/api/v2/odata/ad-001/Erp.BO.PartSvc/PartPlants('ad-001','HALE','SSSHOTM/D')",
"ErrorType": "Epicor.RESTApi.ErrorHandling.ApiException"
}
In our programming code.. we have tried with PartNum ‘SSSHOTM/D’ as well as ‘SSSHOTM%2FD’ - we also tested this in the Epicor Rest Help Page - which appears to autocorrect it to ‘%2F’ as shown here:-
https://OUR-TEST-PORTAL/ERPPilotv2/api/v2/odata/ad-001/Erp.BO.PartSvc/PartPlants('ad-001','HALE','SSSHOTM%2FD')
How do we go about solving this? It’s not that we just want to get information - we may need to create, alter, or delete content through the Rest API which require part nums with these characters. Obvously these will fail.
Just to be clear - the endpoint we are using is set up correct as we tested with other partnums without those unique characters and they are returning successfully.
Any help/advice is apprecated!! Thank you.