Ideas for the Mambu Banking Engine

Adding filters when recovering loans of a specific client

Currently in order to recover the approved loans of a specific client there are two approaches:

/api/loans?accountState=APPROVED
which get us all the approved loans and then we need to find the ones for the client we need

or 


/api/clients/49459459/loans
which get us all the loans of a client and then we need to find the approved ones (or any account state needed)

 

It would be beneficial, from the efficiency point of view by reducing the size of responses, to have calls in which we can filter them out, such as:

/api/clients/49459459/loans?accountState=APPROVED

since currently all the client's accounts are returned when many times what's needed is only the approved accounts, which might be only one or two at a time.


  • Roberto AA
  • Jan 15 2015
  • Attach files