My Products
Help
KonsultVn
CHAMPION ***

Error creating customer with restrictions active

by KonsultVn

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

 

4 REPLIES 4

by Yıldırım

Hello, this has now been escalated to the Development team for investigation. We'll keep you informed on any progress. 

by Yıldırım

Hello, could you please add 

"overrideWithClassValues": true,

to your payload and retry ? 

KonsultVn
CHAMPION ***

by KonsultVn

Hi, 

 

Unfortunately we still get the same error.

by Yıldırım

Hi, then please send approval for restoring Financials ERP company so that development team can check it out. <developersupport@visma.com>