We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jan 31, 2022 5:25 AM - edited Jan 31, 2022 6:17 AM
Hi,
Simple question hopefully.
If we get our existing API mappings via this endpoint:
GET https://api.hubapi.com/extensions/ecomm/v2/settings?hapikey={our-hapi-key}
And then add some new entries in JSON body for some new information we need to record, can we just post that entire payload back to HubSpot using:
PUT https://api.hubapi.com/extensions/ecomm/v2/settings?hapikey={our-hapi-key}
I think we tried this before and it had problems. The endpoint for our mappings has some entries like this:
{
"externalPropertyName": "external_source_app_id",
"hubspotPropertyName": "ip__sync_extension__external_source_app_id",
"dataType": "STRING"
}
We did not add these, they were just returned in the payload. Do we leave them in there when trying to re-sync our new data? We just want to add two new fields in the CONTACT section.
Thanks.
Solved! Go to Solution.
Jan 31, 2022 7:43 AM
@j_j yes you can use GET https://api.hubapi.com/extensions/ecomm/v2/settings?hapikey={our-hapi-key} to get the current e-commerce bridge mapping
Then remove the following entries from the JSON response (for all objects)
Then add the new entries in JSON body for the new information you need to record, then post that entire payload back to HubSpot using
PUT https://api.hubapi.com/extensions/ecomm/v2/settings?hapikey={our-hapi-key}
I hope this is helpful.
Jan 31, 2022 7:43 AM
@j_j yes you can use GET https://api.hubapi.com/extensions/ecomm/v2/settings?hapikey={our-hapi-key} to get the current e-commerce bridge mapping
Then remove the following entries from the JSON response (for all objects)
Then add the new entries in JSON body for the new information you need to record, then post that entire payload back to HubSpot using
PUT https://api.hubapi.com/extensions/ecomm/v2/settings?hapikey={our-hapi-key}
I hope this is helpful.
Jan 31, 2022 8:40 AM
Thanks, I removed them and it gave me a 200 (OK) response.