Skip to main content

Documentation

Payment Reversed Webhook

The PAYMENT_REVERSED webhook is sent when Rapyd reverses a payment. The status is set to REV.

The cancel_reason field specifies the reason for the reversal. For certain bank transfers, the failure_code and failure_message fields specify the reason for the reversal and the steps to correct it. See Bank Transfer Error Messages.

  • PAYMENT_REVERSED Webhook

  • {
        "id": "wh_3df6fcdc1e85d4e9422bb4c6897b8f50",
        "data": {
            "id": "payment_3820149aaec76394930449740f7a2276",
            "mid": "",
            "paid": true,
            "order": null,
            "amount": 100,
            "escrow": null,
            "status": "REV",
            "address": null,
            "dispute": null,
            "fx_rate": 1,
            "invoice": "",
            "outcome": null,
            "paid_at": 1660805397,
            "refunds": null,
            "captured": true,
            "ewallets": [{
                    "amount": 100,
                    "percent": 100,
                    "ewallet_id": "ewallet_64a88f5456aed969cd6a7e6e5070eb58",
                    "refunded_amount": 0
                }
            ],
            "metadata": {},
            "refunded": false,
            "auth_code": "064957",
            "flow_type": "",
            "created_at": 1660805397,
            "error_code": "",
            "ewallet_id": "ewallet_64a88f5456aed969cd6a7e6e5070eb58",
            "expiration": 1661410197,
            "fixed_side": "",
            "is_partial": false,
            "description": "testing",
            "next_action": "not_applicable",
            "country_code": "GB",
            "failure_code": "",
            "instructions": [],
            "payment_fees": null,
            "redirect_url": "",
            "visual_codes": {},
            "cancel_reason": "insufficient_funds",
            "currency_code": "USD",
            "group_payment": "",
            "receipt_email": "",
            "textual_codes": {},
            "customer_token": "cus_c0984b58200de283b00b0e71b64a92ec",
            "payment_method": "card_4d939fe7c046ba4d1098f6bfa6771933",
            "receipt_number": "",
            "transaction_id": "",
            "failure_message": "",
            "initiation_type": "customer_present",
            "original_amount": 100,
            "refunded_amount": 0,
            "error_payment_url": "https://support.rapyd.net/hc/en-us",
            "payment_method_data": {},
            "payment_method_type": "gb_visa_card",
            "complete_payment_url": "https://www.rapyd.net",
            "remitter_information": {},
            "statement_descriptor": "Rapyd Automation - DO ",
            "merchant_reference_id": "",
            "payment_method_options": {},
            "merchant_requested_amount": null,
            "merchant_requested_currency": null,
            "payment_method_type_category": "card"
        },
        "type": "PAYMENT_REVERSED",
        "status": "NEW",
        "created_at": 1660805404,
        "extended_timestamp": 1660805404145,
        "trigger_operation_id": "96871a1a-ea41-4eb9-86ae-c85826526a7f"
    }