Trying to Update E-Commerce Bridge Sync Settings but getting error

I have set the following properties up in my account in Deal Object and Contact Object. Just trying to map the properties at this point to use the sync-message api call.

I was able to import them if I change enabled to false, but that just makes them show up in the GET https://api.hubapi.com/extensions/ecomm/v1/settings not enabled. Any help would be great!!

Request:

POST https://api.hubapi.com/extensions/ecomm/v1/settings

{
 "enabled": true,
 "importOnInstall": false,
 "contactSyncSettings": {
 "properties": [
 {
 	"propertyName": "my_code_first",
 "dataType": "STRING",
 "targetHubspotProperty": "my_code_first"
 },
 {
 	"propertyName": "my_code_last",
 "dataType": "STRING",
 "targetHubspotProperty": "my_code_last"
 }
 ]
 },
 "dealSyncSettings": {
 "properties": [
 {
 "propertyName": "my_code",
 "dataType": "STRING",
 "targetHubspotProperty": "my_code"
 }

 ]
 }
}

Response

{
 "status": "error",
 "message": "Missing required DEAL targetHubspotProperties : [dealstage]",
 "correlationId": "3e914933-e2a4-408a-b448-cc57944b025d11",
 "requestId": "902ef915-7bb2-4715-904c-f8fee4ffd04411"
}

Hey @ckonkel,

This error occured because the required mappings for `Deal` - specifically `dealstage` wasn’t defined when your team upsert the ecommerce settings.

You would need to include `dealstage` under the `dealSyncSettings` properties array.

Do let me know if this works for you!

There are a few properties that must be mapped in your ecomm settings. See the documentation on Ecomm Bridge Overview and search on the page for “Required Properties” section. (see screenshot below)

According to the docs, each object type must have certain properties defined in ecomm mapping settings. You must also include a value for these required properties when you attempt to import a CRM object. Otherwise Hubspot will not create the new object.

With a test portal try adding these properties to your ecomm settings. Attempt the import again, but make sure to provide an email address for Contact objects and a valid dealStage for Deal objects. The dealStage value must actually exist in your portal.