I have a similar problem as Florian related to this, https://community.visma.com/t5/Forum-in-Developers-Visma-net/County-Number-problem/m-p/309847
When trying to post Customer with different country for main address and invoice address, this give no error in UI, only in API. 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.
The code can be like this:
{"name":{"value":"Hans Hansen"},"number":null,"status":{"value":"Active"},"mainAddress":{"value":{"addressLine1":{"value":"Fanahammeren 3"},"addressLine2":{"value":null},"countryId":{"value":"NO"},"postalCode":{"value":"5244"},"city":{"value":"Fana"},"county":null}},"invoiceAddress":{"value":{"addressLine1":{"value":"Cannenburgh 9"},"addressLine2":{"value":null},"countryId":{"value":"NL"},"postalCode":{"value":"1187 DC"},"city":{"value":"Amstelveen"},"county":null}},"deliveryAddress":{"value":{"addressLine1":{"value":"Fanahammeren 3"},"addressLine2":{"value":null},"countryId":{"value":"NO"},"postalCode":{"value":"5244"},"city":{"value":"Fana"},"county":null}},"mainContact":{"value":{"name":{"value":"Hans Hansen"},"email":{"value":"hans@gmail.com"},"phone1":{"value":null},"attention":null}},"invoiceContact":{"value":{"name":{"value":"Hans Hansen"},"email":{"value":"hans@gmail.com"},"phone1":{"value":"+31 6 10001100"},"attention":null}},"deliveryContact":{"value":{"name":{"value":"Hans Hansen"},"email":null,"phone1":null,"attention":null}},"customerClassId":{"value":"6"},"corporateId":null,"vatRegistrationId":null,"attributeLines":null,"creditTermsId":null} Attached the same posting manually in UI. Do you have any suggestion for solution?
... View more