GET api/eventversion?id={productid}&version={version}

Returns the current update. See Incremental Updates for more information.

Note: events are not deleted in the system but rather flagged with AvailabilityCode=removed.

Resource URL

Tests: https://sandbox.weplann.com/api/eventversion?id={productid}&version={version}
Production: https://developer.weplann.com/api/eventversion?id={productid}&version={version}

Request Parameters

Name Description Type Additional Information Mandatory
id The product id to filter on. uniqueidentifier No
version The last retrieved version of update. integer No

Response Information

Name Description Type Additional Information
UpdateVersion Maximum update version greater than the supplied version integer Will return a value of 0 (zero) if there are no records updated after the supplied version
DeleteVersion integer Not applicable to this API, will always be retured as 0 (zero)

Example Request

GET https://developer.weplann.com/api/eventversion?id=e7bdcdc3-5c63-4e2a-b0cc-2efa08ce58b2&version=80 

Example Result (XML)

<VersionResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.weplann.com">
	<UpdateVersion>116</UpdateVersion>
	<DeleteVersion>0</DeleteVersion>
</VersionResponse>

Example Result (JSON)

{
	"updateVersion" : 116,
	"deleteVersion" : 0
}