API aggregation - request


We are trying to setup POC with Tyk and have some troubles with aggregation. We have 2 test API. One with database REST API and one with test customers. We would like to be able to take mail address from database and run it against customer API to retreive some information. I see that Tyk is able to aggregate from diffrent API sources. We are testing inline batch script from Tyk Dashboard. Our API call will be like:

http://test.apigateway.net/[email protected]

so we now get some basic info. about customer from database like:

1,John,Wick,[email protected]

Is it possible in Tyk to get this last line from API call in the URL ([email protected]) and put it in the batch script which will then run another query and aggregate those 2 responses before client get response?