#jackds_
1 messages · Page 1 of 1 (latest)
Not sure what you mean by this, can you provide more context on your usecase?
i want to create a normal subscription but i want to override amount before creating that subscription.
sorry the usecase is still not clear
Can you use a real example so that I can be on the same page?
for example product price is $5
if i created sub, i will be charged $5
how i can override this price to $4 for example?
Hi 👋 I would recommend taking a look at using items.price_data when creating your Subscriptions. It allows you to create Prices in an adhoc fashion, so you can provide the right amount each time:
https://stripe.com/docs/api/subscriptions/create#create_subscription-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.
it that will allow me to charge $4 and not $5 for that first invoice?
Wait, you only want to charge a different price for a single Invoice? (That's not what I got from your original question, I thought the whole Subscription would be for a different amount)
the original price of subscription is $5
-i want when user buy for the first time (first invoice) should charge him custom amount not $5
how to do this without coupon?
renew will be $5 ofc
?
there is a way:
by creating a trial and Include a one-time charge
but i don't want trial!
any other ways?
It's going to pretty cumbersome to do that without using a coupon. You'll need to create a Subscription Schedule, with multiple phases.
https://stripe.com/docs/api/subscription_schedules
Subscription Schedules can drive future changes for an underlying Subsription. So you'd use one phase to charge your custom discounted amount via price_data, then have the next phase begin using the regular amount.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you