Receive real-time notifications about credit card refund status changes
Refund webhooks allow you to receive automatic notifications whenever the status of a credit card refund changes. When you create a refund for a credit card charge, WEpayments processes it asynchronously through the card processor and sends a POST request to your notification URL each time the refund reaches a new status.
This webhook is specific to refunds and is separate from the Credit Card Webhook, which notifies you about the charge (payin) status. A refund generates its own independent notifications.
The payload format described on this page applies to credit card refunds. Refunds for other payment methods (such as Pix) may use a different payload structure — see Create Refund.
Create a refund for a credited credit card charge and provide a notification_url
Receive notifications automatically each time the refund status changes
Process the payload containing the refund details and amounts
Return a 200 OK response to acknowledge receipt
A credit card charge can only be refunded if it is credited to the wallet and the refund is requested within 180 days of the original payment. See Create Refund for all refund rules.
Credit card refund webhooks are delivered with the following headers:
Header
Value
Accept
application/json
Content-type
application/json
User-Agent
WEpayments
If you have configured a custom authentication header for your account (callback authentication key and value), it will be included in every refund webhook request. Contact our support team to set up a custom authentication header so you can validate that the request was sent by WEpayments.
If your endpoint responds with a status code other than 200, the notification will be retried up to 15 times, with a 5-minute interval between attempts.