to get a personalized navigation.
to get a personalized navigation.
Hi,
We have an issue when trying to create a customer with restriction for subaccounts enabled. We're trying to create a customer with a customer class that has a specificed sales account with restrictions enabled. Segment 1 is not allowed to be 0 for the account, but the customer class has a default value set in that segment. In the UI this works as expected.
We get the response:
"Error inserting the customer. Error: Inserting 'Location with address' record raised at least one error. Please review the errors.\r\nError: Kostnadsställe of Sales sub. do not exist."
If we disable the restriction group everything works as expected.
Here's the request we're trying to make:
POST /controller/api/v1/customer
Json:
{
"corporateId": {
"value": "189001019802"
},
"name": {
"value": "Anna Andersson"
},
"customerClassId": {
"value": "50"
},
"mainContact": {
"value": {
"name": {
"value": "Anna Andersson"
}
}
},
"mainAddress": {
"value": {
"addressLine1": {
"value": "Testgatan 1"
},
"postalCode": {
"value": "11111"
},
"city": {
"value": "Testort1"
}
}
}
}
ipp-company-id: 4933212
Thanks
Copyright © 2022 Visma.com. All rights reserved.