I’m trying to integrate NetSuite and HubSpot for Contact and Company and get this (405) error when trying to upload Company to HubSpot. Can you please look at the below API Request/Response? Thank you!
Error:
HTTP/1.1 405 Method Not Allowed
Access-Control-Allow-Credentials: false
Allow: HEAD,DELETE,GET,OPTIONS,PUT
Content-Length: 0
Date: Wed, 26 Oct 2016 15:09:51 GMT
Connection: close
Your call is attempting to POST to an explicit companyID, which isn’t possible; companyIds are generated by the HubSpot backend and returned within the response to the call. Currently you’re POSTing to the ‘Update a Company’ endpoint found here, which only allows the PUT HTTP method, not POST.
{“status”:“error”,“message”:“A contact with the email ‘Optional[test@test.com]’ already exists.”,“correlationId”:“44bcee89-79dc-4a15-982e-59b0f7d6c715”,“identityProfile”:{“vid”:1202825,“identity”:[{“value”:“jacquelyn@frazierandsonfurniture.com”,“type”:“EMAIL”,“timestamp”:1476916078299},{“value”:“e57e10c2-c4b0-4a8a-90ed-983031212877”,“type”:“LEAD_GUID”,“timestamp”:1476916080788}],“linkedVid”:[],“isContact”:true,“savedAtTimestamp”:1476916080789},“error”:“CONTACT_EXISTS”,“requestId”:“c132480f-4bea-4e4d-a5f6-9c61edece24d”}