Question:
In the call GET /LoanDetail/{Id}, can there be multiple entries for a single rail for the ProcessedRails array?
Answer:
The GET /LoanDetail/{Id} API does have returned, rejected, and other rail statuses along with success in processedrails as well. Rows are not updated, rather new statuses are inserted as new rows.
- This means there can definitely be multiple entries in processedrails for the same rail.
- To get the most recent status for the rail, look at max(ProcessedAt) for the rail.
ReturnedRails will also have the array of returned rails, and you can request this as well in LoanDetail.