APIs & Integrations

aemmi
Participant

Line Items not showing up on Deals Ecommerce

SOLVE

I'm attempting to link a line item to a deal.  I don't receive an errors from the sync messages at 

http://api.hubapi.com/extensions/ecomm/v1/sync-status/LINE_ITEM/26355078_28693385

 

 

I've see other post that received an error and the response was the account is not setup as Sales Hub Professional.  Is this the case with my account as the result I received was

 {"lastProcessedAt":1552327098736,"numErrors":0,"hubspotId":101381326,"objectType":"LINE_ITEM","externalObjectId":"26355078_28693385"}

Thank You

 

Angelo

 

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Line Items not showing up on Deals Ecommerce

SOLVE

Thanks for reminding me about this, @aemmi.

 

Line item102055668 actually is successfully associated with deal 608642225.

 

You can confirm this association with this endpoint by using the request URL https://api.hubapi.com/crm-associations/v1/associations/608642225/HUBSPOT_DEFINED/19. (The definitionId of 19 comes from this page.)

 

You can see the line item in the UI on this page, however it doesn't display any name or description because line items don't have names or descriptions unless they are set (they do not automatically inherit them from the products they are created from).

 

Line item 102055668.jpg

 

You can confirm that line item 102055668 has no name or description by using this endpoint and the request URL https://api.hubapi.com/crm-objects/v1/objects/line_items/102055668.

 

To make it clearer that the line item is properly associated with a deal, I recommend updating the line item's name or description properties with this endpoint.

Isaac Takushi

Associate Certification Manager

View solution in original post

5 Replies 5
ZAlna4
Member

Line Items not showing up on Deals Ecommerce

SOLVE

Is this good idea to use the above script in dynamic hosted Ecommerce website? I'm working for locan country based Ecommerce site and I want to show itmes line.

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Line Items not showing up on Deals Ecommerce

SOLVE

Hey, @aemmi.

 

To clarify, Sales Hub Professional is not required for syncing line item objects through the Ecommerce Bridge. Apologies for the confusion.

 

That said, I'm yet not sure why you are unable to associate the line item with externalObjectIdof 26355078_28693385 with a HubSpot deal.

 

Can you confirm the dealId of the record you are trying to associate?

Isaac Takushi

Associate Certification Manager
0 Upvotes
aemmi
Participant

Line Items not showing up on Deals Ecommerce

SOLVE

Isaac, @IsaacTakushi,

I first sent a product synce message

http://api.hubapi.com/extensions/ecomm/v1/sync-messages/PRODUCT
[
  {
    "integratorObjectId": "14806",
    "action": "UPSERT",
    "changeOccurredTimestamp": 1552494778000,
    "propertyNameToValues": {
      "product_name": "D15105",
      "product_id": "14806"
    }
  }
]

I then verified the result

http://api.hubapi.com/extensions/ecomm/v1/sync-status/PRODUCT/14806
{"lastProcessedAt":1552494780740,"numErrors":0,"hubspotId":17018260,"objectType":"PRODUCT","externalObjectId":"14806"}

I then created the deal

http://api.hubapi.com/extensions/ecomm/v1/sync-status/DEAL/907026_26356192
{"lastProcessedAt":1552494944201,"numErrors":0,"hubspotId":608642225,"objectType":"DEAL","externalObjectId":"907026_26356192"}

https://app.hubspot.com/contacts/3977210/deal/608642225/?interaction=note

My next step was to associate the deal with a line

http://api.hubapi.com/extensions/ecomm/v1/sync-messages/LINE_ITEM
[
  {
    "integratorObjectId": "26356192_28715391",
    "action": "UPSERT",
    "changeOccurredTimestamp": 1552495263000,
    "propertyNameToValues": {
      "product_id": "14806",
      "deal_id": "907026_26356192",
      "line_item_qty": "1",
      "line_item_price": "8"
    }
  }]

http://api.hubapi.com/extensions/ecomm/v1/sync-status/LINE_ITEM/26356192_28715391
{"lastProcessedAt":1552495265921,"numErrors":0,"hubspotId":102055668,"objectType":"LINE_ITEM","externalObjectId":"26356192_28715391"}

When I look at the deal I can't see what lines/products are associated with this deal.  Where can I verify this information

 

Thank you

 

Angelo

0 Upvotes
aemmi
Participant

Line Items not showing up on Deals Ecommerce

SOLVE

Isaac, @IsaacTakushi,

 

Any update on this to why Ican't sync my line_items to my deals

 

 

0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Line Items not showing up on Deals Ecommerce

SOLVE

Thanks for reminding me about this, @aemmi.

 

Line item102055668 actually is successfully associated with deal 608642225.

 

You can confirm this association with this endpoint by using the request URL https://api.hubapi.com/crm-associations/v1/associations/608642225/HUBSPOT_DEFINED/19. (The definitionId of 19 comes from this page.)

 

You can see the line item in the UI on this page, however it doesn't display any name or description because line items don't have names or descriptions unless they are set (they do not automatically inherit them from the products they are created from).

 

Line item 102055668.jpg

 

You can confirm that line item 102055668 has no name or description by using this endpoint and the request URL https://api.hubapi.com/crm-objects/v1/objects/line_items/102055668.

 

To make it clearer that the line item is properly associated with a deal, I recommend updating the line item's name or description properties with this endpoint.

Isaac Takushi

Associate Certification Manager