# Applications

The Application api allows clients to access data created in K-Pro.

# Archives

To find an archive file for an application call /hp-api/v1/get-application-archive/{applicationId}.

image

The api will check the latest archive zip file that has been created and return a base 64 array of the zip file contents.

# Completions

To find an completions that have happened call /hp-api/v1/get-completions/.

image

This endpoint takes 2 dates as paramaters to limit when completions have happened between 2 dates - dateFrom and DateTo. If DateTo is left blank then the report assumes DateTo = today.

# Example

http://app2.kpro.co/hp-api/v1/get-completions?startDate=2020-01-01&endDate=2024-01-01

which returns a collection of completions and their sales type that ocurred between those dates

image