Refunds
Process full and partial refunds.
Updated
On this page
Overview
Refunds are processed through the dashboard. DashForDevs supports both full and partial refunds.
Refund from the Dashboard
- Go to Orders and select the order
- Click Issue Refund
- Select full refund or enter a partial amount
- Add an internal note (optional)
- Confirm the refund
The refund is processed through the original payment processor and the customer is notified via email.
Checking Refund Status
import dash from "@/lib/dash"
const { order } = await dash.auth.getOrder("ord_abc123")
if (order.status === "refunded") {
console.log("This order has been refunded")
}
Webhook Events
Listen for refund events via webhooks:
order.refunded— Fired when a refund is issuedpayment.refunded— Fired when the payment processor confirms the refund
Next Steps
- Order Statuses — Understanding the full lifecycle
- Order Metadata — Custom data on orders
- Payment Flow — How payments are processed