I am new to REST API and just using PostMan to do some basic GET and POST functions. I wanted to use a different set of credentials to create Sales Order so I created a new Epicor username with the same access as the “manager” user. However, when I try to use it, it gives out a 400 error.
“HttpStatus”: 400,
"ReasonPhrase": "REST API Exception",
"ErrorMessage": "FOB is required.\r\nTerms Code is required.",
"ErrorType": "Ice.Common.BusinessObjectException",
"ErrorDetails": [
{
"Message": "FOB is required.\r\nTerms Code is required.",
"Type": "Error",
"Table": "OrderHed",
"Program": "Epicor.RESTApi.dll",
"Method": "ThrowUpdateExtRESTApiException",
"ColumnNumber": 17,
"LineNumber": 184
}
Again, it works if I use the “manager” username. is there some area that I need to add the new user to?
I log in to E10 using the new user and create a new order. i only have to put the customer ID and the PO Num (required on our side) and then save the order with no issues. on this particular case, FOB is automatically filled be default from the customer record.
This is the PostMan Body:
{
“OpenOrder”: true,
“Company”: “TWG-OK”,
“OrderNum”: 0,
“PONum”: “TESTEC5”,
“ShipToNum”: “WEL1”,
“CustNum”: 581,
“PrcConNum”: 8,
“ShpConNum”: 8,
“WebOrder”: true,
“ShipOrderComplete”: false
}
If a user doesn’t have access to a customer’s territory, it will not retrieve the customer record. But now I’m remembering you saying that it worked in the UI so that’s probably not it.