Webhooks
A webhook sends the events of your account to a URL you choose, for example each successful charge or each subscription renewal.
Signatures
Each delivery has a MONEI-Signature header: t=<timestamp>,v1=<signature>,v2=<signature>. v2 is the hex HMAC-SHA256 of <timestamp>.<body>, made with the webhook's signingSecret. Create Webhook returns the secret once: store it then.
Test request
When you create or enable a webhook, MONEI first sends {"type":"webhook.test"} to the URL. The URL must answer with a 2xx status, or the request fails.
Shop plugins
An API key made for a shop plugin manages only the webhooks on its shop's host. It accepts only an https URL on that host, and only charge and subscription events.
Create Webhook
Creates a webhook.
List Webhooks
Lists the webhooks you can manage with this API key. An API key made for a shop plugin lists only the webhooks on its shop's host.
Update Webhook
Replaces the `url`, `eventTypes` and `enabled` of a webhook.
Delete Webhook
Deletes a webhook. MONEI stops sending events to it at once.