Skip to main content

CreateWebhookRequest

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"]
enabledboolean

Whether MONEI sends events to the webhook.

Default value: true
Example: true
CreateWebhookRequest
{
"url": "https://shop.example.com/webhooks/monei",
"eventTypes": [
"CHARGE_SUCCEEDED",
"CHARGE_REFUNDED"
],
"enabled": true
}