What is a reasonable way to make a qr code pull up a specific order id from a database?

is passing the ID through $GET and then just building a webpage in that php file the most straightforward way?
example.com/orderstatus.php?order_id=1234