HubSpot API Integration Issue


#1

In HubSpot API integration, we are facing issues in posting the custom “Lead Status” value with contact details. We have added two new values for “Lead Status” field (WON/LOST), but getting error, when posting the same details as property in the Create/Update contact API. Here are the details:

https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/prakash.k@infocratsweb.com/?hapikey=9ae4fe9d-4998-4aa9-96e9-2c645b2a4423

Request::

{“properties”:[{“property”:“firstname”,“value”:“Test”},{“property”:“lastname”,“value”:“Quacito”},{“property”:“email”,“value”:“prakash.k@infocratsweb.com”},{“property”:“address”,“value”:“1235 Safari St”},{“property”:“address_2”,“value”:""},{“property”:“city”,“value”:“San Antonio”},{“property”:“state”,“value”:“Tx”},{“property”:“zip”,“value”:“78216”},{“property”:“county”,“value”:“United State”},{“property”:“phone”,“value”:“210-695-0795”},{“property”:“hs_persona”,“value”:“persona_1”},{“property”:“location”,“value”:“010101”},{“property”:“service_code”,“value”:“AN”},{“property”:“target”,“value”:“OXPS”},{“property”:“hs_lead_status”,“value”:“Won”},{“property”:“lifecyclestage”,“value”:“customer”}]}

Response:

{“status”:“error”,“message”:“Property values were not valid”,“correlationId”:“ec078c44-5511-4f08-9be6-c7b5307e7081”,“validationResults”:[{“isValid”:false,“message”:“Won 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”:“9c1807f4ef03df36018a00924a5984be”}