Skip to main content

Email end point for promo codes

https://www.powr-staging.io/plugins/campaign-builder/standalone?id=9217&

Background: We would like to send the /unlimited promo to Starter and Pro users via email. We need an end point that will generate promo codes on the fly on click from an email.

Scenario: A user should be auto-logged in on click within an upsell email

GIVEN a user has purchased a Starter subscription and received an upsell email

WHEN they click on the button in the email that links to www.powr.io/unlimited

THEN they should be auto-logged in when they land on www.powr.io/unlimited

Scenario: A code should be generated on click within an upsell email for Starter/Pro users

GIVEN a user has purchased a Starter/Pro subscription and has received an upsell email

WHEN they click on the button in the email that links to www.powr.io/unlimited that has an auto-appended “utm_content=” parameter that is either:

form_upsell_funnel_0

form_upsell_funnel_1

form_upsell_funnel_2

form_upsell_funnel_3

THEN a PromoCode should be generated for that user

AND the promo_duration should be 365 days \ \ Change: Discussed with Emilie. The code will be generated when we send the email. But it will not be activated. It will only be activated when the user applies it.

Scenario: The redemption URL in the upsell email should auto-fill the discount code for the user

GIVEN that a user has received an upsell email

WHEN they click on the button in their email (www.powr.io/unlimited)

THEN the promo_code should already be filled in on www.powr.io/unlimited for BOTH signed in and signed out users (they should already be signed in re previous scenario).

Scenario: The promo code should give Starter/Pro users access to all plugins on that level for an extra $5 a month

GIVEN that a user is logged in on the www.powr.io/unlimited landing page and their promo code is automatically filled in

WHEN they click Get Started

THEN they should be sent to My Account > $5 Upsell tab

Scenario: Admin dashboard to view codes redeemed

GIVEN I am a POWr admin

WHEN I navigate to admin/snail-mails

THEN I should see a summary of:

  • Total promo emails sent in last 30 days
  • Total upgraded users that have used their promo code in the last 30 days
  • A date range dropdown
  • Table view of each email sent, the date it was created, including whether user has used their promo code
  • A column for mail type: postcard vs letter vs email

Change: Discussed with Emilie

Will create a new dashboard for this.

https://www.powr-staging.io/admin/upsell_promos