#Jay patel
1 messages · Page 1 of 1 (latest)
??
Hello! If you want to mirror what the dashboard is doing through the API you'll have to make multiple requests.
- Use the upcoming Invoices API to calculate how much to refund to the customer
- Cancel the subscription
- Find the most recent invoice for the subscription and get the associated paymetn intent ID
- Create a refund for that Payment intent ID w/ the amount you calculated from the upcoming invoices api
This is best pretaices right??
Yes