Skip to main content
GET
/
v1
/
subscriptions
/
{id}
/
refund_preview
Get Refund Preview
curl --request GET \
  --url https://api.withflex.com/v1/subscriptions/{id}/refund_preview \
  --header 'Authorization: Bearer <token>'
{
  "prorated_amount_available_to_refund": 123,
  "invoice_amount_paid": 123,
  "current_period_start": "<string>",
  "current_period_end": "<string>",
  "payment_method_id": "<string>",
  "last4": "<string>"
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Response

prorated_amount_available_to_refund
integer<int64>
required

Prorated amount available to refund in cents, based on remaining billing period

invoice_amount_paid
integer<int64>
required

Total amount paid on the latest invoice, in cents

current_period_start
string
required

Current billing period start

current_period_end
string
required

Current billing period end

payment_method_id
string | null

The payment method ID that would be refunded, if available

last4
string | null

Last 4 digits of the card that would be refunded, if available