---
updatedAt: 2026-10-02T14:52:52.000Z
agentTools:
  projectIndex: https://docs.venly.io/llms.txt
---

# Configuring Webhooks

Describes how to configure and use webhooks for the PAY.

# Intro

Introducing PAY Webhooks that allow you to configure your endpoint URL and receive notifications whenever your end-user makes a successful payment, or declines/cancels payment. Configure webhooks from the **PAY** product section on the [Developer Portal](https://portal.venly.io/?utm_source=website\&utm_medium=docs\&utm_campaign=General+-+Venly+Internal).

**PAY**: Receive notifications for all successful, failed, and canceled payments.

* `payment_intent.requires_action`
* `payment_intent.created`
* `checkout.session.completed`
* `charge.succeeded`
* `payment_intent.succeeded`
* `payment_intent.payment_failed`

> 📘
>
> Read the [Stripe documentation](https://stripe.com/docs/api/events) about webhook **events**.

### Retry Mechanism

If your endpoint URL is down, Venly will attempt to resend the notification message **five times** with an interval of **10 seconds** to ensure delivery. After the last try, the message will be dropped since we don't store the webhook messages, they're not retrievable anymore.

In case your endpoint is down for more than **50 seconds** and you don't receive the message:

**PAY**: You can call the [check status of checkout endpoint](https://docs.venly.io/docs/checkout-link-management#2-check-the-status-of-a-checkout) using the `sessionId` of your specific checkout.

# How to configure webhooks?

1. Head over to the [Developer Portal](https://portal.venly.io/?utm_source=website\&utm_medium=docs\&utm_campaign=General+-+Venly+Internal).
2. Click on the product you want to configure webhooks for (**PAY**)
3. Click on **Create webhook**

<Image alt="Creating a new webhook for PAY" align="center" src="https://files.readme.io/d32bca551b9fbe40af0754df10aa262abac0b5838686c523e1b062bb554e8cb1-image.png">
  Creating a new webhook for PAY
</Image>

4. Add the relevant information:
   1. **Description**: Any sample description of the webhook.
   2. **Endpoint (POST)**: The URL that accepts POST calls.
   3. **Type**: Select your preferred authentication type: *Basic Authentication* or *API Key*
   4. **Username/ Header name**: Enter your custom username or header name (*depends on the authentication type you selected.*)
   5. **Password/ API key**: Enter your custom password or API key (*depends on the authentication type you selected*).
   6. Finally, click **Create**.

> 📘
>
> **Authentication** is to be set up by **you** for your endpoint. This allows you to verify that the calls are coming from **Venly**.

<Image alt="Adding details for the Webhook" align="center" width="450px" border={true} src="https://files.readme.io/74a45d5e87b8874a7405b4b4374b77bdb476c20bc78d325fb6d1182b2e527a7f-chrome_aBAIdnkv6J.jpg">
  Adding details for the Webhook
</Image>

5. The webhook is created **successfully**!

<Image alt="Webhook created successfully" align="center" border={true} src="https://files.readme.io/968fbcb3c62a19a364888deb32c9b18f35ec1057e011e3c0fea4dcdc14deef4e-chrome_053kg1t2K9.jpg">
  Webhook created successfully
</Image>

6. Click on the three dots to **update** or **delete** a webhook.

<Image alt="Update or Delete Webhook" align="center" border={true} src="https://files.readme.io/85a5305180f1cf883284712134165ef0b41c2517010a29c3385588145b3a3d78-chrome_Sxv9UJYxNY.jpg">
  Update or Delete Webhook
</Image>

# Payload Examples

> 📘
>
> * In the payloads you receieve, look for `type` and `status`.\* Read the [Stripe documentation](https://stripe.com/docs/api/events) about webhook **events**.

The following is an example of the payload you would receive on your configured webhook endpoint:

```json
{
  "id": "evt_3OG0NzFdbOilQPiZ0ncL2Bpn",
  "object": "event",
  "api_version": "2020-08-27",
  "created": 1700836181,
  "data": {
    "object": {
      "id": "pi_3OG0NzFdbOilQPiZ0nIyEeCl",
      "object": "payment_intent",
      "amount": 76000,
      "amount_capturable": 0,
      "amount_details": {
        "tip": {
        }
      },
      "amount_received": 76000,
      "application": null,
      "application_fee_amount": 760,
      "automatic_payment_methods": null,
      "canceled_at": null,
      "cancellation_reason": null,
      "capture_method": "automatic",
      "charges": {
        "object": "list",
        "data": [
          {
            "id": "ch_3OG0NzFdbOilQPiZ06dS67CY",
            "object": "charge",
            "amount": 76000,
            "amount_captured": 76000,
            "amount_refunded": 0,
            "application": null,
            "application_fee": "fee_1OG0O0FgYBsxEOLN7ajbyFTY",
            "application_fee_amount": 760,
            "balance_transaction": "txn_3OG0NzFdbOilQPiZ0xfICj3q",
            "billing_details": {
              "address": {
                "city": null,
                "country": "BE",
                "line1": null,
                "line2": null,
                "postal_code": null,
                "state": null
              },
              "email": "nico.peeters@venly.io",
              "name": "asdsafa",
              "phone": null
            },
            "calculated_statement_descriptor": "VENLY.IO-TEST-NICO",
            "captured": true,
            "created": 1700836180,
            "currency": "eur",
            "customer": null,
            "description": null,
            "destination": "acct_1NfkKfFgYBsxEOLN",
            "dispute": null,
            "disputed": false,
            "failure_balance_transaction": null,
            "failure_code": null,
            "failure_message": null,
            "fraud_details": {
            },
            "invoice": null,
            "livemode": false,
            "metadata": {
            },
            "on_behalf_of": "acct_1NfkKfFgYBsxEOLN",
            "order": null,
            "outcome": {
              "network_status": "approved_by_network",
              "reason": null,
              "risk_level": "normal",
              "risk_score": 51,
              "seller_message": "Payment complete.",
              "type": "authorized"
            },
            "paid": true,
            "payment_intent": "pi_3OG0NzFdbOilQPiZ0nIyEeCl",
            "payment_method": "pm_1OG0NyFdbOilQPiZSzz1KmEC",
            "payment_method_details": {
              "card": {
                "amount_authorized": 76000,
                "brand": "visa",
                "checks": {
                  "address_line1_check": null,
                  "address_postal_code_check": null,
                  "cvc_check": "pass"
                },
                "country": "US",
                "exp_month": 12,
                "exp_year": 2029,
                "extended_authorization": {
                  "status": "disabled"
                },
                "fingerprint": "wK159EypeKnNbeXt",
                "funding": "credit",
                "incremental_authorization": {
                  "status": "unavailable"
                },
                "installments": null,
                "last4": "4242",
                "mandate": null,
                "multicapture": {
                  "status": "unavailable"
                },
                "network": "visa",
                "network_token": {
                  "used": false
                },
                "overcapture": {
                  "maximum_amount_capturable": 76000,
                  "status": "unavailable"
                },
                "three_d_secure": null,
                "wallet": null
              },
              "type": "card"
            },
            "receipt_email": null,
            "receipt_number": null,
            "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xSHFidVVGZGJPaWxRUGlaKNbmgqsGMgZtnxtMJTc6LBbaLfnV3Lb-sxtgzS5TF2cAbK5FpkdoFZOJ6LzpIOZntjeil45DTSvqr1jO",
            "refunded": false,
            "refunds": {
              "object": "list",
              "data": [
              ],
              "has_more": false,
              "total_count": 0,
              "url": "/v1/charges/ch_3OG0NzFdbOilQPiZ06dS67CY/refunds"
            },
            "review": null,
            "shipping": null,
            "source": null,
            "source_transfer": null,
            "statement_descriptor": null,
            "statement_descriptor_suffix": null,
            "status": "succeeded",
            "transfer": "tr_3OG0NzFdbOilQPiZ0O0kDuAK",
            "transfer_data": {
              "amount": null,
              "destination": "acct_1NfkKfFgYBsxEOLN"
            },
            "transfer_group": "group_pi_3OG0NzFdbOilQPiZ0nIyEeCl"
          }
        ],
        "has_more": false,
        "total_count": 1,
        "url": "/v1/charges?payment_intent=pi_3OG0NzFdbOilQPiZ0nIyEeCl"
      },
      "client_secret": "pi_3OG0NzFdbOilQPiZ0nIyEeCl_secret_HaIFvl9ockbUrNgWKu6eZRR9D",
      "confirmation_method": "automatic",
      "created": 1700836179,
      "currency": "eur",
      "customer": null,
      "description": null,
      "invoice": null,
      "last_payment_error": null,
      "latest_charge": "ch_3OG0NzFdbOilQPiZ06dS67CY",
      "livemode": false,
      "metadata": {
      },
      "next_action": null,
      "on_behalf_of": "acct_1NfkKfFgYBsxEOLN",
      "payment_method": "pm_1OG0NyFdbOilQPiZSzz1KmEC",
      "payment_method_configuration_details": null,
      "payment_method_options": {
        "card": {
          "installments": null,
          "mandate_options": null,
          "network": null,
          "request_three_d_secure": "automatic"
        }
      },
      "payment_method_types": [
        "card"
      ],
      "processing": null,
      "receipt_email": null,
      "review": null,
      "setup_future_usage": null,
      "shipping": null,
      "source": null,
      "statement_descriptor": null,
      "statement_descriptor_suffix": null,
      "status": "succeeded",
      "transfer_data": {
        "destination": "acct_1NfkKfFgYBsxEOLN"
      },
      "transfer_group": "group_pi_3OG0NzFdbOilQPiZ0nIyEeCl"
    }
  },
  "livemode": false,
  "pending_webhooks": 4,
  "request": {
    "id": "req_DmzYg3NYOMySAW",
    "idempotency_key": "0a915ee9-9764-406a-8a71-a93bd16caccb"
  },
  "type": "payment_intent.succeeded"
}
```