You can associate line items to deals using the CRM Associations API. Here's an example:
{
"fromObjectId": 496346, // This is the line item id
"toObjectId": 176602, // This is the deal id
"category": "HUBSPOT_DEFINED",
"definitionId": 20 // This is the definitionId for a line item -> deal association
}
We are now able to create product and line items. We have associated contact with deal but we are not able to associate line item/product to deal. So please send one example that how to associate line item/product to deal.
Apologies for the delay in resolution here. This topic didn't get properly updated, but the issue here is that since products is a Sales pro feature, test portals aren't currently auto-provisioned. I've given that portal temporary access for the next 60 days, which should give you time to fully test the Products API. In the future, test portals will eventually automatically have appropriate access.
There is a separate Products API; I'll include a link to the docs below. I'm not entirely clear on the other part of your question, though; are you in a test portal without access to products? If you give me your Hub ID, I can investigate.
To create a deal, you'll want to make a request to the 'Create a deal' endpoint of the Deals API. To associate the deal with a product, you'll want to create a line item and associated it with the deal via the Line Items API and CRM Associations API:
Thanks for your reply.
Hubspot is not allowing to add the products and asking for update to enterprise plan. So how use it with trial version.
Is there any api for creting products separately?