# Calculate refund amount preview Calculates the refund amount that would be issued if a specific subscription order fulfillment were refunded. This provides a preview without actually processing the refund. What it calculates: - Total refund amount (order amount minus processing fees) - Restocking fees (if applicable) - Gateway fees that cannot be refunded - Net refund amount customer will receive Use Cases: - Show customer how much they'll get back before confirming refund - Display refund breakdown in customer portal - Validate refund eligibility Important Notes: - This is a preview only - does not process refund - Refund amount may vary based on payment gateway - Some gateways don't refund processing fees - Refunds can only be issued for fulfilled orders Authentication: Customer must be logged in and own the subscription Endpoint: GET /subscriptions/cp/api/subscription-billing-attempts/refund-preview/{id} Version: 0.0.1 ## Path parameters: - `id` (integer, required) Billing attempt ID ## Query parameters: - `subscriptionContractId` (integer) Subscription contract ID for validation ## Response 200 fields