Consistency check
netAmount is not the balance of contributionAmount and withdrawalAmount
Symptom
Schema-valid; the receiver does not know which amount is leading, or double-counts the flows.
Cause
Message 2 may carry inflow, outflow and balance together; SIVI's own sample message fills all three. netAmount is then the balance of contribution and withdrawal. Here the three amounts do not match, for example because they come from different sources or different moments.
Fix
Calculate netAmount as contributionAmount minus withdrawalAmount. In Release 2027 netAmount and netDate are mandatory; if needed, leave out inflow and outflow, not the balance. The WTP Data Lab validator reports three amounts that contradict each other as a warning.
Wrong and right
Wrong
{ "contributionAmount": 25000.00, "withdrawalAmount": 10000.00, "netAmount": 20000.00 }Right
{ "contributionAmount": 25000.00, "withdrawalAmount": 10000.00, "netAmount": 15000.00 }Check your own message for this and all other errors with the free validator: schema, code lists and consistency checks in one report. Validate a message
