<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Keystone_Dispatch_REST_API</id>
	<title>Keystone Dispatch REST API - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Keystone_Dispatch_REST_API"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Keystone_Dispatch_REST_API&amp;action=history"/>
	<updated>2026-05-15T16:08:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Keystone_Dispatch_REST_API&amp;diff=352&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Keystone_Dispatch_REST_API&amp;diff=352&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:52Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-351:rev-352 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Keystone_Dispatch_REST_API&amp;diff=351&amp;oldid=prev</id>
		<title>Chanson at 15:19, 4 May 2023</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Keystone_Dispatch_REST_API&amp;diff=351&amp;oldid=prev"/>
		<updated>2023-05-04T15:19:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[CATEGORY: KSERVER]]&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
The Keystone REST Server exposes a REST API which is used by Keystone Dispatch to communicate with the Keystone Application Server.&lt;br /&gt;
&lt;br /&gt;
Keystone Dispatch is accessed from Keystone Cloud applications.&lt;br /&gt;
&lt;br /&gt;
See: [[Keystone_REST_Server_(KServer)]] for more on KServer.&lt;br /&gt;
&lt;br /&gt;
===Example URIs:===&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
http://127.0.0.1:8211/rest/kdiapi/v2/connection&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Connection Test API==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;ROOT: /rest/kdiapi/v2&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====connection====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;connection&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: tests connection with the server &lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap; &lt;br /&gt;
white-space: -moz-pre-wrap; &lt;br /&gt;
white-space: -pre-wrap; &lt;br /&gt;
white-space: -o-pre-wrap; &lt;br /&gt;
word-wrap: break-word;&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;kdiapi&amp;quot;: {&lt;br /&gt;
    &amp;quot;request_status&amp;quot;: {&lt;br /&gt;
      &amp;quot;status&amp;quot;: &amp;quot;200&amp;quot;,&lt;br /&gt;
      &amp;quot;msg&amp;quot;: &amp;quot;Keystone Dispatch REST Server.&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==API v1==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;ROOT: /rest/kdiapi/v1&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dispatch Functions===&lt;br /&gt;
&lt;br /&gt;
====CustomerInvoices====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
CustomerInvoices/{CustId}&amp;lt;i&amp;gt;/{AgingDateLo1}/{AgingDateLo2}/{AgingDateHi2}/{AgingDateLo3}/{AgingDateHi3}/{AgingDateLo4}/{AgingDateHi4}/{AgingDateHi5}&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;?AgeByDate=&amp;lt;b&amp;gt;0&amp;lt;/b&amp;gt;|1  (0=Invoice Date, 1=Due Date)&lt;br /&gt;
&amp;lt;BR&amp;gt;?IncPaid=&amp;lt;b&amp;gt;N&amp;lt;/b&amp;gt;|Y  (N=Open Invoices only, Y=All Invoices)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns invoices, aging and contacts for specified CustId&lt;br /&gt;
:: uses monthly aging based on today's date if aging dates not specified&lt;br /&gt;
&lt;br /&gt;
====CustomerList====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CustomerList&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns list of customers&lt;br /&gt;
&lt;br /&gt;
====InvoiceHistory====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;InvoiceHistory/{Id}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns invoice history (tickets and payments) for the specified Id (where Id is &amp;lt;session#&amp;gt;K&amp;lt;trans#&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
====LoadGpsLocation====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;LoadGpsLocation/{Id}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns load gps location information for the specified Id (where Id is &amp;lt;session#&amp;gt;K&amp;lt;trans#&amp;gt;K&amp;lt;load#&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
====ScheduleByCust====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ScheduleByCust&amp;lt;i&amp;gt;/{BegSchedDT}/{EndSchedDT}&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;?IncComplete=true|&amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;?SlsId={SlsId}  &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns schedule information summarized by customer &lt;br /&gt;
:: uses today's date if BegSchedDT not specified&lt;br /&gt;
:: uses last second of BegSchedDt if EndSchedDT not specified&lt;br /&gt;
:: includes completed orders if IncComplete is true&lt;br /&gt;
:: restrict to salesperson SlsId if specified&lt;br /&gt;
&lt;br /&gt;
====ScheduleByPlant====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ScheduleByPlant&amp;lt;i&amp;gt;/{BegSchedDT}/{EndSchedDT}&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;?IncComplete=true|&amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns schedule information summarized by plant&lt;br /&gt;
:: uses today's date if BegSchedDT not specified&lt;br /&gt;
:: uses last second of BegSchedDt if EndSchedDT not specified&lt;br /&gt;
:: includes completed orders if IncComplete is true&lt;br /&gt;
&lt;br /&gt;
====ScheduleBySls====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ScheduleBySls&amp;lt;i&amp;gt;/{BegSchedDT}/{EndSchedDT}&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;?IncComplete=true|&amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns schedule information summarized by salesperson&lt;br /&gt;
:: uses today's date if BegSchedDT not specified&lt;br /&gt;
:: uses last second of BegSchedDt if EndSchedDT not specified&lt;br /&gt;
:: includes completed orders if IncComplete is true&lt;br /&gt;
:: results restricted to single salesperson if current user is locked to a salesperson &amp;lt;b&amp;gt;(NOT IMPLEMENTED YET)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====ScheduleOrders====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ScheduleOrders&amp;lt;i&amp;gt;/{BegSchedDT}/{EndSchedDT}/{ActiveCarryHrs}/{UndelvCarryHrs}/{NTLLookAheadHrs}/{OrdselRangeHrs}&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;?IncComplete=true|&amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;?SlsId={SlsId}  &lt;br /&gt;
&amp;lt;BR&amp;gt;?CustId={CustId}  &lt;br /&gt;
&amp;lt;BR&amp;gt;?PlantId={PlantId}  &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns schedule order information &lt;br /&gt;
:: includes completed orders if IncComplete is true&lt;br /&gt;
:: restrict to salesperson SlsId if specified&lt;br /&gt;
:: restrict to customer CustId if specified&lt;br /&gt;
:: restrict to plant PlantId if specified&lt;br /&gt;
&lt;br /&gt;
====ScheduleOrderLoads====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ScheduleOrderLoads/{Id}&lt;br /&gt;
&amp;lt;BR&amp;gt;?IncComplete=true|&amp;lt;b&amp;gt;false&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns schedule order load information (active &amp;amp; completed loads) for the specified Id (where Id is &amp;lt;session#&amp;gt;K&amp;lt;trans#&amp;gt;)&lt;br /&gt;
:: includes completed orders if IncComplete is true&lt;br /&gt;
&lt;br /&gt;
====Ticket====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
Ticket/{Id}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: returns ticket, products and batch weights information for the specified Id (where Id is &amp;lt;session#&amp;gt;K&amp;lt;trans#&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Additional Information==&lt;br /&gt;
&lt;br /&gt;
===Order Status Codes===&lt;br /&gt;
*CANCELLED '''X''' &lt;br /&gt;
*CLOSED '''C''' &lt;br /&gt;
*COMPLETED '''F''' &lt;br /&gt;
*HOLD '''H''' &lt;br /&gt;
*OPEN '''O''' &lt;br /&gt;
*QUOTE '''Q'''&lt;/div&gt;</summary>
		<author><name>Chanson</name></author>
	</entry>
</feed>