Hello, I had one custom integraiton in which i need to associate product with deal and that is done by associating product with line item and that line item with deal but as of now i need to update quantity for line item that is associated with deal. So manually we can do this using line item editor of hubspot but i want to do this using api. I don't want to update main line item but want to update only line item that is associated with particular deal. If anyone have ideal regarding this please help me as fast as possible.
I don't know how work the product part of hs, but it should work like the other object. You should make a request to get all association of a deal, and update the line item associated to it
GET /crm/v3/objects/deals/{dealId}/associations/{toObjectType}
Com essa chamada você consegue pegar um "deal" específico os "line_items" associados, caso tenha. Se tiver, você vai encontrar uma estrutura de id e type relacionado a line_items. O que interessa, é o id. Com esse ID você pode usar a seguinte url:
I don't know how work the product part of hs, but it should work like the other object. You should make a request to get all association of a deal, and update the line item associated to it
GET /crm/v3/objects/deals/{dealId}/associations/{toObjectType}
Hello @quentin_lamamy , We want to link product to deal. for this we created line item from product and that line item we have associated with deal which working fine but we want update quantity of line item which is associated with deal. Single line item could be associated with multiple deal and line items quantity would be very for each deal So can you please help me that how I can update associated line items quantity for particular deal.