[Zendesk Sell] Get Products attached to a specific Deal | Community
Skip to main content

[Zendesk Sell] Get Products attached to a specific Deal

  • February 3, 2022
  • 1 reply
  • 0 views

I'm a little new to Zendesk Sell's (Base) REST APIs, but I'm looking to enable an automation when a Deal has a specific Product ID attached to it.  I understand the top-down data hierarchy to be Deal -> Order -> Product, but I don't see an easy way to traverse the API to get that information.

  • GET Deals doesn't shows Orders
  • GET Orders shows Deal ID but doesn't show Products
  • GET Products doesn't show associated Order IDs or Deal IDs

The Search API might have what I need, but I haven't dug into that yet.  Any thoughts? And apologies in advance if I'm overlooking anything.

1 reply

  • February 3, 2022
Hi Chris!
 
Thanks for posting your question to the Community. The Search API is the most efficient way of doing this type of advanced filter. Filtering allows you to add specific attributes and parameters to return exact results. 
 
Have you also taken a look at the Line Items endpoints in the REST API? It returns all line items associated with an order and includes the Product ID and the Order ID.  However, you would still have to traverse 3 different endpoints to be able to locate a specific Product ID with your Deals.
 
Hope this helps!
 
Best,
 
Erica - Dev Support