#msomji_api

1 messages ยท Page 1 of 1 (latest)

ripe umbraBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1399511586158284991

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

lofty stream
#

Hi ๐Ÿ‘‹

By Stripe UI are you referring to the Dashboard?

pseudo shard
#

yes

lofty stream
#

Unfortunately, we don't know a lot about how the Dashboard determines what to display. What do you get when you use the Create Invoice Preview API?

ripe umbraBOT
pseudo shard
#

When i retrieve the subscription schedule, I do see the promotion_code defined:

items: [
         %{
           billing_thresholds: nil,
           discounts: [],
           metadata: %{},
           plan: "price_1Qf5FwF5n5KjLa7R5lnXnUC8",
           price: "price_1Qf5FwF5n5KjLa7R5lnXnUC8",
           quantity: 1,
           tax_rates: []
         },
         %{
           billing_thresholds: nil,
           discounts: [
             %{
               coupon: nil,
               discount: nil,
               promotion_code: "promo_1RpyEFF5n5KjLa7RCO5n57Sg" <-------
             }
           ],
           metadata: %{},
           plan: "price_1Qf5FbF5n5KjLa7RykyjdnPB",
           price: "price_1Qf5FbF5n5KjLa7RykyjdnPB",
           quantity: 1,
           tax_rates: []
         }
       ],
#

Is there to get the simulator to work with this subscription so that I can verify the promotion_code will be applied?

#

ow! I just saw the upcommint invoice DOES display the upcomming discount!

#

so seems like this is working, just some discrepancy in the UI?

timid shuttle
#

hello! fyi i'm taking over the thread

#

give me just a bit to catch up

#

ok, so you're seeing the discount applied in the upcoming invoice but you're not seeing the same in the dashboard UI?

pseudo shard
#

Yes, I was expecting to be able to see one of the preview steps on this page to indicate that a promotion will be applied
https://dashboard.stripe.com/test/subscriptions/sub_1RakksF5n5KjLa7RRijUWupv?edit=sub_sched_1RpyvaF5n5KjLa7RvAW8f9WW, but looking at this screen alone seems to indicate that there wont be a promotion code applied

#

However looking at the upcomming invoices for the same subscription, i can see the appropriate promotion code will be applied

timid shuttle
#

ok! as long as the upcoming invoice UI is showing the right thing, i would expect this schedule to behave properly

#

have you tried using a test clock to advance this and see how it actually behaves?

pseudo shard
#

"You canโ€™t run a simulation on this subscription because the customer has too many records." ๐Ÿ˜ญ

timid shuttle
#

have you tried making a new customer?

#

i usually make a brand new customer per test clock simulation i want to run

pseudo shard
#

Yeah, any time we have a subsctiption with more than 1 item we can't run the simulation

timid shuttle
#

can you share an example request where you ran into this error?