Mhrlisamine en: Difference between revisions

From services.krediidiinfo.ee
Jump to navigation Jump to search
(Created page with "= Introduction = Payment defaults can be updated by means of Krediidiinfo’s credit management service. To do that, Sale Ledger statements should be regularly sent to credi...")
 
No edit summary
Line 6: Line 6:




NB! Pankade jaoks on loodud oma XML skeem: [http://www.krediidiinfo.ee/schemas/kh/bank_debtors_info_ver2.xsd http://www.krediidiinfo.ee/schemas/kh/debtors_info_ver2.xsd]
NB! A separate XML schema has been created for banks: [http://www.krediidiinfo.ee/schemas/kh/bank_debtors_info_ver2.xsd http://www.krediidiinfo.ee/schemas/kh/debtors_info_ver2.xsd]






= Krediidihalduse andmete sünkroniseerimise põhimõtted =
= Principles of synchronising the credit management data =




Krediidihaldusesse tuleb saata infot vaid maksmata arvete kohta. Maksmata arvete koondsaldo näitabki deebitori saldot ning arvetest saab järeldada võla vanust. Need ongi põhilised andmed millel põhineb krediidihaldus. Makstud arved saldod ei muuda ning seepärast ei oma need krediidihalduse jaoks tähtsust.
Only the information about outstanding payments needs to be sent to credit management. The overall receivables balance is what shows the debtor’s balance, and the debt age can be deduced from the payments. These are the key data on which credit management relies. The paid invoices do not affect the balance, so they are of no significance for credit management.


Depending on the type of credit management services the debtor data you send to credit management can be additionally restricted to the debt age. For example, if your agreement with credit management specifies that only the service of updating the information in the Credit register is used, you can only send credit management the information about the debtors whose payments have been outstanding for over 45 days. Credit management does not need the data about the debtors whose debt is not over 45 days old. As the data to be sent is restricted, the size of the file and the time it will take to import the data will be reduced.


Sõltuvalt krediidihalduse pakutavatest teenusest võib krediidihaldusesse saadetavaid deebitorite andmeid piirata veel lisaks võla vanusega. Näiteks kui on krediidihaldusega kokkulepe, et kasutatakse ainult maksehäireregistris andmete uuendamise teenust, siis võib krediidihaldusesse saata infot vaid nende deebitoride kohta, kellel on võlgnevused vanemad kui 45 päeva. Deebitorid, kelle võla vanus ei ole 45 päeva, ei ole krediidihaldusele vaja. Saadetavate andmete piiramisega väheneb saadetava faili maht ja andmete importimise kiirus.
When the data is imported to credit management, the balances of the debtor’s payments in the database are updated. The payments that were outstanding before the data import are considered to have been paid and the balance is set to zero if the input file contains no information about them. Thus you do not need to inform credit management that an invoice has been paid. You just need to export a statement about the current outstanding payments, including advance payments for the overall receivables balance to be calculated correctly. This approach is easier for the customer (who does not need to remember anything from the previous data export), and the latest input file always corrects all the data in credit management (the data do not go out of sync).  




Krediidihaldusesse importimisel uuendatakse andmebaasis deebitori arvete saldosid. Need arved, mis enne importi olid maksmata kuid mille kohta sisendfailis info puudus, loetakse makstuks ning saldo märgitakse nulliks. Seega ei ole vaja krediidihaldust teavitada sellest kui mõni arve tasuti. Lihtsalt tuleb teha väljavõte maksmata arvete (ka ettemaksudest, et koondsaldo arvutataks õigesti) hetkeseisust. Selline lähenemine on kliendi jaoks lihtsam (ei ole eelmisest ekspordist vaja midagi meeles pidada) ning viimane sisendfail fail parandab alati kõik andmed krediidihalduses õigeks (andmed ei lähe sünkroonist välja).
= The ''debtors_info'' format =




* [http://www.krediidiinfo.ee/schemas/kh/debtors_info.xsd XML schema]
* [[debtors_info_mhr_example.xml]] - sample debtor data file. <br/>
* [[Debtors info.png | debtors info.png]] - diagram of the structure of the XML file containing debtors’ data.


= Formaat ''debtors_info'' =


The ''/debtors/debtor/additional_data'' tag value with the ''additional_data_name="contract_no"'' attribute is used to add a payment default to the Credit register. The Credit Register also requires the number of the contract that was breached by the outstanding payment to be entered.


* [http://www.krediidiinfo.ee/schemas/kh/debtors_info.xsd XML skeem]
If the amounts are stated in euros, the sums referring to the period before the moment the euro came into use will be replaced by Estonian kroons at the rate of 15.6466 kroons to euro. If amounts are still sent in Estonian kroons after the change to the euro, kroons will be substituted with euros at the same rate, so the customer can choose when to start sending the data in euros.  
* [[debtors_info_mhr_example.xml]] - näidisfail deebitoride andmetega. <br/>
* [[Debtors info.png | debtors info.png]] - deebitoride andmete XML faili struktuuri diagramm.


= The ''bank_debtors_info_ver2'' format =


Märgendi ''/debtors/debtor/additional_data'' atribuudiga ''additional_data_name="contract_no"'' väärtust kasutatakse maksehäire lisamisel registrisse. Maksehäireregistri nõuete järgi tuleb maksehäire juurde lisada ka lepingu number, mille kohustuse mittetäitmisel maksehäire tekkis.


This format is meant to be used by banks to forward data to credit management. The difference between ''bank_debtors_info_ver2'' and ''debtors_info'' lies in the fact that the former is not based on invoices.


Kui summad on eurodes, siis teisendatakse need kuni eurole ülemineku hetkeni Eesti kroonideks kursiga 15.6466 krooni ühe euro eest. Kui pärast eurole üleminekut saadetakse ikkagi summasid eesti kroonides, siis teisendatakse sama kursiga kroonid euordeks. Seega võivad kliendid ise valida hetke, millal hakata andmeid saatma eurodes.
* [http://www.krediidiinfo.ee/schemas/kh/bank_debtors_info_ver2.xsd XML schema]
* [[bank_debtors_info_ver2_mhr_example.xml]] - sample debtor data file. <br/>
* [[Bank debtors info ver2.png | bank debtors info ver2.png]] - diagram of the structure of the XML file containing debtors’ data.  


= Formaat ''bank_debtors_info_ver2'' =
If the currency rate is not set in attributes of the ''/debtors/debtor/balances'' tag, the rate of 15.6466 kroons to euro is used and currency conversions are performed if necessary.  
 
 
Formaat on mõeldud pankadele andmete edastamiseks krediidihaldusesse. ''bank_debtors_info_ver2'' erineb ''debtors_info'' formaadist selle poolest, et ei ole arvepõhine.
 
* [http://www.krediidiinfo.ee/schemas/kh/bank_debtors_info_ver2.xsd XML skeem]
* [[bank_debtors_info_ver2_mhr_example.xml]] - näidisfail deebitoride andmetega. <br/>
* [[Bank debtors info ver2.png | bank debtors info ver2.png]] - deebitoride andmete XML faili struktuuri diagramm.
 
 
Kui märgnedi ''/debtors/debtor/balances'' atribuutides ei ole määratud valuuta kurssi, siis võetakse kursiks 15.6466 krooni ühe euro eest ning tehakse vajadusel valuuta teisendused.


= Failide edastamine =
= Failide edastamine =

Revision as of 16:13, 28 March 2013

Introduction

Payment defaults can be updated by means of Krediidiinfo’s credit management service. To do that, Sale Ledger statements should be regularly sent to credit management, and an individual agreement as to when they should be sent is made with each customer.

You can send the Sales Ledger to credit management as an XML file of the format specified by the following schema: http://www.krediidiinfo.ee/schemas/kh/debtors_info.xsd.


NB! A separate XML schema has been created for banks: http://www.krediidiinfo.ee/schemas/kh/debtors_info_ver2.xsd


Principles of synchronising the credit management data

Only the information about outstanding payments needs to be sent to credit management. The overall receivables balance is what shows the debtor’s balance, and the debt age can be deduced from the payments. These are the key data on which credit management relies. The paid invoices do not affect the balance, so they are of no significance for credit management.

Depending on the type of credit management services the debtor data you send to credit management can be additionally restricted to the debt age. For example, if your agreement with credit management specifies that only the service of updating the information in the Credit register is used, you can only send credit management the information about the debtors whose payments have been outstanding for over 45 days. Credit management does not need the data about the debtors whose debt is not over 45 days old. As the data to be sent is restricted, the size of the file and the time it will take to import the data will be reduced.

When the data is imported to credit management, the balances of the debtor’s payments in the database are updated. The payments that were outstanding before the data import are considered to have been paid and the balance is set to zero if the input file contains no information about them. Thus you do not need to inform credit management that an invoice has been paid. You just need to export a statement about the current outstanding payments, including advance payments for the overall receivables balance to be calculated correctly. This approach is easier for the customer (who does not need to remember anything from the previous data export), and the latest input file always corrects all the data in credit management (the data do not go out of sync).


The debtors_info format


The /debtors/debtor/additional_data tag value with the additional_data_name="contract_no" attribute is used to add a payment default to the Credit register. The Credit Register also requires the number of the contract that was breached by the outstanding payment to be entered.

If the amounts are stated in euros, the sums referring to the period before the moment the euro came into use will be replaced by Estonian kroons at the rate of 15.6466 kroons to euro. If amounts are still sent in Estonian kroons after the change to the euro, kroons will be substituted with euros at the same rate, so the customer can choose when to start sending the data in euros.

The bank_debtors_info_ver2 format

This format is meant to be used by banks to forward data to credit management. The difference between bank_debtors_info_ver2 and debtors_info lies in the fact that the former is not based on invoices.

If the currency rate is not set in attributes of the /debtors/debtor/balances tag, the rate of 15.6466 kroons to euro is used and currency conversions are performed if necessary.

Failide edastamine

Faile saab Krediidiinfole edastada KiDocExchange SOAP liidese kaudu.


Krediidiinfosse saadetava faili nimi peab olema kujul:

<initsiaalid>_krediidihaldus_<id>.<laiend>


  • <initsiaalid> - ettevõtte initsiaalid. Näiteks Krediidiinfo pohul ki.
  • <id> - faili saatja süsteemis unikaalne id, millega saab saadetud faili identifitseerida. Võib olla ka näiteks faili genereerimise aeg.
  • <laiend> - saadetud faili laiend. XML või ZIP. Saadetud faile on soovitav pakkida.


Näide 1: Krediidiinfo AS saadetav fail


ki_krediidihaldus_20100613.zip