How to manage company in HubSpot?
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY fathimath.sajila
1 year ago
HubSpot
0
comments comment

HubSpot CRM manage sales processes of organizations. We can create contacts, company, leads, tasks using direct HubSpot CRM UI or using APIs provided by HubSpot. Here we are going to look at the APIs to create, update and delete companies.

Create a Company

This API is useful when we are integrating HubSpot with other site.

https://api.hubapi.com/companies/v2/companies?hapikey=demo&portalId=62515

Required Parameters to send request

  1. HubSpot OAuth Access Token or API Key
  2. Company JSON : It represents the company that you are creating. This should be in the proper JSON format.

If request is successful, you will get a 200 with an object of created company, which contains the company Id that is important for further process.

Update a Company

We can update a company using company Id. Example URL:

https://api.hubapi.com/companies/v2/companies/10444744?hapikey=demo&portalId=62515
  • HubSpot OAuth Access Token or API Key
  • Company : Send along with the URL.
  • Company JSON : This JSON represents the changes that you are making to the specified company.

Delete a Company

Deletes the existing company using its company id. The response shows whether the company is deleted or not. Deletes the existing deal using dealId. Return JSON deal which shows, it is deleted or not. Example URL:

https://api.hubapi.com/companies/v2/companies/10444744?hapikey=demo&portalId=62515

For any further assistance, do reach out us. If you want any Drupal solutions or Drupal assistance, do checkout our services.


RELATED ARTICLE

close

on 13th August 2015 / by fathimath.sajila
The API is allow you to create a functional application or integration quickly and easily. JSON will be returned in all responses from the API, including errors. The API needs two types of authentication, one is OAuth and the other is API keys. We can test API using HubSpot demo portal by signing in using the below credentials. Login: https://login.hubspot.com/login/?loginPortalId=62515 Username : testapi@hubspot.com Password : HubSpot API Key : demo OAuth Token : demooooo-oooo-oooo-oooo-oooooooooooo Hub ID : 62515We can refer contact API as an example. Contact API store lead-specific data which makes it possible to leverage most of the functionalities in HubSpot, from marketing automation, and to lead scoring to smarter contents. Create a new contact in HubSpot with a simple HTTP POST to the Contacts API. The contact created inside HubSpot, and it had unique ID so we can easily retrieve contact inside of HubSpot later. The API URL is, 'https://api.hubapi.com/contacts/v1/contact?hapikey=' . $hubspot_apikey';For example : <?php $val = array( array( 'property' => 'email_Id', 'value' => 'test1@gmail.com' ), array( 'property' => 'mob_no', 'value' => '5587878' ) ) ); $json_value= json_encode($val); $hubspot_apikey = 'demo'; $api_url = 'https://api.hubapi.com/contacts/v1/contact?hapikey=' . $hubspot_apikey; $c = @curl_init(); @curl_setopt($c, CURLOPT_POST, true); @curl_setopt($c, CURLOPT_POSTFIELDS, $json_value); @curl_setopt($c, CURLOPT_URL, $endpoint); @curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); @curl_setopt($c, CURLOPT_RETURNTRANSFER, true); $response = @curl_exec($c); @curl_close($c); echo $response; ?>Do you want a marketing help in your business, get a quote now. For more queries get in touch. API Integration HubSpot Leave a reply Your email address will not be published. Required fields are marker *
more_horiz
close

on 14th August 2015 / by fathimath.sajila
The Deal API is used to easy integration of Hubspot CRM. Deals API is provide a one:many relationship with contacts and companies.This is important for any integration to add deals to a contact or company. Now we can look on to the Deal API'S. Create a Deal : URL for posting in Hubspot is : https://api.hubapi.com/deals/v1/deal?hapikey=demo&portalId=62515. Required Parameters to send request : HubSpot OAuth Access API Key or Token Deal JSON : It represent deal that should be in the format { "associations": { "associatedCompanyIds": [8954039], "associatedVids": [27136] }, "portalId": 62515, "properties": [ { "value": "ACC sylicon", "name": "deal" }, { "value": "50000", "name": "price" }, { "value": "appointmentscheduled", "name": "dealstage" }, { "value": "newbusiness", "name": "dealtype" } ] }Note that you can create a deal with associations Contacts or Companies. You can also create an orphaned deal. Update a Deal Updates the deal with dealId. Returns JSON representing the updated deal. URL post to Hubspot: https://api.hubapi.com/deals/v1/deal/10444744?hapikey=demo&portalId=62515 HubSpot OAuth Access Token or API Key Deal Id :Used in the request URL (see above). Deal JSON : This is JSON that represents the changes that you are making to the specified deal. Deal JSON format is { "properties": [ { "name": "price", "value": "80000" } ] } Delete a Deal Deletes the existing deal of particular deal Id. Return JSON specified deal was actually deleted or not. Deletes the existing deal using deal Id. Return JSON deal shows it deleted or not.Example URL:https://api.hubapi.com/deals/v1/deal/10444744?hapikey=demo&portalId=62515 Feel free to clear your doubts and share your valuable suggestions. Do you want any-more business help, get a smart quote now. API HubSpot Leave a reply Your email address will not be published. Required fields are marker *
more_horiz
close

on 02nd January 2018 / by fathimath.sajila
HubSpot CRM manage sales processes of organizations. We can create contacts, company, leads, tasks using direct HubSpot CRM UI or using APIs provided by HubSpot. Here we are going to look at the APIs to create, update and delete companies. Create a Company This API is useful when we are integrating HubSpot with other site. https://api.hubapi.com/companies/v2/companies?hapikey=demo&portalId=62515 Required Parameters to send request HubSpot OAuth Access Token or API Key Company JSON : It represents the company that you are creating. This should be in the proper JSON format. If request is successful, you will get a 200 with an object of created company, which contains the company Id that is important for further process. Update a Company We can update a company using company Id. Example URL: https://api.hubapi.com/companies/v2/companies/10444744?hapikey=demo&portalId=62515HubSpot OAuth Access Token or API Key Company : Send along with the URL. Company JSON : This JSON represents the changes that you are making to the specified company. Delete a Company Deletes the existing company using its company id. The response shows whether the company is deleted or not. Deletes the existing deal using dealId. Return JSON deal which shows, it is deleted or not. Example URL: https://api.hubapi.com/companies/v2/companies/10444744?hapikey=demo&portalId=62515For any further assistance, do reach out us. If you want any Drupal solutions or Drupal assistance, do checkout our services. HubSpot Leave a reply Your email address will not be published. Required fields are marker *
Leave a reply
Your email address will not be published. Required fields are marker *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.