#simonc
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Yes
and I reuse this: https://support.stripe.com/questions/recreate-subscriptions-and-plans-after-moving-customer-data-to-a-new-stripe-account
Find help and support for Stripe. Our support site 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.
But I don't have any idea to do this with the Stripe API
Are you confused specifically with how to do these requests on a Connected Account?
Or you aren't familiar with Products/Prices/Subscriptions via the API?
Confused on how to do these requests
Should I create the customer to the connected account as well?
What is exactly the procedure I have to do with the API to recreate a subscription to the connected account?
How I get the old subscription to input to the new subscription?
You basically need to do each step of creating a Subscription (create Products/Prices, create Customer, create Subscription, collect PaymentMethod) and you do that all on the Connected Account using the Stripe-Account header: https://stripe.com/docs/connect/authentication#stripe-account-header
You can retrieve a Subscription on your platform using: https://stripe.com/docs/api/subscriptions/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok. I retrieve the info. But how did I enrich the subscription creation with all the info? I use Node, I just have to input the old subscription in input?
No, you need to do each step here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements but do that on your Connected Account.
If you already have the Customer's PaymentMethod then you can clone that to your Connected Account instead of collecting it
https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods has information on how to clone PaymentMethods
To be clear
- I copy the customer to the connected account
- I create the product to the connected account
- I copy the paymentmethod
- I copy the old subscription and create a new one to the connected account
?
1/ Create Customer on Connected Account (you can't copy a Customer)
4/ Create the Subscription on Connected Account using an equivalent Price
Other than that, yes.
Ok
And this approachs work:
const subscription = await stripe.subscriptions.retrieve('sub_1OAXZwFEFyxL8YonHSP5MZyE');
await stripe.subscriptions.create(subscription);
?
No
What is the good approach?
You create a Subscription using the proper parameters
Not by passing a different Subscription object
What are the proper parameters?