#msomji_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Hi ๐
By Stripe UI are you referring to the Dashboard?
yes
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?
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?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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?
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
However looking at the upcomming invoices for the same subscription, i can see the appropriate promotion code will be applied
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?
"You canโt run a simulation on this subscription because the customer has too many records." ๐ญ
have you tried making a new customer?
i usually make a brand new customer per test clock simulation i want to run
Yeah, any time we have a subsctiption with more than 1 item we can't run the simulation
hmm, i don't think they should break if you just have more than 1 item - the limitations are documented here:
https://docs.stripe.com/billing/testing/test-clocks/api-advanced-usage#restrictions
can you share an example request where you ran into this error?