- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Error trying to create deal in eCommerce Bridge v2
SOLVEFeb 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content