Thanks for the response... We got a solution for this as stated below.
I'm creating LINEITEM with externalObjectID as "Lineitem_" + xx123 (here xx123 is productCode). So, here there is a chance of getting duplicates if I order the same product(xx123) in another Order - so, it's not creating a new Line-item for new Deal.
Now, I fixed by adding an order code to it to make it unique every time. Like
Thanks for the detailed post this helps a lot. I've looked through it and I cannot see anything immediately wrong with what you are sending into HubSpot. I've also recreated your test using the same timestamps and I am seeing line items being created on my order (see below):
The above is the result of the following PUT request:
My recommendation at this point would be to use the "Check sync status of an object" endpoint to ensure the LINE ITEMS are being correctly associated to the deal. This is assuming that you are seeing blank LINE ITEMS on the DEAL object. Your request would look something like this:
ENDPOINT:
GET https://api.hubapi.com/extensions/ecomm/v2/sync/status/store-1/LINE_ITEM/lineItem_xx-SM-060?hapikey={{apikey}}
If there has been an error, it will appear in the errors array in the response and an erroredAt field will be present. If you could share this error (if any) for the 3 line items you are attempting to create that would be great!
Thanks for the response... We got a solution for this as stated below.
I'm creating LINEITEM with externalObjectID as "Lineitem_" + xx123 (here xx123 is productCode). So, here there is a chance of getting duplicates if I order the same product(xx123) in another Order - so, it's not creating a new Line-item for new Deal.
Now, I fixed by adding an order code to it to make it unique every time. Like