Error trying to send lead via api

hi guys i tried to send a client via hubspot API but i get this error message

{
“properties”: [
{
“property”: “email”,
“value”: “madden@yahoo.com
},
{
“property”: “firstname”,
“value”: “Bailey”
},
{
“property”: “lastname”,
“value”: “Madden”
},
{
“property”: “website”,
“value”: “soTest”
},
{
“property”: “phone”,
“value”: “441212345678”
},
{
“property”: “sourceid”,
“value”: “1”
},
{
“property”: “clickid”,
“value”: “09f131c6a2dde937b1f43974e4f79c46”
},
{
“property”: “so”,
“value”: “soTest”
},
{
“property”: “Country”,
“value”: “United Kingdom”
},
{
“property”: “affid”,
“value”: “wp”
}
]
}

response:

{
“validationResults”: [
{
“isValid”: false,
“message”: “Property \“sourceid\” does not exist”,
“error”: “PROPERTY_DOESNT_EXIST”,
“name”: “sourceid”
},
{
“isValid”: false,
“message”: “Property \“clickid\” does not exist”,
“error”: “PROPERTY_DOESNT_EXIST”,
“name”: “clickid”
},
{
“isValid”: false,
“message”: “Property \“so\” does not exist”,
“error”: “PROPERTY_DOESNT_EXIST”,
“name”: “so”
},
{
“isValid”: false,
“message”: “Property \“affid\” does not exist”,
“error”: “PROPERTY_DOESNT_EXIST”,
“name”: “affid”
}
],
“status”: “error”,
“message”: “Property values were not valid”,
“correlationId”: “cb9b80a6-8eb5-4945-8fdb-492063114f28”
}

Hi @MOrlov

Thank you for reaching out.

I want to tag some of our experts on this - @himanshurauthan @tjoyce @miljkovicmisa do you know what could be the issue here?

Thank you!

Best

Tiphaine

Hi, @TitiCuisset thank you for tagging me in. :slightly_smiling_face:

So @MOrlov, the issue is properties, in which you are trying to send values on HubSpot are not present there. First, you have to create them then after you can send values in those properties, you need to create the following properties:

  • sourceid
  • clicked
  • so
  • affid

I hope this helps you. :slightly_smiling_face:

Best Regards,