#nadia-subscription-schedule
1 messages · Page 1 of 1 (latest)
Hi 👋 I'm not sure I'm following the question, would you mind trying to rephrase? All of our Subscriptions rely on having an underlying Price object.
hi @graceful pond thanks for reaching out !
my products have no fixed prices
based on the client age, the price might change
custom prices depending on my customer’s age
Gotcha, you can use the price_data param when you need to dynamically define a price while creating a Subscription or a Subscription Schedule:
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases-items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Correct, price_data will create a Price object behind the scenes based on the provided information, so you don't need to (and can't) provide a Price ID while leveraging the price_data hash.