How do I get the order_id and order_number on the checkout completed page?
The following should work:

  /** @var \Drupal\commerce_order\Entity\OrderInterface $order */
  $order = \Drupal::routeMatch()-&gt;getParameter('commerce_order');