For instore transactions, transactionReference is the ID generated by the POS system.
You can check that the value of the transactionReference that you want to send in the API request is what we expect it to be, by verifying the correct value in the Tyro Portal. After you access a specific transaction, look up the field called Integrated Transaction ID. This is the transactionReference we would expect for this transaction.

For the PayInstore API, we expect you to pass the same value as you did in the origin.transactionId field while creating a pay request. In the GET Pay Request response payload, it would be the following field:

That value will also be visible in the Tyro Portal as Integrated Transaction ID.
For the PayApi, we expect you to pass the id of the Pay Request that is to be refunded. Additionally, the originChannel should be set to ONLINE_CHECKOUT in the refund request. You can find the Pay Request ID in the response of the create Pay Request API call, as shown below:

You can check that the value of the transactionReference that you want to send in the API request is what we expect it to be, by verifying the correct value in the Tyro Portal. After you access a specific transaction, look up the field called Online Payments order ID. This is the transactionReference we would expect for this transaction.
