am Dez 3, 201912:00 AM - zuletzt bearbeitet am Dez 3, 20198:52 PM von WendyGoh
Mitwirkender/Mitwirkende
Custom Deal pipeline and dealstages not assigning to new Deals
lösung
Created a new Deal pipeline with 5 deal stages. When creating a new Deal via eCommerce Bridge API, Deal is creating with an empty pipeline, stage & some custom attributes as well.
If you'd like to set your own deal stage internal id, I'd suggest for you to use this endpoint - Update an existing pipeline.
One thing to take note when using this endpoint is that, this update wouldn't append the stage to the existing deal stages. It would override existing deal stages hence I'd advise for you to indicate all the deal stages. Something like this:
I'm happy to help, but please do not share full authentication credentials on this public forum. If you post a HubSpot API key or OAuth access or refresh token on the Community, it should be considered compromised and should be deactivated immediately.
1. All deals created through the Ecommerce Bridge API would be under the Ecommerce Pipeline and hence it is not possible for you to define your own pipeline. Additionally, the deal stage set must be a deal stage that is a part of the Ecommerce pipeline.
If you try passing:
"stage": "processed",
which is a stage in the Ecommerce Pipeline, you should see the deal stage and the pipeline populated out just fine - Refer to the test deal (HSTEST) that I created via the Ecommerce Bridge API.
2. Also, when using this endpoint Get ecommerce settings v2 to get your ecommerce settings, I'm not seeing property company_name and sap_order_number being defining under deal properties. If you'd like to create deal with these two properties, you would need to create/update the ecommerce settings .
Sorry about that for sharing the trail account hapiKey without masking(forgot it). Thanks for raising, reset now & generated new hapikey.
1. Hence it is not possible for you to define your own pipeline. - Thanks for letting me know this... This changes my way of thinking...
2. Can we create a new deal stage for Ecommerce Pipeline, if yes - I tried creating from HS dashboard and it's generated a random internalId instead of creating like internalId as partially_shipped
As we automate Deals based on dealstages, we need internalId's be like shipping, cancelled etc... Please suggest me if there is any way of setting stage internalId as the stage name format.
If you'd like to set your own deal stage internal id, I'd suggest for you to use this endpoint - Update an existing pipeline.
One thing to take note when using this endpoint is that, this update wouldn't append the stage to the existing deal stages. It would override existing deal stages hence I'd advise for you to indicate all the deal stages. Something like this: