To get a customer loans by customer's id you first need to build the complete get loans by customer id endpoint by passing version in the url path and authtoken in the query params then make a get request to the endpoint.
We have a Production URL and Staging URL you are advised to use the staging during development.