GET data call - Promotional Code used in Stripe Checkout

Hello all,

I am in the process of implementing a Stripe pricing table on my website.

I want to return the promotional code used by a customer during stripe checkout to bubble and update it to a field in my database. Is this possible using webhooks?

The stripe API documentation has the information I am looking for listed as an object but it is not currently included in the default webhooks object set.

I think I will need to define an API call for this information using the API connector, but I would like to see if anyone else has any other suggestions. Perhaps there is an easier way to define this data return within the HTML element of the pricing table itself (this is already done with the current user’s unique ID) ?

Thank you in advance to anyone who takes the time to respond.

  • Scott M

I have solved this problem by setting up a second webhook that triggers when a discount is created (i.e. a coupon code is applied at checkout). The data is sent to the bubble backend workflow, bubble searches for a user by the attached stripe customer ID, and modifies the ‘coupon code’ field.

1 Like