Request of Owner ID from Deal gives wrong number

I use the following python code to get the Owner ID of a certain deal:

def get_deal_info(deal_id, properties = ["hubspot_owner_id", "dealname"]):
 """
 Gets deal info from hubspot
 """
 return client.crm.deals.basic_api.get_by_id(deal_id=deal_id, 
 properties=properties, archived=False)

This gives me a hubspot_owner_id along other necessary data. But after checking the owner in Hubspot of this specific deal, the IDs do not match. The ID does not even match another possible owner. It seems like it just made up a number. Does anyone have an idea how this can be fixed, or maybe another possible way to retrieve the Owner ID from a Deal ID?

Hey, @mbannink One place to check is the Owners API. HubSpot creates an Owner ID along with the User ID and these values are different. If you make a request to this endpoint, do you see the User, and its corresponding Owner ID?

HubSpot Owners API

Best,

Jaycee