I need to connect my ecomm bridge LINE ITEM to an API created DEAL

Ok, this is the situation: I have an ecommerce bridge set up for a webshop. Working like a charm. But because of a couple of reasons I need to use the Rest API for connecting ANOTHER external service. I’ve managed to create contacts, companies and deals using the API, but I get stuck at the very end: creating and associating LINE_ITEMs :disappointed_face: Extremely frustrating!

When using the API to create a LINE ITEM, I can’t connect them to the products that were synced with the ecomm bridge…I have no idea why that’s not possible, but it isn’t. In a post I found the solution was to add the product using the API as well. But somehow it is not allowed to add products using the API…(beside the point, that it seems very inefficient to add the same products twice to the hs db).

When I use the ecomm bridge to sync the line items, I can’t associate them to the deal, because the ecomm bridge only accepts the deal id of the source, not the Hubspot deal id. Are there property names I’m missing here? Something like hs_deal_id I can use for the ecomm bridge?

Can someone please point me to a solution (other then multiple stores in the ecomm bridge).

Hey @bob3

Going to throw a few people into this conversation to see if we can get this solved!

@rowan-reid , @telehealth , @krisdept and @hawkishtester -- Do any of you have thoughts on this question from a fellow ecommerce bridge developer?

And any luck?

I contacted support and the products option requires another subscription we don’t have. So that leaves me with 2 options:

1) Is there a way to associate the line item using the ecomm bridge with a deal, using the hubspot deal id? So is there a hubspot_deal_id like property available? This would be my preferred method as that would be a 1 minute job for me.

2) If option 1 is not possible, my only alternative is to recode the hole thing using the new (at least for me) multiple stores feature. When I create and sync this second store, can I leave my original ecomm bridge code for the first store unchanged? So will the original code automatically default to the first/default ecomm bridge store? That would save me a bunch of work.

Hey @bob3

Going to throw one more expert at this :crossed_fingers:

@himanshurauthan , do you have thoughts on this?

I would love to hear thos thoughts :slightly_smiling_face:

Facing the same issue at the moment. Was there a resolution?

Hears hoping @himanshurauthan hears the cries of the people for his sage advice!

Ok, unable to reply to other comments (get message “Authentication failed”), so had to reply on my own post.

I had to go for the multiple stores setup. That was the only viable solution in my case.

I didn’t have to change the code for the original store I synced. So that was nice.

Thanks for posting your solution, @bob3 .

Also, apologies for the reply errors. We are going through some maintenance and looks like there are a few :bug: