Ecommerce Bridge - Deal Amount Blank

I am getting started with the ecommerce bridge. To start I went throught the samples here: https://legacydocs.hubspot.com/docs/methods/ecomm-bridge/v2/ecommerce-bridge-overview.

Under the section named Example product and purchase scenario I believe I followed all the entries exactly. After completing I am able to see the deals I have created appear, but the ‘Amount’ column is always blank. I have tried a few times with different contacts, products, deal stages etc. I can see that the deal is created and that the contact is linked to the deal and the product has a price, but under deals the amount is always blank and when viewing the contact properties I see the deals for that contact, that it was process, but still no amount. Under ‘Line Items’ I do see an amount.

Any ideas what I am missing?

@zaklein , apologies for the abundances of tagging you in, but I believe this is an area you have expertise :folded_hands:

Hi @rygap_hs

In the examples you’ve followed, I don’t see the Deal amount property being referenced (unless I’ve completely missed it). Maybe you were expecting the Deal amount to be “1000” due to the Deal name (a different property, completely separate from Deal amount) being set as such in the example?

If so, you’ll first need to update your e-commerce property mappings to include the Deal amount property (and any other properties you intend to use within your integration). You’ll then need to include the Deal amount property in your e-commerce sync message.

For example, assuming your Deal e-commerce property settings look like this (note that you must update property settings for all object types in the same call -- the below is just for illustrative purposes):

"DEAL": {
 "properties": [
 {
 "externalPropertyName": "purchase_date",
 "hubspotPropertyName": "closedate",
 "dataType": "STRING"
 },
 {
 "externalPropertyName": "name",
 "hubspotPropertyName": "dealname",
 "dataType": "STRING"
 },
 {
 "externalPropertyName": "stage",
 "hubspotPropertyName": "dealstage",
 "dataType": "STRING"
 },
 {
 "externalPropertyName": "abandoned_cart_url",
 "hubspotPropertyName": "ip__ecomm_bridge__abandoned_cart_url",
 "dataType": "STRING"
 },
 {
 "externalPropertyName": "order_total",
 "hubspotPropertyName": "amount",
 "dataType": "NUMBER"
 }
 ]
}

Then the following e-commerce sync message should successfully update all properties included within:

{
 "storeId": "YOUR_STORE_ID",
 "objectType": "DEAL",
 "messages": [
 {
 "action": "UPSERT",
 "externalObjectId": "1000",
 "properties": {
 "name": "1000",
 "stage": "processed",
 "purchase_date": "1542092841947",
 "order_total": "1000"
 }
 }
 ]
}

I hope this proves helpful :slightly_smiling_face:

All the best,

Zach

Thank you. I see now, that when I was previously making the request, I was using the hubspotPropertyName “amount” rather than the externalPropertyName “order_total” on the Deal object.