APIs & Integrations

Not applicable

Creating a Contact return error "Property_Does_Not_Exists"

I am using Create Contact API call and wanted to create a contact with datetime filed in it.

"lead_sign_up_date" has string unix timstamp milliseconds value as described in this documentation(https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis).

Still getting "PROPERTY_DOES_NOT_EXIST" error on create contact API call.

REQUEST BODY
{
"properties": [
{
"property": "name",
"value": "Ravi Patel"
},
{
"property": "email",
"value": "ravi.patel@ajmerainfotech.com"
},
{
"property": "phone",
"value": "+12015555555"
},
{
"property": "address",
"value": "Titanium"
},
{
"property": "city",
"value": "Ahm"
},
{
"property": "state",
"value": "California"
},
{
"property": "zip",
"value": "12345"
},
{
"property": "company",
"value": "Ai Comp"
},
{
"property": "lead_sign_up_date",
"value": "1520663647532"
},
{
"property": "industry",
"value": "Manufacturer"
}
]
}

RESPONSE
{
"status": "error",
"message": "Property values were not valid",
"correlationId": "022a222f-de53-4f4f-a368-74df3ff38baa",
"validationResults": [
{
"isValid": false,
"message": "Property "lead_sign_up_date" does not exist",
"error": "PROPERTY_DOESNT_EXIST",
"name": "lead_sign_up_date"
}
],
"requestId": "c80a486cf193fd243867d1d13163e0a0"
}

Please help !!!

0 Upvotes
2 Replies 2
Not applicable

Creating a Contact return error "Property_Does_Not_Exists"

Thanks you Derek for the reply, I solved it already. And yes issue was the hapikey.

Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Creating a Contact return error "Property_Does_Not_Exists"

Hi @ravi.patel,

Is it possible you're using the hapikey from your developer portal? Can you give me a link to your portal?

0 Upvotes