You cannot find traces through this API if Transaction Search is enabled since trace is not indexed in X-Ray.
See https://www.paws-r-sdk.com/docs/xray_batch_get_traces/ for full documentation.
xray_batch_get_traces(TraceIds, NextToken = NULL)
[required] Specify the trace IDs of requests for which to retrieve segments.
Pagination token.