calls buildSettlement on server