Hello Svein,
you're sending the following values
"postalCode": { "value": "9357"},
"county": {"value": "1029"}
in the JSON.
Default system defined, Post Code: "9357" is associated with City: "TENNEVOLL"
and CountyID: "1029" is associated with City: "LINDESNES" therefore, regardless of the disabled validation, it gets its default values for the Main & Invoice Address(Currently we're unable to override them via the Initial POST request. We need to send consecutive PUT request with Main & Invoice & Delivery etc. address fields to override them. This has been reported and will be reviewed by the development team) Related screen > Financials ERP UI - Postcodes <ScreenId=CS20401S> Post Code: "9357" CountyID: "1920" City: "TENNEVOLL"
CountyID: "1029" City: "LINDESNES"
So if you'd like to set the addresses (Main & Invoice) with City:"FINNSNES",
Possible workarounds,
A) Update the corresponding Postcodes' definitions
B) Use one of the defined Postcodes (9300,9305,9306,9307,9308,9309) with countyID: "1931" for the city: "FINNSNES"
C) Currently, we're unable to override them via the initial POST request. We need to send consecutive PUT request with Main & Invoice & Delivery etc. address fields to override them. POST the base Customer then send PUT request. PUT > https://integration.visma.net/API/controller/api/v1/customer/customerNumber
"mainAddress": {
"value": {
"addressLine1": {
"value": "Leiknesveien 68"
},
"addressLine2": {
"value": "adr2"
},
"addressLine3": {
"value": "adr3"
},
"postalCode": {
"value": "9357"
},
"city": {
"value": "Finnsnes"
},
"countryId": {
"value": "NO"
},
"county": {
"value": "1029"
}
}
},
"invoiceAddress": {
"value": {
"addressLine1": {
"value": "Leiknesveien 68"
},
"addressLine2": {
"value": "adr2"
},
"addressLine3": {
"value": "adr3"
},
"postalCode": {
"value": "9357"
},
"city": {
"value": "Finnsnes"
},
"countryId": {
"value": "NO"
},
"county": {
"value": "1029"
}
}
},
"deliveryAddress": {
"value": {
"addressLine1": {
"value": "Leiknesveien 68"
},
"addressLine2": {
"value": "adr2"
},
"addressLine3": {
"value": "adr3"
},
"postalCode": {
"value": "9357"
},
"city": {
"value": "Finnsnes"
},
"countryId": {
"value": "NO"
},
"county": {
"value": "1029"
}
}
}
}
... View more