I’m trying to create a customer using the Epicor REST API. I’m using the “Erp.BO.CustomerSvc” service to create the customer.
But i’m getting this error about “A valid Name is required”.
{
"HttpStatus": 400,
"ReasonPhrase": "REST API Exception",
"ErrorMessage": "A valid Name is required",
"ErrorType": "Ice.Common.BusinessObjectException",
"ErrorDetails": [
{
"Message": "A valid Name is required",
"Type": "Error",
"Table": "Customer",
"Program": "Epicor.RESTApi.Common.dll",
"Method": "ThrowUpdateExtException",
"ColumnNumber": 17,
"LineNumber": 27
}
],
}
Below is my payload.
{
"Company":"xxxx",
"CustID":"TEMP64401",
"Name": "MIKE GATTUSO",
"Address1":"26 gate, unit 4",
"BTAddress1":"26 gate, unit 4",
"EMailAddress":"tmillen@gattuso.com",
"BTPhoneNum":"61321282442",
"PhoneNum":"61323282442",
"TermsCode": "N0",
"Country": "CA",
"CountryNum": 35,
"City":"Nepean",
"State":"ON",
"Zip":"K2E 7T7"
}