<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="../../Documentation.xsl"?>

<documentation>
	<extension-title>REST API</extension-title>
	<extension-menu-doc>Menu.xml</extension-menu-doc>
	<content>
		<topic>
			<topic-title>Overview</topic-title>
			<topic-text>
				The REST API allows developers to interract programatically with deployments.<br />
				<br />
				More specifically, the API has been designed with the following use cases in mind:<br />
				<ul>
					<li>Signing users into deployments and synchronising accounts</li>
				</ul>
				The REST API is JSON-based, and uses JWT to authenticate calls.<br />
				<br />
			</topic-text>
			<topic-title>Release Notes</topic-title>
			<topic-text>
				<p><b>2.8</b></p>
				<ul>
				<li><i>GET Products fix</i> - fixed an issue with GET Products/ failing when tax rates are not set.</li>
				</ul>

				<p><b>2.7</b></p>
				<ul>
				<li><i>Order and item raw price</i> - prices before discounts are shown in addition to totals.</li>
				<li><i>Product tax category</i> - tax category name and rate added to the Product call.</li>
				<li><i>Tax inclusive pricing</i> - tax inclusive pricing displayed in the new Settings call.</li>
				</ul>

				<p><b>2.6</b></p>
				<ul>
				<li><i>Payment fields fix</i> - fix of the method that returns payment fields.</li>
				</ul>

				<p><b>2.5</b></p>
				<ul>
				<li><i>Callbacks URL format</i> - added support for various formats of the callback URL.</li>
				<li><i>Error handling</i> - error handling of callback registration issues has been improved.</li>
				</ul>
				
				<p><b>2.4</b></p>
				<ul>
				<li><i>Output paths</i> - added output path and created date item calls.</li>
				</ul>

				<p><b>2.3</b></p>
				<ul>
				<li><i>Time filters</i> - added time filters to orders and items calls.</li>
				</ul>

				<p><b>2.2</b></p>
				<ul>
				<li><i>Order approvals improvement</i> - additional HTTP codes and response messages added.</li>
				</ul>

				<p><b>2.1</b></p>
				<ul>
				<li><i>Payment fields</i> - new call added to get payment fields for an order.</li>
				<li><i>Order approvals</i> - new call added to allow the approval of an order.</li>
				<li><i>Callbacks fix</i> - bug fix to the OrderCreated callback to trigger when orders have approvals.</li>
				</ul>

				<p><b>2.0</b></p>
				<ul>
				<li><i>Performance optimisation</i> - performance optimisation of all calls with custom fields.</li>
				</ul>

				<p><b>1.9</b></p>
				<ul>
				<li><i>Null metafields</i> - null values removed from product metafields.</li>
				<li><i>Performance optimisation</i> - performance of product related calls increased.</li>
				</ul>
								
				<p><b>1.8</b></p>
				<ul>
				<li><i>Get user by UserID</i> - updated get users call to retrieve by User ID.</li>
				<li><i>Compatibility</i> - compatibility improvements with Storefront 9.4 and 9.5.</li>
				</ul>
				
				<p><b>1.7</b></p>
				<ul>
				<li><i>Orders</i> - fix of the 'from' / 'to' parameters logic for orders and order items calls.</li>
				</ul>

				<p><b>1.6</b></p>
				<ul>
				<li><i>Security</i> - support for TLS 1.2 added to callbacks.</li>
				<li><i>Debug logging</i> - extended debug logging of API requests added.</li>
				</ul>

				<p><b>1.5</b></p>
				<ul>
				<li><i>Performance</i> - compatibility with extensions that retrieve data from remote data sources.</li>
				<li><i>Custom Fields</i> - call responses now contain only custom fields with definition.</li>
				</ul>
				
				<p><b>1.4</b></p>
				<ul>
				<li><i>Callbacks</i> - functionality of Callbacks introduced.</li>
				</ul>
				
				<p><b>1.3</b></p>
				<ul>
				<li><i>Users</i> - reverted login ticket response to lower case.</li>
				</ul>
				
				<p><b>1.2</b></p>
				<ul>
				<li><i>Products, Permissions, Orders</i> - calls for products, permissions, orders and ordered documents added.</li>
				</ul>
				
				<p><b>1.1</b></p>
				<ul>
				<li><i>Users and Groups</i> - user and group calls added.</li>
				</ul>
				
				<p><b>1.0</b></p>
				<ul>
				<li><i>Initial Release</i> - calls for SSO added.</li>
				</ul>
				
				<br />
			</topic-text>	
		</topic>
	</content>
</documentation>