Skip to main content

Suppliers

Dimension type CRD

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 balancesheets is level 1.
sectionfinancialsRestricts to financial or time & expenses dimensions.
dimtypeCRDShows the supplier 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 supplier (CRD) dimension EXAMPLE.

<read>
<type>dimensions</type>
<office>001</office>
<dimtype>CRD</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>
<addresses></addresses>
<banks></banks>
<groups></groups>
<postingrules></postingrules>
<paymentconditions></paymentconditions>
<remittanceadvice></remittanceadvice>
</dimension>

Element name: dimension

NameDescription
dimensionContains information general to the dimension.
financialsContains the financial 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.
remittanceadviceContains the remittance advice settings 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 suppliers is CRD.
codecodeDimension code, must be compliant with the mask of the CRD 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 dimension 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>
<relationsreference>></relationsreference>
<vatcode></vatcode>
<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 suppliers is level 2.
Read-only attribute.
payavailabletrue
false
Determines if credit transfer is possible.
meansofpaymentnone
paymentfile
cheques
The option none is only allowed in case payavailable is set to false.
The options paymentfile or cheques are only allowed in case payavailable is set to true.
paycodestring(16)The code of the payment type in case credit transfer is possible. Only if meansofpayment is set to paymentfile.
ebillingNot is use. Fixed value false.
ebillmailNot in use.
substitutionlevelintegerLevel of the balancesheet account. Fixed value 1.
substitutewithstring(16)Default supplier balancesheet account.
relationsreferencestring(40)External supplier number.
vattypeNot in use.
vatcodestring(16)Default VAT code.
vatobligatoryNot in use.
performancetypeNot in use.
collectmandateNot in use.
collectionschemaNot in use.

Collect mandate information

XML structure

Not allowed in the XML request.

Element name: collectmandate

Property nameValueDescription
idNot in use.
signaturedateNot in use.
firstrundateNot in use.

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>
<wayofpayment></wayofpayment>
<payaddress></payaddress>
</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.
wayofpayment0
1
2

normal
cheque
basis
Only if payment type is BTL91.
payaddress1
2
3

bank payer
payer
beneficiary
Only if wayofpayment = cheque.

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

XML structure
<remittanceadvice>
<sendtype></sendtype>
<sendmail></sendmail>
</remittanceadvice>

Element name: remittanceadvice

Property nameValueDescription
sendtypeToFileManager
ByEmail
To file manager
By e-mail
sendmailstring(200)E-mail address to which the remittance advice will be sent.
Mandatory if sendtype = ByEmail.

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 conditions of a dimension.

Payment condition

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

Element name: paymentcondition

Property nameValueDescription
discountdaysintegerNumber of discount days.
discountpercentagedecimalDiscount percentage.

Example

<dimension>
<office>001</office>
<type>CRD</type>
<code>2000</code>
<name>Supplier 0</name>
<shortname></shortname>
<beginperiod>0</beginperiod>
<beginyear>0</beginyear>
<endperiod>0</endperiod>
<endyear>0</endyear>
<website></website>
<financials>
<matchtype>customersupplier</matchtype>
<accounttype>inherit</accounttype>
<subanalyse>false</subanalyse>
<duedays>1</duedays>
<level>2</level>
<payavailable>true</payavailable>
<meansofpayment>paymentfile</meansofpayment>
<paycode>SEPANLCT</paycode>
<substitutionlevel>1</substitutionlevel>
<substitutewith>1600</substitutewith>
<relationsreference>2000</relationsreference>
</financials>
<addresses>
<address id="1" type="invoice" default="true">
<name>Supplier 0</name>
<country>NL</country>
<city>Place 2000</city>
<postcode>2000</postcode>
<telephone>010-123452000</telephone>
<telefax>010-12342000</telefax>
<email>[email protected]</email>
<field1>supplier 2000</field1>
<field2>Streetname part 1 - 2000</field2>
<field3>Streetname part 2000</field3>
<field4></field4>
<field5></field5>
<field6></field6>
</address>
</addresses>
<banks>
<bank default="true" id="1">
<ascription>Supplier 2000</ascription>
<accountnumber>123456789</accountnumber>
<address>
<field2></field2>
<field3></field3>
</address>
<bankname></bankname>
<biccode>ABNANL2A</biccode>
<city>Place 2000</city>
<country>NL</country>
<iban>NL02ABNA0123456789</iban>
<natbiccode></natbiccode>
<postcode></postcode>
<state></state>
</bank>
</banks>
<groups>
<group>2REL</group>
</groups>
<postingrules>
<postingrule id="1" status="active">
<currency name="" shortname=""></currency>
<amount />
<description></description>
<lines />
</postingrule>
</postingrules>
<paymentconditions>
<paymentcondition>
<discountdays>5</discountdays>
<discountpercentage>2.75</discountpercentage>
</paymentcondition>
</paymentconditions>
</dimension>