#ferenc-juhasz_api

1 messages ยท Page 1 of 1 (latest)

sacred jewelBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253435226948894751

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

winged horizonBOT
dry pelican
#

Hi there ๐Ÿ‘‹ you will need to include all phases in your request. If you want to set the Coupon on a per-item level in the Subscription Schedule, then you need to use items.discounts:
https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-phases-items-discounts

Or you can use the discounts at the phase level if you want to apply it to the whole phase:
https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-phases-discounts

#

Updating Subscription Schedules can be finicky, in that they will try to unset a lot of fields if you don't provide the existing value for a field to the update request. I believe that is the case for items, and you may need to provide the values that are already set in those fields.

misty gust
#

thanks, I went ahead and sent the whole schedule (after retrieveing it) with the discount from python instead of doing it from curl lmao

#

it worked, so i'm good, thanks