Creating a Contact return error "Property_Does_Not_Exists"

contacts

#1

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 !!!


#2

Hi @ravi.patel,

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


#3

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