Documentation

LogIn
  • Home
  • API
  • Update Deal Info/Details

This API is used to update deal information in the CRM .

Method: Get/Post

Base URL : https://hubbucs.com/site/api/hubb/edit_deal_info
Mandatory Parameters Sample Description
key 374593457034859 The company account API key, you can get from company settings > API settings
email [email protected] email for user to authenticate
password 123456 Password for user to authenticate
deal_id 789 ID for the existing deal .
action edit_details Action name to access info in DB .


Optional Parameters for Update Sample Description
won_reasons Reason Won Reason
lost_reason Reason Lost Reason
lost_reason_id Reason ID Lost Reason ID
deal_name Jon Deal Name
external_refernce_id 7885486753cddsgg external refernce Id
company_id 10 Company ID related to deal
amount 42 Expected Amount
Actual_close_amount 40 Actual Close Amount
stage 4 stage ID
expected_close_date 14-02-2020 Expected Close Date
actual_close_date 14-02-2020 Actual Close Date
main_contact_id 14 Main Deal Contact ID
close_status Approve Close Deal Status
lead_score Score Lead Score
funnel_id Funnel ID Funnel ID
owner_id 4 Owner ID
who_can_see 4,5,6 IDs for who given Permission
collaborators_readonly ['1','4','5'] collaborators Only Array
collaborators ['1','4','5'] collaborators FullAccess Array
products 3 Number of how many products sent by the user to update/insert
related_products_ids1
related_products_ids2
related_products_ids3
2
1
3
products Id Sent to update/insert
base_sell_price1
base_sell_price2
base_sell_price3
20
10
30
base sell price Sent to update/insert
sell_price1
sell_price2
sell_price3
22
24
44
sell price Sent to update/insert
quantity1
quantity2
quantity3
2
1
1
quantity Sent to update/insert
description1
description2
description3
test
test
test
description Sent to update/insert

Example:


				

Example :

https://hubbucs.com/site/api/hubb/edit_deal_info?key=12134651Gsuid7349&email=XXXXX&password=XXXXX&deal_id=XXXX&action=edit_details&[optional1=XXX&optinal2=XXXX...etc ]

Response :

  1. {
  2. "message":"success",
  3. }
  4. ------OR------
  5. {
  6. "error_message":"error message"
  7. }