APIs & Integrations

NicoNicoNii
Member

How to Update a Deal Property via API from an External System (Pronto Xi)

Hey everyone,

We’re trying to set up an integration between Pronto Xi (our ERP system) and HubSpot. The goal is for Pronto Xi to send a request that updates a dropdown property in a HubSpot deal when an action is triggered.

For example, if I press a button in Pronto Xi, it should send a request to HubSpot to update the deal property. Would something like this be the correct approach?


https://api.hubapi.com/crm/v3/objects/deals/{dealId}/properties


https://app.hubspot.com/contacts/{account}/record/0-3/{dealId}/properties?[parameters]


I’m not a developer myself, but I’m working with our programmers to figure this out. I’ll pass on any technical details to them. Could someone help clarify:

The correct API endpoint for updating a deal property
How the request should be structured (authentication, or any other else)
Any best practices or potential issues to watch out for

Has anyone done something similar? Any advice would be greatly appreciated!

Thanks in advance! 😊

1 Reply 1
GRajput
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

How to Update a Deal Property via API from an External System (Pronto Xi)

Hi @NicoNicoNii 

 

Create a pvt app in your instance, provide this scope crm.objects.deals.write you will get an access token from this pvt app, you need super admin level access for this.
here is the curl to update the deal

 

curl --request PATCH \
  --url https://api.hubapi.com/crm/v3/objects/deals/dealId \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'content-type: application/json' \
  --data '{
  "objectWriteTraceId": "string",
  "properties": {
    "property_date": "1572480000000",
    "property_radio": "option_1"
  }
}'

 

You have to use the internal name of property that you want to update.

 

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes