I still think you are better of integrating hubspot <> shopify.
Then updating shopify’s order status from your erp <> shopify.
Having said that, hubspot id is usually the hubspot portal’s id, you do need that to use the apis.
Then you need to query for a deal id that has the order number from shopify that you want to update.
Then you would also need to update the order status in shopify.