APIs & Integrations

ajinvise
Teilnehmer/-in | Elite Partner
Teilnehmer/-in | Elite Partner

When/how add Line Items to deals via API?

lösung

Im migrating to HubSpot via the API and it's awesome so far. After creating a deal, im using the associationsApi to attach to my companies and contacts. And I have products set up. But how do I add line items?

Is this to be considered an association to deal? I dont see Line Items under Data Management -> Objects where I would normally go to view associations. Do I first need to create a line item, then associate it? Or are there some shortcut or special handling for this?

Thanks!

1 Akzeptierte Lösung
Jaycee_Lewis
Lösung
Community-Manager/-in
Community-Manager/-in

When/how add Line Items to deals via API?

lösung

Hey, @ajinvise 👋 You are correct, you'll need to create the product and then a line item. Once that is done, you can associate it to Deals.

 

Here is a recent post where I covered creating a Product and Line Item and successfully associated it to a Deal — Associate product as line item to deal. My post includes a link to a guide from one of our Community Champions on how to create a Product and Line Item via our API. 

 

I hope this helps get you moving forward.

 

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
ajinvise
Teilnehmer/-in | Elite Partner
Teilnehmer/-in | Elite Partner

When/how add Line Items to deals via API?

lösung

Thank you @Jaycee_Lewis 🙌 good stuff

Jaycee_Lewis
Lösung
Community-Manager/-in
Community-Manager/-in

When/how add Line Items to deals via API?

lösung

Hey, @ajinvise 👋 You are correct, you'll need to create the product and then a line item. Once that is done, you can associate it to Deals.

 

Here is a recent post where I covered creating a Product and Line Item and successfully associated it to a Deal — Associate product as line item to deal. My post includes a link to a guide from one of our Community Champions on how to create a Product and Line Item via our API. 

 

I hope this helps get you moving forward.

 

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot