Refunding a sale will trigger a refund webhook notification if configured.
Endpoint
Authentication
Requires either therefund_sales or edit_sales OAuth scope.
Path Parameters
The unique external ID of the sale to refund.
Body Parameters
Amount to refund in cents. If not specified, the entire refundable amount will be refunded.For partial refunds, this must be less than or equal to the remaining refundable amount.Example:
1500 for $15.00Response
Returns the updated sale object if the refund was successful.Indicates if the refund was successful.
The updated sale object with refund information.
Example Request
Example Response
Error Response
If the sale cannot be refunded:Error Codes
Bad RequestCommon reasons:
- Sale is already fully refunded
- Refund amount exceeds refundable amount
- Invalid
amount_centsvalue - Sale cannot be refunded (e.g., too old for PayPal refunds)
Unauthorized - Invalid or missing access token
Forbidden - Token does not have
refund_sales or edit_sales scopeNot Found - Sale does not exist or does not belong to the authenticated user
Notes
- Full refunds will set
refunded: trueandpartially_refunded: false - Partial refunds will set
refunded: falseandpartially_refunded: true - Multiple partial refunds can be issued until the full amount is refunded
- The
amount_centsparameter uses the purchase’s currency, not USD - For multi-currency sales, the amount is converted using the original exchange rate
- Gumroad fees are automatically adjusted based on the refund amount
- PayPal refunds must be issued within 180 days of the original transaction
- Refunds trigger webhook notifications to configured endpoints
- The buyer will receive an automatic refund notification email
Refund Limitations
PayPal Refunds
- Must be issued within 180 days of the purchase
- Cannot refund if the time window has expired
- Check
paypal_refund_expiredfield in the sale object
Subscription Refunds
- Refunding a subscription charge does not cancel the subscription
- To cancel the subscription, use the subscription cancellation endpoint
Chargeback Protection
- Refunded sales are less likely to result in chargebacks
- Consider refunding disputed purchases to avoid chargeback fees