Commerce Tools

K-Johnson
Participant

Automatic discount code for groups from the same company?

SOLVE

Total hypothetical: Has anyone found a feature or workaround for group registrations (via forms with payment links) where multiple emails with the same domain, OR established contacts associated to the same company, would be automatically grouped and given a discount code for their registration costs? Or perhaps a refund for a preset % once '10' contacts from ABC-company register for the same event?

 

0 Upvotes
1 Accepted solution
RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Automatic discount code for groups from the same company?

SOLVE

Hi @K-Johnson,

 

I have not done something like this, but it's a fun hypothetical to explore. I tried to keep everything in HubSpot using workflows but am not sure of a lasting solution. It should be doable using custom code steps and leveraging the HubSpot API. In these situations, I prefer to use Zapier as it's easier for me to interact with the HubSpot API that way.

 

Here's what I'd suggest:

 

1) Create your zap with a webhooks trigger to get a webhook url.

 

2) Create a private app and subscribe to your webhook watching for payment created.

RSchweighart_1-1738192474023.png

 

3) Create your zap. There's quite a bit here, so let me know if you have any questions about a specific step. You'll need to have created your discount code to place in the last step.

Untitled Zap  Zapier 2025-01-29 at 3.07.40 PM.png

RSchweighart_0-1738192106794.png

 

I'm sure there's some errors or other situations to be handled, but I think the hypothetical would be doable.

 

All the Best,

Ryan Schweighart

Whole Hart Impact, LLC

whimpact.co

I help businesses with HubSpot and Zapier. 

 

View solution in original post

3 Replies 3
RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Automatic discount code for groups from the same company?

SOLVE

Hi @K-Johnson,

 

I have not done something like this, but it's a fun hypothetical to explore. I tried to keep everything in HubSpot using workflows but am not sure of a lasting solution. It should be doable using custom code steps and leveraging the HubSpot API. In these situations, I prefer to use Zapier as it's easier for me to interact with the HubSpot API that way.

 

Here's what I'd suggest:

 

1) Create your zap with a webhooks trigger to get a webhook url.

 

2) Create a private app and subscribe to your webhook watching for payment created.

RSchweighart_1-1738192474023.png

 

3) Create your zap. There's quite a bit here, so let me know if you have any questions about a specific step. You'll need to have created your discount code to place in the last step.

Untitled Zap  Zapier 2025-01-29 at 3.07.40 PM.png

RSchweighart_0-1738192106794.png

 

I'm sure there's some errors or other situations to be handled, but I think the hypothetical would be doable.

 

All the Best,

Ryan Schweighart

Whole Hart Impact, LLC

whimpact.co

I help businesses with HubSpot and Zapier. 

 

K-Johnson
Participant

Automatic discount code for groups from the same company?

SOLVE

This is a wonderful path to explore. Thank you for looking into the possibility, RSchweighart! We do utilize Zapier for other tasks, so this is a great starting approach. I appreciate your response and I'll follow up if questions arise. 

 

Thanks!

0 Upvotes
DianaGomez
Community Manager
Community Manager

Automatic discount code for groups from the same company?

SOLVE

Hi @K-Johnson,

 

What a great question! Thanks for reaching out to the Community! 🙂

 

I’m going to tag in some of our experts to see if they’ve done something similar, and hopefully, they can share some ideas or inspiration.

 

Hey @RSchweighart, @Whathcock, @DWhiteley4, @Lucila-Andimol , any tips or suggestions for @K-Johnson on how they could achieve this?

 

Thanks so much for sharing! 🧡

 

Wishing everyone an awesome day!
Diana


¿Sabías que la Comunidad está disponible en Español?
¡Participa hoy en conversaciones en el idioma de tu preferencia,cambiando el idioma en tus configuraciones!

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !


0 Upvotes