#nadia_0-subscription-update
1 messages · Page 1 of 1 (latest)
Yep, there is a price_data parameter that you can use when creating subscriptions. It will create a one-off price object automatically for you https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data-unit_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.
my subscriptions are already created
i wondered if it is possible to update a sub this way
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is it good ?
Yes that will work
thanks for your response
"items": {
"price_data": {
"unit_amount_decimal": newAmount
}
}
});```
i'm affraid i set it wrong
In what way? Is the amount different than what you are expecting?
sorry i mispoke, is the body correct please ?
Looks fine to me. I would reccommend running it in test mode to see how it works
nadia_0-subscription-update