You are doing it all right, but can you please check the status of your sync and make the upsert call when your dependent association objects sync is successfully synced.
You are doing it all right, but can you please check the status of your sync and make the upsert call when your dependent association objects sync is successfully synced.
Missing required fields [hs_assoc__product_id] error on line item sync
SOLVE
@himanshurauthan is the resident expert with Ecommerce Bridge. Hoping he can add his voice. @Mike_Eastwood , I forget if you have experience with it is as well
Missing required fields [hs_assoc__product_id] error on line item sync
SOLVE
This is somewhat difficult to follow because it is not including the endpoint path that was used. Looking at the post tags it would appear it is in the e-commerce bridge which only a few people are using, and I don't use it because I am selling services not goods.
Designing it in my head blind with no testing, I THINK you will get the ID you need by using the data from /crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType} and /crm/v3/objects/products/{productId} though. Put the line item into the first API by its ID and object type product. Then you can see the product ID directly, and the details of the product if needed via the second API using the ID discovered using the first.
Missing required fields [hs_assoc__product_id] error on line item sync
SOLVE
I got the search working and returned a product. The only id I see is the hs_object_id which does not match the format in the error message of eib-wsm-xxxxxxxxxx
"details": "Invalid associations [hs_assoc__product_id: eib-wsm__10482]. Do those objects exist?",
Missing required fields [hs_assoc__product_id] error on line item sync
SOLVE
I need the productId to get the hs_product_id? Aren't those the same thing? How do I get it if I don't know it to begin with?
You did not read the entire reply fully. I also included /crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType} and explained that you need that one for just IDs, and this other one to get any further properties or details.
I need the productId to get the hs_product_id? Aren't those the same thing? How do I get it if I don't know it to begin with?
You did not read the entire reply fully. I also included /crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType} and explained that you need that one for just IDs, and this other one to get any further properties or details.
I read the part about running /crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}, but that doesn't return anything because the error I showed prevents any associations from being made.
I made some changes to my call and got a slightly different error. Changes and error are below:
CODE - change being adding the product association
The documentation example on Hubspot shows to use the product externalobjectid in the line item associations which I have done. It does not show/mention anything about hs_assoc__product_id