Can Deal Webhooks Include Data on the Products Associated with a Deal?

Can you pull data on a particular Deal’s associated Products via webhook?

Hi @Herschel,

I hope all is well with you :grinning_face_with_smiling_eyes:

Currently, it is not possible to pull the deal’s associated product information via the webhook subscription.

That said, from the webhook information, you can grab the deal id and use this endpoint: Get associations for CRM object to retrieve the line item (which contains the associated product(s)) id by using the definition 19 > Next, use the line item id in this endpoint: Get line item by ID, this will retrieve the product id > Finally, pluck in the product id into this endpoint: Get product by ID and add additional parameters such as:

&properties=name&properties=price

So that the return result of the product(s) will show the product name and price.

I hope this helps!

Hi @WendyGoh,

Thank you, this is very helpful.

Just to clarify - the price details returned in the last step will be the standard prices attached to the Product in the Product Library and not the specific Product line item associated with a particular Deal, which could have had it’s price updated on the Deal level (but not in the Product Library)?

Thanks,

Herschel

Hi @Herschel,

That is right! The price details returned from this endpoint: Get product by ID will be the stated price attached to the Product in the Product Library.

To get the specific price of the Product line item associated with a particular Deal, you can get it in the second step from this endpoint: Get line item by ID where you can include the &properties=price parameter and/or &properties=quantity.

Thank you @WendyGoh this is very helpful.

is there already a webhook to listen on list item changes?

Hey @phil_swelly,

Currently, while the HubSpot Webhook doesn’t support list item change, it supports the following subscription types:

  • Contact creations
  • Contact deletions
  • Privacy compliant contact deletions - see below for more details
  • Contact property changes
  • Company creations
  • Company deletions
  • Company property changes
  • Deal creations
  • Deal deletions
  • Deal property changes