It’s hard to say without knowing more about your schemas, but here’s something to get you started:
for $u in input()/user, $c in input()/credit
where $u/userid = $c/userid
return <my-result> { $u/userid, $c/credit-details } </my-result>
#webMethods#Tamino#API-Management