La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
@dadams I had it sent to a portal that has these properties for sure, I am still getting errors, is there some kind of prerequisite I had to do that might be causing this?
Response:
{
“status”:“error”,
“message”:“Property values were not valid”,
“correlationId”:"*************",
“validationResults”:
[
{
“isValid”:false,
“message”:“Property “average_utility_bill” does not exist”,
“error”:“PROPERTY_DOESNT_EXIST”,“name”:“average_utility_bill”
},
{
“isValid”:false,“message”:“23640145 was not a valid owner ID”,
“error”:“INVALID_OWNER_ID”,
“name”:“hubspot_owner_id”
},
{
“isValid”:false,
“message”:“Property “lead_source” does not exist”,
“error”:“PROPERTY_DOESNT_EXIST”,
“name”:“lead_source”
},
{
“isValid”:false,
“message”:“New was not one of the allowed options:
[
label: “New”\nvalue: “NEW”\ndisplay_order: 0\n,
label: “Open”\nvalue: “OPEN”\ndisplay_order: 1\n,
label: “In Progress”\nvalue: “IN_PROGRESS”\ndisplay_order: 2\n,
label: “Open Deal”\nvalue: “OPEN_DEAL”\ndisplay_order: 2\n,
label: “Unqualified”\nvalue: “UNQUALIFIED”\ndisplay_order: 3\n]
”,“error”:“INVALID_OPTION”,“name”:“hs_lead_status”
}],
“requestId”:“556cd982a549fd5d67c860a415e9f949”
}
@Sara_Mubideen also, as I mentioned before, please remove your hapikey from any URLs before posting. Posting the key from your portal will allow anyone to view data for your portal.
Even for a test portal, I’d recommend deactivating and generating a new key as soon as possible.
I only posted it because it’s just a test portal and basically has nothing. will change it though… As for the properties, they were all setup in hubspot. something is wrong/ missing in the code, can’t tell what it is though
Properties are specific to the portal they’re created in, so if you’re working with a test portal you’d need to recreate any custom properties in that test portal.
@Sara_Mubideen properties will need to be created in the portal before you can use them with contacts, so if you haven’t created a property with the name average_utility_bill you’d need to create that first, either in HubSpot or through the API.
POST /properties/v1/contacts/properties - Create a property on every deal object to store a specific piece of data. In the example below, we want to store an invoice number on a separate field on deals.
Fields to send: {“properties”:[{“property”:“email”,“value”:“gbelilah@yahoo.com”},{“property”:“firstname”,“value”:“GALE”},{“property”:“lastname”,“value”:“BELILAH”},{“property”:“phone”,“value”:“9044365100”},{“property”:“mobilephone”,“value”:“9044365100”},{“property”:“address”,“value”:“409 14TH ST”},{“property”:“city”,“value”:“SAINT AUGUSTINE”},{“property”:“state”,“value”:“FL”},{“property”:“zip”,“value”:“32084”},{“property”:“average_utility_bill”,“value”:“350.00”},{“property”:“lifecyclestage”,“value”:“lead”},{“property”:“hs_lead_status”,“value”:“New”},{“property”:“hubspot_owner_id”,“value”:“23640145”},{“property”:“lead_source”,“value”:“Clean Energy Authority”}]}
Response: {“status”:“error”,“message”:“Property values were not valid”,“correlationId”:“a372d7d0-2c46-4181-9616-e9c223b5af64”,“validationResults”:[{“isValid”:false,“message”:“Property “average_utility_bill” does not exist”,“error”:“PROPERTY_DOESNT_EXIST”,“name”:“average_utility_bill”},{“isValid”:false,“message”:“23640145 was not a valid owner ID”,“error”:“INVALID_OWNER_ID”,“name”:“hubspot_owner_id”},{“isValid”:false,“message”:“Property “lead_source” does not exist”,“error”:“PROPERTY_DOESNT_EXIST”,“name”:“lead_source”},{“isValid”:false,“message”:“New was not one of the allowed options: [label: “New”\nvalue: “NEW”\ndisplay_order: 0\n, label: “Open”\nvalue: “OPEN”\ndisplay_order: 1\n, label: “In Progress”\nvalue: “IN_PROGRESS”\ndisplay_order: 2\n, label: “Open Deal”\nvalue: “OPEN_DEAL”\ndisplay_order: 2\n, label: “Unqualified”\nvalue: “UNQUALIFIED”\ndisplay_order: 3\n]”,“error”:“INVALID_OPTION”,“name”:“hs_lead_status”}],“requestId”:“6b7a46bf2437d3749831299fd85a8538”}
Not sure what it is. This is the response I got from a third party company
that generates leads, we sent them the posting information and this is the
reply we got from them. They’ve sent it to this endpoint however: https://api.hubapi.com/contacts/v1/contact/?hapikey=
Last, you should regenerate that hapikey as soon as possible, which you can do from the same place that you originally got the key (the Get HAPIkey button on your developer dashboard). While that developer key can’t be used to get any actual data, it could be used to view information for the setup of any apps you’ve created.