Saltar al contenido principal

CreatedWebhook

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
signingSecretstringrequired

The secret of the v2 part of the MONEI-Signature header of each delivery. Store it now: no other response returns it.

Example: whsec_3q2-7wEAAAAA3q2-7wEAAAAA3q2-7wEAAAAA3q2-7wE
CreatedWebhook
{
"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,
"signingSecret": "whsec_3q2-7wEAAAAA3q2-7wEAAAAA3q2-7wEAAAAA3q2-7wE"
}