#Jay patel

1 messages · Page 1 of 1 (latest)

coarse fernBOT
formal aurora
#

??

clever kayak
#

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
formal aurora
formal aurora
clever kayak
#

Yes