<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://mediawiki.emersion.com.au/wiki/index.php?action=history&amp;feed=atom&amp;title=API%2FRetailServices%2FCreateLedgerCardline</id>
		<title>API/RetailServices/CreateLedgerCardline - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://mediawiki.emersion.com.au/wiki/index.php?action=history&amp;feed=atom&amp;title=API%2FRetailServices%2FCreateLedgerCardline"/>
		<link rel="alternate" type="text/html" href="https://mediawiki.emersion.com.au/wiki/index.php?title=API/RetailServices/CreateLedgerCardline&amp;action=history"/>
		<updated>2026-04-29T10:25:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>https://mediawiki.emersion.com.au/wiki/index.php?title=API/RetailServices/CreateLedgerCardline&amp;diff=2674&amp;oldid=prev</id>
		<title>Jlee: Created page with &quot;'''Purpose '''  The CreateLedgerCardline function allows you to submit a misc credit or debit against a customer and have it arrive against their account as an unallocated car...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.emersion.com.au/wiki/index.php?title=API/RetailServices/CreateLedgerCardline&amp;diff=2674&amp;oldid=prev"/>
				<updated>2014-09-10T07:51:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Purpose &amp;#039;&amp;#039;&amp;#039;  The CreateLedgerCardline function allows you to submit a misc credit or debit against a customer and have it arrive against their account as an unallocated car...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Purpose '''&lt;br /&gt;
&lt;br /&gt;
The CreateLedgerCardline function allows you to submit a misc credit or debit against a customer and have it arrive against their account as an unallocated cardline. This cardline can be collected by their next invoice for payment.&lt;br /&gt;
&lt;br /&gt;
'''Inputs'''&lt;br /&gt;
  &amp;lt;soapenv:Header/&amp;gt;&lt;br /&gt;
   &amp;lt;soapenv:Body&amp;gt;&lt;br /&gt;
      &amp;lt;ret:CreateLedgerCardlineRequest&amp;gt;&lt;br /&gt;
         &amp;lt;ret:AccountID&amp;gt;392407&amp;lt;/ret:AccountID&amp;gt;&lt;br /&gt;
         &amp;lt;ret:TransactionDate&amp;gt;31-01-2013 14:30:00&amp;lt;/ret:TransactionDate&amp;gt;&lt;br /&gt;
         &amp;lt;ret:Amount&amp;gt;12.95&amp;lt;/ret:Amount&amp;gt;&lt;br /&gt;
         &amp;lt;ret:Tax&amp;gt;1.98&amp;lt;/ret:Tax&amp;gt;&lt;br /&gt;
         &amp;lt;ret:Description&amp;gt;Cardline from external API&amp;lt;/ret:Description&amp;gt;&lt;br /&gt;
      &amp;lt;/ret:CreateLedgerCardlineRequest&amp;gt;&lt;br /&gt;
   &amp;lt;/soapenv:Body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important notes:'''&lt;br /&gt;
&lt;br /&gt;
181.	Customer ID must be someone whom is managed by your certificate account&lt;br /&gt;
&lt;br /&gt;
182.	Transaction date must be in the format DD-MM-YYYY hh:mm:ss&lt;br /&gt;
&lt;br /&gt;
183.	Amount can be positive or negative for debits or credits respectively&lt;br /&gt;
&lt;br /&gt;
184.	Tax can be zero, or the appropriate positive / negative amount for a debit or credit respectively&lt;br /&gt;
&lt;br /&gt;
185.	Description is mandatory&lt;br /&gt;
&lt;br /&gt;
186.	A non required element ‘LedgerCodeID’ can be provided if you do not wish to use the defaults – this maps to the integer code of the ledger code you wish to use.&lt;br /&gt;
&lt;br /&gt;
'''Output'''&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;SOAP-ENV:Body&amp;gt;&lt;br /&gt;
      &amp;lt;ns1:CreateLedgerCardlineResponse&amp;gt;&lt;br /&gt;
         &amp;lt;ns1:result&amp;gt;1558997&amp;lt;/ns1:result&amp;gt;&lt;br /&gt;
      &amp;lt;/ns1:CreateLedgerCardlineResponse&amp;gt;&lt;br /&gt;
   &amp;lt;/SOAP-ENV:Body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A successful insert of the cardline should provide you with the ledger cardline ID that was created. Any errors or validation problems should result in an exception or a soap fault.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Error String'''&lt;br /&gt;
&lt;br /&gt;
187.		You can only operate on accounts that are your direct children.&lt;br /&gt;
&lt;br /&gt;
188.		Amount supplied was either missing or zero. Amount must have a positive or negative value.&lt;br /&gt;
&lt;br /&gt;
189.		Amount has greater than 2 decimal places, this is not valid.&lt;br /&gt;
&lt;br /&gt;
190.		Tax Amount has greater than 2 decimal places, this is not valid.&lt;br /&gt;
&lt;br /&gt;
191.		Description is a mandatory field&lt;br /&gt;
&lt;br /&gt;
192.		Ledger code could not be established from your input. Either specify a correct integer, or leave blank and the system will choose.&lt;br /&gt;
&lt;br /&gt;
193.		Could not create new cardline, error was: &amp;quot;.$ex-&amp;gt;getMessage()&lt;/div&gt;</summary>
		<author><name>Jlee</name></author>	</entry>

	</feed>