---
# System prepended metadata

title: evm-recon-tool

---

# Sequence Diagram
```plantuml
@startuml
actor "Private User" as pv
participant "kong internal" as kong_internal
participant "evm-recon-tools" as evm_recon_tool

database recon_data as recon_data


pv -> evm_recon_tool: [POST] /reconciliation

evm_recon_tool -> evm_recon_tool !! : add file to queue
evm_recon_tool o<-> recon_data : fetch order data by date range
alt data match 
evm_recon_tool -> evm_recon_tool: ignore
else  data settlement not yet reconciled
evm_recon_tool -> recon_data: store data

end

loop
evm_recon_tool -> evm_recon_tool : compare data file by data order 
evm_recon_tool -> recon_data: update the data recon
end
evm_recon_tool -> recon_data: update recon process info

pv -> evm_recon_tool : [GET] /reconciliation/process
evm_recon_tool <->  recon_data: get data proces reconciliation
evm_recon_tool -> pv : show recon process status
@enduml