Validate transactionReference instead of id

When is the 'id' parameter passed to the query? In some tests, where I define the returnUrl, no id is added to the url.
Also, the message talks about `id`, but a transactionReference parameter is needed.