@Steinar Møller wrote:
The error can be "Error: County '1201' cannot be found in the system".
I have tried to post without county and with "county":null, both gives the error. Posting the same in UI also gives error, but in UI you may manually remove or change the value in the county field.
Endpoint returns "County '1201' cannot be found in the system" when county field used like
"county":null
If you'd like to skip assigning a value, you should remove the field from your payload. (Another null values as well)
Otherwise, please make sure the used CountyId exists in the Financials ERP.
Example: > Click to County selector to change the value , save and then select the requested county again save, to validate. PUT : Customer
{
"mainAddress": {
"value": {
"addressLine1": {
"value": "Fanahammeren 3"
},
"countryId": {
"value": "NO"
},
"postalCode": {
"value": "5244"
},
"city": {
"value": "Fana"
},
"county": {
"value": "1221"
}
}
}
}
... View more