I am trying to sync hubspot and netsuite and in my user event script, I used a post request to send contact details from netsuite to hubspot but it isn’t working. The post request is not creating a new contact in hubspot. This is the code, can someone help me with this.
const link = 'http://api.hubspot.com/crm/v3/objects/contacts';
var response = http.request({
method: http.Method.POST,
url: link,
headers: { 'Authorization': 'Bearer '+ PRIVATE_APP_ACCESS ,
'Content-Type': 'application/json',
'Accept': "*/*"
},
body: { "properties": {
"email": "[email protected]",
"firstname": "micheal"
}}
});