# Webhook

**id**string\<uuid>required

Unique identifier for the webhook.

**Example:<!-- -->&#x20;**`a4e1d1dd-e0c2-4f7a-a2b1-2b0f1f9b6b1e`

**url**string\<uri>required

The URL MONEI sends the events to. An API key made for a shop plugin accepts only an `https` URL on the shop's host.

**Example:<!-- -->&#x20;**`https://shop.example.com/webhooks/monei`

**eventTypes**string\[]required

The event types to send, for example `CHARGE_SUCCEEDED` or `SUBSCRIPTION_ACTIVATED`. An API key made for a shop plugin accepts only the events of what it can read: charge events (`CHARGE_*`, except `CHARGE_CHARGEBACK`, which needs read access to chargebacks) and subscription events (`SUBSCRIPTION_*`).

**Possible values:** `>= 1`

**Example:<!-- -->&#x20;**`["CHARGE_SUCCEEDED","CHARGE_REFUNDED"]`

**enabled**Webhook-Enabledrequired

Whether MONEI sends events to the webhook.

**Example:<!-- -->&#x20;**`true`

**failingSince**integer\<int64>

Start of the current run of failed deliveries, in seconds since the Unix epoch. Absent while deliveries succeed. A webhook that keeps failing is disabled.

**Example:<!-- -->&#x20;**`1636366897`

**createdAt**integer\<int64>required

Time at which the resource was created. Measured in seconds since the Unix epoch.

**Example:<!-- -->&#x20;**`1636366897`

**updatedAt**integer\<int64>

Time at which the resource updated last time. Measured in seconds since the Unix epoch.

**Example:<!-- -->&#x20;**`1636366897`

Webhook

```
{

  "id": "a4e1d1dd-e0c2-4f7a-a2b1-2b0f1f9b6b1e",

  "url": "https://shop.example.com/webhooks/monei",

  "eventTypes": [

    "CHARGE_SUCCEEDED",

    "CHARGE_REFUNDED"

  ],

  "enabled": true,

  "failingSince": 1636366897,

  "createdAt": 1636366897,

  "updatedAt": 1636366897

}
```
