W Checkout En
  1. Quick Start
W Checkout En
  • Introduction
  • Integration Preparation
  • Quick Start
    • Integrating Order Payment
    • Refunds
    • Settlement
    • Webhook
    • Enumeration Reference Table
  • API Reference
    • auth
      • get AccessToken
    • order
      • CreateCheckoutOrder
      • CancelCheckoutOrder
      • GetCheckoutOrderInfo
      • GetCheckoutOrderList
    • refund-order
      • CreateRefundOrder
      • CancelRefundOrder
      • GetRefundOrderInfo
      • GetRefundOrderList
    • settlement
      • CreateSettlementOrder
      • CreateFiatSettlementOrder
      • CancelSettlementOrder
      • GetSettlementOrder
      • GetSettlementOrderList
    • abnormal-payment
      • GetAbnormalPaymentList
      • CreateAbnormalPaymentRefund
    • Webhook
      • WcheckoutWebhook
  1. Quick Start

Refunds

This article describes the refund process for users who have made payments via W Checkout.

Refund Scenarios#

User-Initiated Refund: The user actively applies for a refund after completing a normal payment order.
Overpayment: The user paid an amount exceeding the order total from their wallet.
Underpayment: The user only paid a partial amount, and the order has since timed out.

Processing Flow#

1. Retrieve Abnormal Payment Scenarios#

For abnormal payment scenarios such as overpayment, underpayment, and late payment, developers can obtain information via the following methods:
Webhook: Subscribe to message notifications. The system will push events related to abnormal payments.
API Query: Call the getAbnormalPayments interface to proactively query orders with abnormal payments.

2. Initiate a Refund#

Call the createOrderRefund interface to initiate a refund. Tokens will be refunded via the original payment route to the specified amount based on the order's payment address.

Request Parameters#

Parameter NameTypeRequiredDescription
refundOrderNoStringYesA unique refund order number generated by the client system to identify this refund transaction.
orderNoStringYesThe associated payment order number, used for order refunds.
abnormalPaymentNoStringYesThe associated abnormal payment number, used for refunds related to abnormal payments.
amountNumberYesThe amount to be refunded in this transaction.

3. Retrieve Refund Order Status#

You can obtain refund progress and results through the following methods:
Webhook Notification
Subscribe to refund-related events. The system will push notifications when the refund status changes.
API Query
Call the getOrderInfo interface to query the payment order and its refund status.

Developer Notes#

Original Route Refund: Refunded tokens will be returned to the wallet address the user used for the original payment.
Idempotency: It is recommended to use a unique refundOrderNo when calling the refund interface to prevent duplicate refunds.
Abnormal Payment Reconciliation: For overpayment or underpayment scenarios, it is advisable to periodically reconcile using getAbnormalPayments.
Modified at 2026-01-20 03:13:28
Previous
Integrating Order Payment
Next
Settlement
Built with