<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="et">
	<id>https://kaust.excellent.ee/opendoc/index.php?action=history&amp;feed=atom&amp;title=Credit-invoice-API-ENG</id>
	<title>Credit-invoice-API-ENG - Redigeerimiste ajalugu</title>
	<link rel="self" type="application/atom+xml" href="https://kaust.excellent.ee/opendoc/index.php?action=history&amp;feed=atom&amp;title=Credit-invoice-API-ENG"/>
	<link rel="alternate" type="text/html" href="https://kaust.excellent.ee/opendoc/index.php?title=Credit-invoice-API-ENG&amp;action=history"/>
	<updated>2026-05-20T05:37:31Z</updated>
	<subtitle>Selle lehekülje redigeerimiste ajalugu</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://kaust.excellent.ee/opendoc/index.php?title=Credit-invoice-API-ENG&amp;diff=1603&amp;oldid=prev</id>
		<title>Kaupo – 28. juuni 2024, kell 08:44</title>
		<link rel="alternate" type="text/html" href="https://kaust.excellent.ee/opendoc/index.php?title=Credit-invoice-API-ENG&amp;diff=1603&amp;oldid=prev"/>
		<updated>2024-06-28T08:44:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;et&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←Vanem redaktsioon&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Redaktsioon: 28. juuni 2024, kell 08:44&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;2. rida:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;2. rida:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Payment term in invoice header is &amp;quot;K&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Payment term in invoice header is &amp;quot;K&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Row type &amp;quot;3&amp;quot; must be specified where original invoice number is saved&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Row type &amp;quot;3&amp;quot; must be specified where original invoice number is saved &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in field &amp;quot;OrdRow&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FOr &lt;/del&gt;example there is original sales invoice with no. 200005. Sum without VAT is 450.00 and VAT included 540.00&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For &lt;/ins&gt;example there is original sales invoice with no. 200005. Sum without VAT is 450.00 and VAT included 540.00&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Fail:Algne arve.png|raamita|465x465px]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Fail:Algne arve.png|raamita|465x465px]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key opendoc:diff::1.12:old-1525:rev-1603 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kaupo</name></author>
	</entry>
	<entry>
		<id>https://kaust.excellent.ee/opendoc/index.php?title=Credit-invoice-API-ENG&amp;diff=1525&amp;oldid=prev</id>
		<title>Kaupo: Uus lehekülg: 'When there is a need to post a Credit Invoice type invoice that cancels the invoice previously issued to the customer, there are two important points:  * Payment term in invoice header is &quot;K&quot; * Row type &quot;3&quot; must be specified where original invoice number is saved * other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned  FOr example there is original sales invoice with no. 200005. Sum with...'</title>
		<link rel="alternate" type="text/html" href="https://kaust.excellent.ee/opendoc/index.php?title=Credit-invoice-API-ENG&amp;diff=1525&amp;oldid=prev"/>
		<updated>2023-09-04T10:32:24Z</updated>

		<summary type="html">&lt;p&gt;Uus lehekülg: &amp;#039;When there is a need to post a Credit Invoice type invoice that cancels the invoice previously issued to the customer, there are two important points:  * Payment term in invoice header is &amp;quot;K&amp;quot; * Row type &amp;quot;3&amp;quot; must be specified where original invoice number is saved * other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned  FOr example there is original sales invoice with no. 200005. Sum with...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Uus lehekülg&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When there is a need to post a Credit Invoice type invoice that cancels the invoice previously issued to the customer, there are two important points:&lt;br /&gt;
&lt;br /&gt;
* Payment term in invoice header is &amp;quot;K&amp;quot;&lt;br /&gt;
* Row type &amp;quot;3&amp;quot; must be specified where original invoice number is saved&lt;br /&gt;
* other rows may be the same as in original invoice but also it can be partial - for example only one of the originally sold items are returned&lt;br /&gt;
&lt;br /&gt;
FOr example there is original sales invoice with no. 200005. Sum without VAT is 450.00 and VAT included 540.00&lt;br /&gt;
&lt;br /&gt;
[[Fail:Algne arve.png|raamita|465x465px]]&lt;br /&gt;
&lt;br /&gt;
To credit this invoice we must POST new invoice with correct cust code, pay deal and original invoice information in row. First row stp=3 and OrdRow=200005.&lt;br /&gt;
&lt;br /&gt;
Example:&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
set_field.InvDate=2021-10-01&amp;amp;&lt;br /&gt;
set_field.CustCode=5&amp;amp;&lt;br /&gt;
set_field.PayDeal=K&amp;amp;&lt;br /&gt;
set_row_field.0.stp=3&amp;amp;&lt;br /&gt;
set_row_field.0.OrdRow=200005&amp;amp;&lt;br /&gt;
set_row_field.1.ArtCode=1&amp;amp;&lt;br /&gt;
set_field.OKFlag=1&amp;amp; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Response in XML:&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version='1.0' encoding='UTF-8' standalone='yes'?&amp;gt;&lt;br /&gt;
&amp;lt;message  description=&amp;quot;Kreeditarve 200006&amp;quot;&amp;gt;&amp;lt;/message&amp;gt;&lt;br /&gt;
&amp;lt;data  register=&amp;quot;IVVc&amp;quot; sequence=&amp;quot;7625521&amp;quot; url=&amp;quot;/api/1/IVVc/200007&amp;quot; systemversion=&amp;quot;8.5.39.314&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;IVVc&amp;gt;&lt;br /&gt;
        &amp;lt;SerNr&amp;gt;200007&amp;lt;/SerNr&amp;gt;&lt;br /&gt;
        &amp;lt;InvDate&amp;gt;2021-10-01&amp;lt;/InvDate&amp;gt;&lt;br /&gt;
        &amp;lt;CustCode&amp;gt;5&amp;lt;/CustCode&amp;gt;&lt;br /&gt;
        &amp;lt;Math&amp;gt;&amp;lt;/Math&amp;gt;&lt;br /&gt;
        &amp;lt;PayDate&amp;gt;2021-10-01&amp;lt;/PayDate&amp;gt;&lt;br /&gt;
        &amp;lt;Addr0&amp;gt;Näidis OÜ&amp;lt;/Addr0&amp;gt;&lt;br /&gt;
        &amp;lt;Addr1&amp;gt;Rõõmu puiestee 123&amp;lt;/Addr1&amp;gt;&lt;br /&gt;
        &amp;lt;Addr2&amp;gt;Päikese, 11212&amp;lt;/Addr2&amp;gt;&lt;br /&gt;
        &amp;lt;PayDeal&amp;gt;K&amp;lt;/PayDeal&amp;gt;&lt;br /&gt;
        &amp;lt;OKFlag&amp;gt;1&amp;lt;/OKFlag&amp;gt;&lt;br /&gt;
        &amp;lt;pdays&amp;gt;0&amp;lt;/pdays&amp;gt;&lt;br /&gt;
        &amp;lt;pdvrebt&amp;gt;0&amp;lt;/pdvrebt&amp;gt;&lt;br /&gt;
        &amp;lt;pdrdays&amp;gt;0&amp;lt;/pdrdays&amp;gt;&lt;br /&gt;
        &amp;lt;InvType&amp;gt;3&amp;lt;/InvType&amp;gt;&lt;br /&gt;
        &amp;lt;ARAcc&amp;gt;1210&amp;lt;/ARAcc&amp;gt;&lt;br /&gt;
        &amp;lt;CredInv&amp;gt;200005&amp;lt;/CredInv&amp;gt;&lt;br /&gt;
        &amp;lt;CredMark&amp;gt;K&amp;lt;/CredMark&amp;gt;&lt;br /&gt;
        &amp;lt;SalesMan&amp;gt;KAUPO&amp;lt;/SalesMan&amp;gt;&lt;br /&gt;
        &amp;lt;TransDate&amp;gt;2021-10-01&amp;lt;/TransDate&amp;gt;&lt;br /&gt;
        &amp;lt;CurncyCode&amp;gt;EUR&amp;lt;/CurncyCode&amp;gt;&lt;br /&gt;
        &amp;lt;Sign&amp;gt;KRISTIINA&amp;lt;/Sign&amp;gt;&lt;br /&gt;
        &amp;lt;FrGP&amp;gt;0.00&amp;lt;/FrGP&amp;gt;&lt;br /&gt;
        &amp;lt;Sum0&amp;gt;0.00&amp;lt;/Sum0&amp;gt;&lt;br /&gt;
        &amp;lt;Sum1&amp;gt;450.00&amp;lt;/Sum1&amp;gt;&lt;br /&gt;
        &amp;lt;Sum3&amp;gt;90.00&amp;lt;/Sum3&amp;gt;&lt;br /&gt;
        &amp;lt;Sum4&amp;gt;540.00&amp;lt;/Sum4&amp;gt;&lt;br /&gt;
        &amp;lt;VATNr&amp;gt;EE233323233&amp;lt;/VATNr&amp;gt;&lt;br /&gt;
        &amp;lt;Location&amp;gt;PL&amp;lt;/Location&amp;gt;&lt;br /&gt;
        &amp;lt;CalcFinRef&amp;gt;20000 70000 00052&amp;lt;/CalcFinRef&amp;gt;&lt;br /&gt;
        &amp;lt;BaseSum4&amp;gt;540.00&amp;lt;/BaseSum4&amp;gt;&lt;br /&gt;
        &amp;lt;TotGP&amp;gt;450.00&amp;lt;/TotGP&amp;gt;&lt;br /&gt;
        &amp;lt;RetValue&amp;gt;-540.00&amp;lt;/RetValue&amp;gt;&lt;br /&gt;
        &amp;lt;TotQty&amp;gt;1&amp;lt;/TotQty&amp;gt;&lt;br /&gt;
        &amp;lt;SumIncCom&amp;gt;540.00&amp;lt;/SumIncCom&amp;gt;&lt;br /&gt;
        &amp;lt;RetnValue&amp;gt;-540.00&amp;lt;/RetnValue&amp;gt;&lt;br /&gt;
        &amp;lt;TransTime&amp;gt;14:17:47&amp;lt;/TransTime&amp;gt;&lt;br /&gt;
        &amp;lt;ServiceDelDate&amp;gt;2021-10-01&amp;lt;/ServiceDelDate&amp;gt;&lt;br /&gt;
        &amp;lt;RefStr&amp;gt;2000079&amp;lt;/RefStr&amp;gt;&lt;br /&gt;
        &amp;lt;NoTAXonVAT&amp;gt;1&amp;lt;/NoTAXonVAT&amp;gt;&lt;br /&gt;
        &amp;lt;TotalwoTAX&amp;gt;1&amp;lt;/TotalwoTAX&amp;gt;&lt;br /&gt;
        &amp;lt;RegDate&amp;gt;2021-10-01&amp;lt;/RegDate&amp;gt;&lt;br /&gt;
        &amp;lt;RegTime&amp;gt;14:17:47&amp;lt;/RegTime&amp;gt;&lt;br /&gt;
        &amp;lt;OKBy&amp;gt;KRISTIINA&amp;lt;/OKBy&amp;gt;&lt;br /&gt;
        &amp;lt;GPProc&amp;gt;100.0&amp;lt;/GPProc&amp;gt;&lt;br /&gt;
        &amp;lt;RegNr1&amp;gt;12345678&amp;lt;/RegNr1&amp;gt;&lt;br /&gt;
        &amp;lt;rows&amp;gt;&lt;br /&gt;
            &amp;lt;row rownumber=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;stp&amp;gt;3&amp;lt;/stp&amp;gt;&lt;br /&gt;
                &amp;lt;OrdRow&amp;gt;200005&amp;lt;/OrdRow&amp;gt;&lt;br /&gt;
            &amp;lt;/row&amp;gt;&lt;br /&gt;
            &amp;lt;row rownumber=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;stp&amp;gt;1&amp;lt;/stp&amp;gt;&lt;br /&gt;
                &amp;lt;ArtCode&amp;gt;1&amp;lt;/ArtCode&amp;gt;&lt;br /&gt;
                &amp;lt;Quant&amp;gt;1&amp;lt;/Quant&amp;gt;&lt;br /&gt;
                &amp;lt;Price&amp;gt;450.00&amp;lt;/Price&amp;gt;&lt;br /&gt;
                &amp;lt;Sum&amp;gt;450.00&amp;lt;/Sum&amp;gt;&lt;br /&gt;
                &amp;lt;SalesAcc&amp;gt;3100&amp;lt;/SalesAcc&amp;gt;&lt;br /&gt;
                &amp;lt;rowGP&amp;gt;450.00&amp;lt;/rowGP&amp;gt;&lt;br /&gt;
                &amp;lt;Spec&amp;gt;Tõukeratas &amp;amp;quot;Tõuks&amp;amp;quot;&amp;lt;/Spec&amp;gt;&lt;br /&gt;
                &amp;lt;VATCode&amp;gt;1&amp;lt;/VATCode&amp;gt;&lt;br /&gt;
                &amp;lt;UnitCode&amp;gt;TK&amp;lt;/UnitCode&amp;gt;&lt;br /&gt;
                &amp;lt;TaxMatrix&amp;gt;&amp;lt;/TaxMatrix&amp;gt;&lt;br /&gt;
                &amp;lt;UnitComment&amp;gt;tükk&amp;lt;/UnitComment&amp;gt;&lt;br /&gt;
            &amp;lt;/row&amp;gt;&lt;br /&gt;
        &amp;lt;/rows&amp;gt;&lt;br /&gt;
    &amp;lt;/IVVc&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Credit invoice in Standard Books:&lt;br /&gt;
&lt;br /&gt;
[[Fail:Kreeditarve lõpus.png|raamita|507x507px]]&lt;/div&gt;</summary>
		<author><name>Kaupo</name></author>
	</entry>
</feed>