#hiroshi nishio
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_jQNqsXi2YWOuWw
Yep, you still need to pass the products param: https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-products
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Which product id and price id should be filled in this case? Because I don't want to allow users to update product and price
API doc does not mention it.
The prod_xxx IDs of the Products you want your customer's to be able to update quantities for on their Subscription(s)
ah
Indeed...why didn't I notice it?
So what if I want to allow users to change to a different price ID for a different product ID? Do I just set it in an array? Just wanted to know a sample.
I thought you only wanted to allow quantity updates and plan switches?
Originally yes
But now I want to allow users to change quantity for the product A (and price a) and also change product B (and price b) from A
It'd look something like this with stripe-node I think:
subscription_update: {
enabled: "true",
default_allowed_updates: ['price', 'quantity'],
proration_behavior: "create_prorations",
products: [{
prices: ['price_abc'],
product: 'prod_xyz'
}]
}
Now I understand!!!!!!!