Good day,
I want to create a customer through Acumatica Web service endpoint, and I get this error:"error": "Inserting 'Address' record raised at least one error. Please review the errors.; CountryID: 'Country' cannot be empty.",
Country is required to create the customer, so I have the field added in the web service endpoint and I have tried using CountryID or Country, but it gives the error.
Any suggestions?
{
"CustomerID":{"value":"TESTCUSTOMER"},
"CustomerName":{"value":"Test Customer"},
"SendDunningLettersbyEmail":{"value":false},
"SendInvoicesbyEmail":{"value":false},
"SendStatementsbyEmail":{"value":false},
"Address":{
"AddressLine1": {"value": "123 Main St"},
"City": {"value": "Random city"},
"Country": {"value": "US"},
"State": {"value": "CA"},
"PostalCode": {"value": "00000"}
},
"Attributes":
{
"AttributeID": {
"value": "ARCONTACT"
},
"Required": {
"value": true
},
"Value": {
"value": "Cash"
}
}
]
}