Skip to main content

Documentation

Resend Webhook

Resend a webhook that was not sent successfully.

Use List Webhooks to find the IDs of webhooks. You can resend a webhook that is in status ERR.

    • webhook

    • The webhook ID. String starting with wh_.

  • /v1/webhooks/:webhook

  • Resend Webhook

  • curl -X post
    https://sandboxapi.rapyd.net/v1/webhooks/wh_6fcbb2a25aba03de3545f7d36e06cce8
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "ffb30b05-c632-40b5-87f0-7226204a1590"
        },
        "data": {
            "token": "wh_6fcbb2a25aba03de3545f7d36e06cce8",
            "type": "PAYMENT_COMPLETED",
            "data": {
                "id": "payment_688e34595861b2e521fff677ca2c706e",
                "mid": "",
                "paid": true,
                "order": null,
                "amount": 40.11,
                "escrow": null,
                "status": "CLO",
                "address": null,
                "dispute": null,
                "fx_rate": 1,
                "invoice": "",
                "outcome": null,
                "paid_at": 1682469089,
                "refunds": null,
                "captured": true,
                "ewallets": [
                    {
                        "amount": 404.404,
                        "percent": 100,
                        "ewallet_id": "ewallet_e2150f478c15d97b807b9ed179b798a0",
                        "refunded_amount": 0
                    }
                ],
                "metadata": {},
                "refunded": false,
                "auth_code": null,
                "flow_type": "",
                "created_at": 1682469089,
                "error_code": "",
                "ewallet_id": "ewallet_e2150f478c15d97b807b9ed179b798a0",
                "expiration": 1682469686,
                "fixed_side": "",
                "is_partial": false,
                "description": "testing",
                "next_action": "not_applicable",
                "country_code": "IT",
                "failure_code": "",
                "instructions": [],
                "payment_fees": null,
                "redirect_url": "",
                "visual_codes": {},
                "cancel_reason": null,
                "currency_code": "OMR",
                "group_payment": "",
                "receipt_email": "",
                "textual_codes": {},
                "customer_token": "cus_d7ced3d1da3c7224f3269b365f8c525f",
                "payment_method": "card_a1105722f0662d8c44d976c7d50ed47e",
                "receipt_number": "",
                "transaction_id": "",
                "failure_message": "",
                "initiation_type": "customer_present",
                "original_amount": 404.404,
                "refunded_amount": 0,
                "error_payment_url": "https://support.rapyd.net/hc/en-us",
                "payment_method_data": {
                    "id": "card_a1105722f0662d8c44d976c7d50ed47e",
                    "name": "Auto Test",
                    "type": "it_visa_card",
                    "image": "",
                    "last4": "1111",
                    "category": "card",
                    "metadata": null,
                    "acs_check": "unchecked",
                    "cvv_check": "unchecked",
                    "bin_details": {
                        "type": "CREDIT",
                        "brand": "VISA",
                        "level": null,
                        "issuer": "JPMORGAN CHASE BANK, N.A.",
                        "country": "US",
                        "bin_number": "411111"
                    },
                    "next_action": "not_applicable",
                    "webhook_url": "",
                    "expiration_year": "24",
                    "expiration_month": "12",
                    "fingerprint_token": "ocfp_11ECFC39332B40F481220EC01B2F2B1B",
                    "supporting_documentation": ""
                },
                "payment_method_type": "it_visa_card",
                "save_payment_method": true,
                "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"
            },
            "attempts": [
                {
                    "error": null,
                    "http_status_code": 404,
                    "http_response_body": "<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>Failing WH for testing Resend WH tasker</p>\n",
                    "http_response_headers": {
                        "date": "Wed, 26 Apr 2023 00:31:29 GMT",
                        "server": "Werkzeug/2.2.3 Python/3.8.16",
                        "connection": "close",
                        "content-type": "text/html; charset=utf-8",
                        "content-length": "126"
                    }
                },
                {
                    "error": null,
                    "http_status_code": 404,
                    "http_response_body": "<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>Failing WH for testing Resend WH tasker</p>\n",
                    "http_response_headers": {
                        "date": "Wed, 26 Apr 2023 00:36:26 GMT",
                        "server": "Werkzeug/2.2.3 Python/3.8.16",
                        "connection": "close",
                        "content-type": "text/html; charset=utf-8",
                        "content-length": "126"
                    }
                },
                {
                    "error": null,
                    "http_status_code": 404,
                    "http_response_body": "<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>Failing WH for testing Resend WH tasker</p>\n",
                    "http_response_headers": {
                        "date": "Wed, 26 Apr 2023 00:41:26 GMT",
                        "server": "Werkzeug/2.2.3 Python/3.8.16",
                        "connection": "close",
                        "content-type": "text/html; charset=utf-8",
                        "content-length": "126"
                    }
                },
                {
                    "error": null,
                    "http_status_code": 404,
                    "http_response_body": "<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>Failing WH for testing Resend WH tasker</p>\n",
                    "http_response_headers": {
                        "date": "Wed, 26 Apr 2023 00:46:26 GMT",
                        "server": "Werkzeug/2.2.3 Python/3.8.16",
                        "connection": "close",
                        "content-type": "text/html; charset=utf-8",
                        "content-length": "126"
                    }
                },
                {
                    "error": null,
                    "http_status_code": 404,
                    "http_response_body": "<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>Failing WH for testing Resend WH tasker</p>\n",
                    "http_response_headers": {
                        "date": "Wed, 26 Apr 2023 00:51:26 GMT",
                        "server": "Werkzeug/2.2.3 Python/3.8.16",
                        "connection": "close",
                        "content-type": "text/html; charset=utf-8",
                        "content-length": "126"
                    }
                },
                {
                    "error": null,
                    "http_status_code": 404,
                    "http_response_body": "<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>Failing WH for testing Resend WH tasker</p>\n",
                    "http_response_headers": {
                        "date": "Wed, 26 Apr 2023 07:34:12 GMT",
                        "server": "Werkzeug/2.2.3 Python/3.8.16",
                        "connection": "close",
                        "content-type": "text/html; charset=utf-8",
                        "content-length": "126"
                    }
                }
            ],
            "status": "RET",
            "last_attempt_at": 1682494452,
            "created_at": 1682469089,
            "next_attempt_at": 1682494227
        }
    }