We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Feb 23, 2021 4:06 PM
Hello
I have been following the documentation to integrate the eCommerce Bridge with my HubSpot account.
So far it works for me with contacts and products. So the next step is to integrate the deals.
Well, I followed the example of this url: https://legacydocs.hubspot.com/docs/methods/ecomm-bridge/v2/ecommerce-bridge-overview
Specifically the part where a contact is created, then a deal and at the end the line-items.
However, the part of creating the deal does not work:
This is my Json:
{
"storeId": "vtex_store",
"objectType": "DEAL",
"messages":
[
{
"action": "UPSERT",
"externalObjectId": "1000",
"changedAt": "1553486400000",
"properties":
{
"name": "1000",
"stage": "processed",
"purchase_date": "1542092841947",
"abandoned_cart_url": "google.com"
},
"associations":
{
"CONTACT":
[ "vtex000007" ]
}
}
]
}
The api responds to me with:
{
"status": "error",
"message": "Invalid input JSON on line 23, column 1: Cannot build Settings, some of required attributes are not set [enabled]",
"correlationId": "6d84a54d-10a6-4f59-afc9-a44dedbe3d97"
}
It sounds like I'm missing some attribute in the deal.
Do you know what it could be?
Thanks in advance
Solved! Go to Solution.
Feb 24, 2021 3:22 PM
Hello, thanks for your response.
My error was a logical, i.e. i was pointing to incorrect url.
I change that, and works correctly
Feb 24, 2021 3:22 PM
Hello, thanks for your response.
My error was a logical, i.e. i was pointing to incorrect url.
I change that, and works correctly
Feb 24, 2021 4:38 AM
Hi @danielzmexico ,
When I'm right the response from the API is giving you the anwser. The field enabled is missing in your response.
Invalid input JSON on line 23, column 1: Cannot build Settings, some of required attributes are not set [enabled]
Kind regards,
Ronald