to get a personalized navigation.
to get a personalized navigation.
When trying to create a customer with a customer class where ‘Send invoices by Email’ is default true, we are experiencing problems with creating the customer.
It’s a few customers that don’t have email, but we are unable to override the customer class default by setting ‘Send invoices by Email’ to false in the request for such cases.
We thought we might be able to handle it with ‘OverrideWithClassValues’ to false by default for our requests but doesn’t seem to resolve the issue.
As a secondary inquiry we are also having issues with setting the ‘CustomerLedgerSubaccount’ segments on creation.
Resonse:
{"message":"VismaId: 6fed418a-a0b3-47fd-887c-3769c51c1376. Error inserting the customer. Error: Inserting 'Customer' record raised at least one error. Please review the errors.\r\nThe email address must be specified if 'Send invoices by email' is activated.\r\n"}
Request:
{
"Number": {
"Value": "123456789"
},
"Name": {
"Value": "Test A/S"
},
"Status": {
"Value": "Active"
},
"OverrideWithClassValues": false,
"CustomerClassId": {
"Value": "7"
},
"CreditTermsId": {
"Value": "14"
},
"PrintInvoices": null,
"AcceptAutoInvoices": null,
"SendInvoicesByEmail": {
"Value": false
},
"PrintStatements": null,
"SendStatementsByEmail": null,
"PrintMultiCurrencyStatements": null,
"MainContact": {
"Value": {
"Name": null,
"Attention": {
"Value": null
},
"Email": {
"Value": null
},
"Web": null,
"Phone1": {
"Value": "12345678"
},
"Phone2": {
"Value": null
},
"Fax": null
}
},
"InvoiceContact": {
"Value": {
"Name": {
"Value": "Test A/S"
},
"Attention": {
"Value": null
},
"Email": {
"Value": null
},
"Web": null,
"Phone1": {
"Value": "12345678"
},
"Phone2": {
"Value": null
},
"Fax": {
"Value": null
}
}
},
"GlAccounts": {
"Value": {
"CustomerLedgerAccount": null,
"CustomerLedgerSubaccount": [
{
"SegmentId": 1,
"SegmentValue": "99"
},
{
"SegmentId": 2,
"SegmentValue": "000"
},
{
"SegmentId": 3,
"SegmentValue": "000"
},
{
"SegmentId": 4,
"SegmentValue": "00000000"
},
{
"SegmentId": 5,
"SegmentValue": "0000"
}
],
"SalesAccount": {
"Value": "1010"
}
}
},
"AttributeLines": [
{
"AttributeId": {
"Value": "AFDELING"
},
"AttributeValue": {
"Value": "99"
}
}
]
}
PS:
We also have a default AR Account on the customer class which we suspect is overriding our request segments.
Copyright © 2022 Visma.com. All rights reserved.