Skip to main content

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.