Streaming live at 10am (PST)

How can I use the Webflow API to generate coupon/discount codes?

Hey everyone. As the title suggests, I need to somehow utilize the Webflow API to generate custom coupon codes for my customers. I’ve built a system using Airtable/zapier/and webflow to create a random code on form submission of a new user. Now I need to take this code and use the API to add the procedurally-generated code as a discount coupon on the site.

I’ve taken a look at the developers console and have yet to find an integration to accomplish this effect. Any advice would be greatly appreciated and I could certainly share my process of creating unique codes.

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Yeah unfortunately it doesn’t look like the API is setup to recognize the Discount Code collection yet. I’m sure eventually it will be added, but right now it looks like you can only interact with the Category, Product, and SKU collections via the API.

Automation might not work on this one… but you have me thinking and I’ll see if I can come up with anything else.

1 Like

Thank you! Definitely a useful solution for a customer user experience!

Hello again Webflow Community. Wondering if there hs been any update on this?