Error trying to create deal in eCommerce Bridge v2

SOLVE
danielzmexico
Participant

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

0 Upvotes
1 Accepted solution

Accepted Solutions
danielzmexico
Solution
Participant

Hello, thanks for your response.

 

My error was a logical, i.e. i was pointing to incorrect url.

 

I change that, and works correctly

View solution in original post

2 Replies 2
RMones
Contributor

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

 

 

danielzmexico
Solution
Participant

Hello, thanks for your response.

 

My error was a logical, i.e. i was pointing to incorrect url.

 

I change that, and works correctly

View solution in original post