APIs & Integrations

Dave_A
Participant | Elite Partner
Participant | Elite Partner

Adding a product via e-commerce bridge reports success but silently fails

When adding a product via the e-comm bridge api I receive a 204 code indicating success. However several hours later the product is not showing via the UI. We have tested both production and testing accounts with the same results, I'm pretty sure this was working yesterday.

Sample Code:
headers = { "Content-Type": "application/json", }

body = json.dumps(
[
   {
  "integratorObjectId":"CUDDLLILACXW420",
  "action":"UPSERT",
  "changeOccurredTimestamp":1543450561000,
  "propertyNameToValues":{
     "hd_sku_overall_style":"CUDDLLILAC",
     "hd_sku_size_fit":"CUDDLLILACXW420",
     "hd_size":"420",
     "hd_width":"XW",
     "hd_colour_primary":"PI/PU",
     "hd_colour_secondary":"LILAC",
     "name":"CUDDLES LILAC SLIPPER",
     "hd_heel_height":"ZH1",
     "hd_orthotic_friendly":"N",
     "hd_item_type":"SHB",
     "hd_major_grp":"SLIP",
     "hd_minor_grp":"SLIPPER",
     "hd_product_type":"FOOT",
     "hd_unit_of_measure":"PR",
     "hd_brand":"ZO"
  }
   }
]
)

res = requests.put("https://api.hubapi.com/extensions/ecomm/v1/sync-messages/PRODUCT?hapikey={}".format(hapikey), data=data, headers=headers)

I've tried a status check via sync-status
headers = { "Content-Type": "application/json", }
res = requests.get("https://api.hubapi.com/extensions/ecomm/v1/sync-status/PRODUCT/{}?hapikey={}".format("CUDDLLILACXW42...", hapikey), headers=headers)

and received the following response:
{"status":"error","message":"internal error","correlationId":"7f4a2a3f-ee00-4aca-b8c4-77a3b22d6685","requestId":"e3a72d3e8de54712eeda456f4ad523fe"}

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Adding a product via e-commerce bridge reports success but silently fails

Welcome, @Dave_A!

To clarity, are you experiencing this issue with only the product above, or for multiple objects?

Would you share both your production and test Hub IDs? I'd like to test the sync message myself in the test account.

Isaac Takushi

Associate Certification Manager
0 Upvotes