I understand you are using a GET request GET /api/aggregateDataExchanges/{id}?
Could you share an API example request that is working and the one that is not working? It would be great if the example is from any of the play.dhis2.org instances so we could work on it together and see how to fix it.
Thanks!