Hi everyone, is anyone else experiencing an issue with the API returning null values for dates associated with a Deal stage or Contact lifecycle stage?
I've had a script running for weeks which gets all the populated dates for, say, a Deal's stages. But over the last couple of weeks it has started returning 'None' for all the stage properties.
API request:
def search_deal(self, deal_id: str):
response = self.hubspot_client.crm.deals.basic_api.get_by_id(
deal_id,
properties=[
"amount",
"createAt",
"dealname",
"description",
"dealtype",
"deal_source",
"dealstage",
"hs_lastmodifieddate",
"hs_deal_stage_probability",
"likelihood_to_convert",
"industry",
"core_service",
"hs_object_source_user_id",
"pipeline",
"hs_date_entered_158499566",
"hs_date_entered_appointmentscheduled",
"hs_date_entered_qualifiedtobuy",
"hs_date_entered_decisionmakerboughtin",
"hs_date_entered_contractsent",
"hs_date_entered_177934022",
"hs_date_entered_closedlost",
]
).to_dict()
return response
For example, if I create a Test Deal just now, when I use the Deal ID to get the details, I get this back. The created and last modified dates are present but all other stages are empty. As I say, it's been working fine until recently
{'associations': None,
'created_at': datetime.datetime(2025, 4, 3, 11, 28, 47, 143000, tzinfo=tzutc()),
'archived': False,
'archived_at': None,
'properties_with_history': None,
'id': 'XXXXXXXXX,
'properties': {'amount': None,
'core_service': None,
'createdate': '2025-04-03T11:28:47.143Z',
'deal_source': None,
'dealname': 'Test Deal',
'dealstage': 'qualifiedtobuy',
'dealtype': None,
'description': None,
'hs_date_entered_158499566': None,
'hs_date_entered_177934022': None,
'hs_date_entered_appointmentscheduled': None,
'hs_date_entered_closedlost': None,
'hs_date_entered_contractsent': None,
'hs_date_entered_decisionmakerboughtin': None,
'hs_date_entered_qualifiedtobuy': None,
'hs_deal_stage_probability': '0.40000000000000002220446049250313080847263336181640625',
'hs_lastmodifieddate': '2025-04-03T11:32:16.711Z',
'hs_object_id': '169184493772',
'hs_object_source_user_id': '67258830',
'industry': None,
'likelihood_to_convert': None,
'pipeline': 'default'},
'updated_at': datetime.datetime(2025, 4, 3, 11, 32, 16, 711000, tzinfo=tzutc())}