Billing

Refund latest purchase

Refunds the authenticated user's most recent paid invoice if it is within 3 days and the user is not in a 30-day cooldown. If the invoice was tied to a subscription, the subscription is cancelled immediately.

post/premium/refund-latest

Response

Success

invoice_idstring required
payment_intent_idstring nullable required
charge_idstring nullable required
refund_idstring nullable required
refunded_amount_centsinteger required

Amount actually refunded so far, in the currency minor unit; 0 until the provider confirms success

invoice_amount_paid_centsinteger required
currencystring required
subscription_idstring nullable required

Subscription that was cancelled along with the refund, when applicable

statusstring nullable required

Provider status of the refund (e.g. pending, succeeded, failed); money only moved once succeeded

Changes

No recorded changes to this endpoint across all 1 revision of this API.