Get Refund Preview
Previews the prorated refund amount for a subscription cancellation.
Reuses RefundService::refund_subscription with preview=true so the same
validation logic runs without executing Stripe refunds or creating DB records.
Documentation Index
Fetch the complete documentation index at: https://docs.withflex.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Use a Bearer token to access this API.
Path Parameters
"obj_01EXAMPLE00000000000000000"
Response
Success
Prorated amount available to refund in cents, based on remaining billing period
0
Total amount paid on the latest invoice, in cents
0
Current billing period start
"2024-01-01T00:00:00Z"
Current billing period end
"2024-01-01T00:00:00Z"
The payment method ID that would be refunded, if available
"obj_01EXAMPLE00000000000000000"
Last 4 digits of the card that would be refunded, if available
"4242"