APIs & Integrations

ATarasov
Participant

How to specify pipeline for Deal?

SOLVE

I've added several Deals via Ecommerce API, there are no sync or other errors, returns were successful. I see how the number of orders on the E-commerce page is increasing but for some reason I can't find recently added Deals on Deals page. We've initially created several new pipelines + there is default basic Ecommerce pipeline as well. 

 

How can I specify which pipeline deal should get into? I tried states for both newly created and for default Ecommerce pipeline, no luck.
My typical request was:

 

 

{
  "storeId": "store-id",
  "objectType": "DEAL",
  "messages": [
    {
      "action": "UPSERT",
      "changedAt": "1628234828",
      "externalObjectId": "test6",
      "properties": {
        "external_deal_name": "test6",
        "external_deal_stage": "in_cart",
        "external_deal_purchase_start_date": "1628234828",
        "external_deal_amount": 1000
      }

    }
  ]
}

 

 

 
Documentation and video indicate that Deals enter the pipeline by default(not works for us as well unfortunately), but we have several pipelines, how to set a specific one?
 
Thanks a lot.
0 Upvotes
1 Accepted solution
ATarasov
Solution
Participant

How to specify pipeline for Deal?

SOLVE

Problem solved by myself. The reason is the lack associated Contact. First I need to create a Contact, then associate Deal to it. Deals without linked Contacts are hidden. 

View solution in original post

4 Replies 4
ATarasov
Solution
Participant

How to specify pipeline for Deal?

SOLVE

Problem solved by myself. The reason is the lack associated Contact. First I need to create a Contact, then associate Deal to it. Deals without linked Contacts are hidden. 

ATarasov
Participant

How to specify pipeline for Deal?

SOLVE

 

{
  "storeId": "store-id",
  "objectType": "DEAL",
  "messages": [
    {
      "action": "UPSERT",
      "changedAt": "1628402243",
      "externalObjectId": "test9",
      "properties": {
        "external_deal_name": "test9",
        "external_deal_stage": "checkout_pending",
        "external_deal_purchase_start_date": "1628402243",
        "external_deal_amount": 2000
      }

    }
  ]
}

 

This is how I sent it .. there are no errors, but I don’t see DEAL either.

As for mapping DEAL part is the next:

 

{
   "enabled":true,
   "webhookUri":"https://myapi.com/my-webhook-handler",
   "mappings":{
      ...
      "DEAL":{
         "properties":[
            {
               "externalPropertyName":"external_deal_stage",
               "hubspotPropertyName":"dealstage",
               "dataType":"STRING"
            },
			{
               "externalPropertyName":"external_deal_amount",
               "hubspotPropertyName":"amount",
               "dataType":"INTEGER"
            },
            {
               "externalPropertyName":"external_deal_purchase_start_date",
               "hubspotPropertyName":"createdate",
               "dataType":"STRING"
            },
            {
               "externalPropertyName":"external_deal_name",
               "hubspotPropertyName":"dealname",
               "dataType":"STRING"
            }
         ]
      }
      ...
   }
}

 

 

2021-08-08 09.09.51.png2021-08-08 09.09.07.png

0 Upvotes
Josh
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

How to specify pipeline for Deal?

SOLVE

Hi @ATarasov,

 

Last I was aware, you cannot change the default pipeline when using eCommerce Bridge. Here's a reference. It's certainly possible something has changed since September, but I haven't seen anything specific.

 

I hope that helps!


Josh  




Did this post help solve your problem? If so, please mark it as a solution.

Josh Curcio

HubSpot support and inbound marketing for OEMs, contract manufacturers, and industrial suppliers.
HubSpot Platinum Partner & HubSpot Certified Trainer

ATarasov
Participant

How to specify pipeline for Deal?

SOLVE

Thanks @Josh ! yes, this is what I worried about, it will be interesting to hear relevant information to date.

 

I've retested successfully Lead creation using default Ecommerce pipeline stage "checkout_pending", and result is the same, I see nothing on Deals page for default Ecommerce pipeline.

0 Upvotes