#bk_whopper

1 messages · Page 1 of 1 (latest)

limber drumBOT
upbeat cargo
#

Hi there

#

Taking a look

dry widget
#

thanks so much @upbeat cargo

upbeat cargo
dry widget
#

one detail to add - this is a test promotion code that was created on stripe.com, not api generated.

upbeat cargo
#

Looks like you are trying to apply the promotion_code.code

dry widget
#

so, in order to apply the promotion_code to a subscription, I need to get the promotion_code.id?

upbeat cargo
#

Then you can get the ID

dry widget
#

I see. so to clarify:

  1. customer enters customer-facing coupon code.
  2. app gets list of all promotion codes
  3. app finds promotion code that matches the customer-facing coupon code, gets id
  4. app applies promotion_code.id to customer subscription.
upbeat cargo
#

Yep except you don't need to list all promo codes to find the match since you can filter by the code itself in the list request

dry widget
#

oh wait

upbeat cargo
#

I linked it above

dry widget
#

aha, just realized that. thank you so much for your help.

#

I really appreciate it.