Skip to main content

Customers

Dimension type DEB

Find

Web service type: Method driven

Resource location: /webservices/finder.asmx?wsdl

Method

public Message[] Search(
string type, // Finder type, See Finder type.
string pattern, // The search pattern. May contain wildcards * and ?
int field, // Fields to search through, see Search fields.
int firstRow, // First row to return, usefull for paging
int maxRows, // Maximum number of rows to return, usefull for paging
string[][] options, // See options below
out FinderData data) // Search results

Finder type

DIM

Search fields

Field IDFields searched
0code and name
1code
2name
3bank account number
4address fields

The method will return an array containing validation messages. If there are no errors, then the data parameter will contain the actual search result.

Options

OptionTypeDescription
office«office code»Restricts to the office.
levelenumeration: 1, 2, 3, 4, 5, 6Specifies the dimension level. Normally the level of customer dimensions is level 2.
sectionfinancialsRestricts to financial or time & expenses dimensions.
dimtypeDEBShows the customer dimensions.
modifiedsincestring yyyyMMddHHmmss or yyyyMMddRestricts to dimensions modified after, on or at the specified date (and time).
group«group code»Specifies the dimension group (wildcards allowed).
matchtypeenumeration: DEB, CRDThis option will show only the relations (dimension type: DEB and/or CRD).
includehidden0 (false) or 1 (true)If set to 1, the response will include a status column (active/hidden) and both active and hidden dimensions will be included.

Read

Web service type: XML Web Services

XML

Below example reads the settings of the customer (DEB) dimension EXAMPLE.

<read>
<type>dimensions</type>
<office>001</office>
<dimtype>DEB</dimtype>
<code>EXAMPLE</code>
</read>

Create/Update/Delete

If the dimension is not found it will be automatically created, otherwise it is updated. Set dimension/header/@status to deleted for deleting a dimension.

Root

XML structure
<dimension>
<financials></financials>
<creditmanagement></creditmanagement>
<invoicing></invoicing>
<addresses></addresses>
<banks></banks>
<groups></groups>
<postingrules></postingrules>
<paymentconditions></paymentconditions>
</dimension>

Element name: dimension

NameDescription
dimensionContains information general to the dimension.
financialsContains the financial settings of the dimension.
creditmanagementContains the credit management settings of the dimension.
invoicingContains the discount or premium settings of the dimension.
addressesContains the addresses of the dimension.
banksContains the bank accounts of the dimension.
groupsContains the dimension groups the dimension is part of.
postingrulesContains the posting rules of the dimension.
paymentconditionsContains the payment conditions of the dimension.

Dimension

XML structure
<dimension>
<office></office>
<type></type>
<code></code>
<name></name>
<shortname></shortname>
<beginperiod></beginperiod>
<beginyear></beginyear>
<endperiod></endperiod>
<endyear></endyear>
<website></website>
<sendtype></sendtype>
<sendmail></sendmail>
</dimension>

Element name: dimension

Property nameValueDescription
@statusactive
deleted
hide
For creating and updating status may be left empty. For deleting deleted should be used. In case a dimension that is used in a transaction is deleted, its status has been changed into hide. Hidden dimensions can be activated by using active.
officecodeOffice code.
typecodeDimension type. See Dimension type.
Dimension type of customers is DEB.
codecodeDimension code, must be compliant with the mask of the DEB Dimension type.
uidstringUnique identification of the dimension.
Read-only attribute.
namestring(80)Name of the dimension.
shortnamestring(20)Short name of the dimension.
inusetrue
false
Indicates whether the balancesheet is used in a financial transaction or not.
Read-only attribute.
behaviournormal
system
template
Determines the behaviour of dimensions.
Read-only attribute.
touchedintegerCount of the number of times the dimension settings are changed.
Read-only attribute.
beginperiodintegerDetermines together with beginyear the period from which the dimension may be used.
beginyearintegerDetermines together with beginperiod the period from which the dimension may be used.
endperiodintegerDetermines together with endyear the period till which the dimension may be used.
endyearintegerDetermines together with endperiod the period till which the dimension may be used.
websitestring(40)Website of the dimension.
cocnumberObsolete. Use instead field5 of the address line.
vatnumberObsolete. Use instead field4 of the address line.
editdimensionnameNot in use.

Financials

XML structure
<financials>
<matchtype></matchtype>
<accounttype></accounttype>
<subanalyse></subanalyse>
<duedays></duedays>
<payavailable></payavailable>
<meansofpayment></meansofpayment>
<paycode></paycode>
<ebilling></ebilling>
<ebillmail></ebillmail>
<substitutionlevel></substitutionlevel>
<substitutewith></substitutewith>
<vatcode></vatcode>
<collectmandate>
<...>
</collectmandate>
<collectionschema></collectionschema>
<childvalidations>
<...>
</childvalidations>
</financials>

Element name: financials

Property nameValueDescription
matchtypecodeFixed value customersupplier.
accounttypecodeFixed value inherit.
subanalysetrue
false
maybe
Fixed value false.
duedaysintegerThe number of due days.
levelintegerSpecifies the dimension level. Normally the level of customers is level 2.
Read-only attribute.
payavailabletrue
false
Determines if direct debit is possible.
meansofpaymentnone
paymentfile
The option none is only allowed in case payavailable is set to false.
The option paymentfile is only allowed in case payavailable is set to true.
paycodestring(16)The code of the payment type in case direct debit is possible.
ebillingtrue
false
Determines if the sales invoices will be sent electronically to the customer.
ebillmailstring(200)The mail address the electronic sales invoice is sent to.
substitutionlevelintegerLevel of the balancesheet account. Fixed value 1.
substitutewithstring(16)Default customer balancesheet account.
relationsreferenceNot in use.
vattypeNot in use.
vatcodestring(16)Default VAT code.
vatobligatoryNot in use.
performancetypeNot in use.
collectmandatenodeCollect mandate information.
Apply this information only when the customer invoices are collected by SEPA direct debit.
collectionschemacore
b2b
Collection schema information.
Apply this information only when the customer invoices are collected by SEPA direct debit.

Collect mandate information

XML structure
<collectmandate>
<id></id>
<signaturedate></signaturedate>
</collectmandate>

Element name: collectmandate

Property nameValueDescription
idstring(35)Mandate id which the debtor can collect with.
signaturedatedateDate on which the mandate is signed.

Credit management

XML structure
<creditmanagement>
<responsibleuser></responsibleuser>
<basecreditlimit></basecreditlimit>
<sendreminder></sendreminder>
<reminderemail></reminderemail>
<blocked></blocked>
<freetext1></freetext1>
<freetext2></freetext2>
<comment></comment>
</creditmanagement>

Element name: creditmanagement

Property nameValueDescription
responsibleuserstring(16)The credit manager.
basecreditlimitamountThe credit limit amount.
sendremindertrue
email
false
Determines if and how a customer will be reminded.
reminderemailstring(200)Mandatory if sendreminder is email.
blockedtrue
false
Indicates if related projects for this customer are blocked in time & expenses.
freetext1true
false
Right of use.
freetext2string(40)Segment code.
freetext3Not in use.
commentstring()Comment.

Discount / Premium

XML structure
<invoicing>
<discountarticle></discountarticle>
</invoicing>

Element name: invoicing

Property nameValueDescription
discountarticlestring(16)The discount or premium article.

Addresses

Element name: addresses

Property nameValueDescription
addressnodeSets the dimension addresses.

Address

XML structure
<addresses>
<address default="" type="">
<name></name>
<country></country>
<city></city>
<postcode></postcode>
<telephone></telephone>
<telefax></telefax>
<email></email>
<field1></field1>
<field2></field2>
<field3></field3>
<field4></field4>
<field5></field5>
<field6></field6>
</address>
</addresses>

Element name: address

Property nameValueDescription
@idintegerSequence number of the address line.
@typeinvoice
postal
contact
The type of the address.
@defaulttrue
false
Is this the default address, only one default address is possible.
namestring(80)Company name.
countrystring(2)Country code. The ISO country codes are used.
citystring(40)City.
postcodestring(16)Postcode.
telephonestring(25)Telephone number.
telefaxstring(25)Fax number.
emailstring(200)
contactObsolete
field1string(128)User defined fields, the labels are configured in the Dimension type.
field2string(128)User defined fields, the labels are configured in the Dimension type.
field3string(128)User defined fields, the labels are configured in the Dimension type.
field4string(128)User defined fields, the labels are configured in the Dimension type. Currently, field4 is reserved for VAT numbers. So only valid VAT numbers may be filled in.
field5string(128)User defined fields, the labels are configured in the Dimension type.
field6string(128)User defined fields, the labels are configured in the Dimension type.

Banks

XML structure
<banks>
<bank>
<ascription></ascription>
<accountnumber></accountnumber>
<address>
<...>
</address>
<bankname></bankname>
<biccode></biccode>
<city></city>
<country></country>
<iban></iban>
<natbiccode></natbiccode>
<postcode></postcode>
<state></state>
</bank>
</banks>

Element name: banks

Property nameValueDescription
@idintegerSequence number of the bank account line. When adding a new bank, do not supply the @id. When changing a bank account, supply the corresponding @id.
@defaulttrue
false
Is this the default bank account, only one default bank account is possible.
ascriptionstring(40)Account holder.
accountnumberstring(40)Account number.
addressnodeSets a part of the bank address.
banknamestring(40)Bank name.
biccodestring(16)BIC code.
citystring(40)City.
countrystring(2)Bank country code. The ISO country codes are used.
ibanstring(40)IBAN account number.
natbiccodestring(20)National bank code.
postcodestring(16)Postcode.
statestring(40)State.

Bank addresses

XML structure
<address>
<field2></field2>
<field3></field3>
</address>

Element name: address

Property nameValueDescription
field2string(128)Bank address.
field3string(128)Bank address number.

Remittance advice

Element name: remittanceadvice

Property nameValueDescription
sendtypeToFileManager
ByEmail
To file manager
By e-mail
sendmailstring(200)Mandatory if sendtype = ByEmail, remittance advice will be sent using this e-mail address.

Groups

XML structure
<groups>
<group></group>
</groups>

Element name: groups

Property nameValueDescription
groupstring(16)Sets the dimension group. See Dimension group.

Posting rules

Element name: postingrules

Property nameValueDescription
postingrulenodeSets the posting rules of a dimension.

Posting rule

XML structure
<postingrules>
<postingrule id="1" status="">
<currency></currency>
<amount></amount>
<description></description>
<lines>
<...>
</lines>
</postingrule>
</postingrules>

Element name: postingrule

Property nameValueDescription
@idintegerSequence number of the posting rule.
Fixed value 1.
@statusactive
deleted
For creating and updating active should be used. For deleting deleted should be used.
currencycodeCurrency.
amountamountAmount.
descriptionstring(40)Description.
linesnodeSets the posting rule lines.

Lines

XML structure
<lines>
<line>
<office></office>
<dimension1></dimension1>
<dimension2></dimension2>
<dimension3></dimension3>
<ratio></ratio>
<vatcode></vatcode>
<description></description>
</line>
</lines>

Element name: line

Property nameValueDescription
officestring(16)Destination company.
dimension1string(16)General ledger.
dimension2string(16)Cost center.
dimension3string(16)Project or asset.
ratiodecimalThe ratio of the posting rule line.
vatcodestring(16)VAT code.
descriptionstring(40)Description.

Payment conditions

XML structure
<paymentconditions>
<paymentcondition>
<...>
</paymentcondition>
</paymentconditions>

Element name: paymentconditions

Property nameValueDescription
paymentconditionnodeSets the payment condition of a dimension.

Payment condition

XML structure
<paymentcondition>
<discountdays></discountdays>
<discountpercentage></discountpercentage>
</paymentcondition>

Element name: paymentcondition

Property nameValueDescription
discountdaysintegerNumber of discount days.
discountpercentagedecimalDiscount percentage.

Example

<dimension>
<office>001</office>
<type>DEB</type>
<name>Customer 0</name>
<shortname></shortname>
<website></website>
<financials>
<matchtype>customersupplier</matchtype>
<duedays>30</duedays>
<payavailable>true</payavailable>
<meansofpayment>paymentfile</meansofpayment>
<paycode>SEPANLDD</paycode>
<collectionschema>core</collectionschema>
</financials>
<addresses>
<address id="1" type="invoice" default="true">
<name>Customer 0</name>
<country>NL</country>
<city>Place</city>
<postcode>1000</postcode>
<telephone>010-123452000</telephone>
<telefax>010-12342000</telefax>
<email>[email protected]</email>
<field1>Customer 1</field1>
<field2>Streetname part 1 - 1</field2>
<field3>Streetname part 1 - 2</field3>
<field4></field4>
<field5></field5>
<field6></field6>
</address>
</addresses>
<banks>
<bank default="true">
<ascription>Customer 1</ascription>
<accountnumber>123456789</accountnumber>
<address>
<field2></field2>
<field3></field3>
</address>
<bankname></bankname>
<biccode>ABNANL2A</biccode>
<city>Place</city>
<country>NL</country>
<iban>NL02ABNA0123456789</iban>
<natbiccode></natbiccode>
<postcode></postcode>
<state></state>
</bank>
</banks>
</dimension>