---
title: Webhooks
description: How we tell your system what happened, so you do not have to keep asking.
progress: complete
---

> This describes how webhooks work for v1 and v2. For a new integration we recommend v3. The current version of this page is at https://partner.btcdirect.eu/v3/webhooks.md

We send an HTTP POST to your endpoint when something happens that you need to
know about: an order moves on, a customer becomes verified, a payment fails.

Some of these take time. Payments settle late, verification waits on a customer,
a chain confirms when it confirms. Your customer has usually left the page by
then, so we come to you instead of you asking us over and over.

> **A webhook is your record, not the redirect**
>
> A customer arriving on your return page does not mean the order finished, and
> them never arriving does not mean it failed. Record what a verified webhook
> tells you.

## What you build

1. **A public HTTPS endpoint** — Reachable from the internet, on a certificate that validates. You do not need to allow our IPs.
2. **Signature verification, first thing** — An unchecked payload is an untrusted one. Hash the raw bytes you received.
3. **A quick 2xx** — Reply first, then do your work. Slow work belongs on your own queue.
4. **Safe handling of repeats** — The same webhook can arrive twice. Make a repeat do nothing.
5. **A 2xx for anything you do not handle** — We add new types over time, and they arrive at your existing endpoint.

## Where to go next

- **[Event catalogue](https://partner.btcdirect.eu/v2/webhooks/events.md)** lists every type we send, with a real
  example payload.
- **[Delivery & retries](https://partner.btcdirect.eu/v2/webhooks/delivery.md)** covers what counts as accepted,
  plus ordering, repeats and outages.
- **[Verifying signatures](https://partner.btcdirect.eu/v2/webhooks/security.md)** has working code in five
  languages, and the mistakes that break it.
