Skip to main content

Webhook

idstring<uuid>required

Unique identifier for the webhook.

Example: a4e1d1dd-e0c2-4f7a-a2b1-2b0f1f9b6b1e
urlstring<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: https://shop.example.com/webhooks/monei
eventTypesstring[]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: ["CHARGE_SUCCEEDED","CHARGE_REFUNDED"]
enabledWebhook-Enabledrequired

Whether MONEI sends events to the webhook.

Example: true
failingSinceinteger<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: 1636366897
createdAtinteger<int64>required

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

Example: 1636366897
updatedAtinteger<int64>

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

Example: 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
}