---
title: Delivery & retries
description: What counts as accepted, what happens when it is not, and what your endpoint has to cope with.
progress: complete
---

We POST each webhook to your endpoint and retry until you accept it or the
schedule runs out.

## What counts as accepted

Any `2xx`. Nothing else. We do not read the body, so a `200` carrying an error
message still counts as accepted.

Store the payload or put it on your own queue, then reply. What you do with it
afterwards is up to you.

## How we deliver

Read live from the platform, so these are the numbers in force right now.

- **Timeout** — 5 seconds. A slower reply counts as a failed attempt.
- **Retries** — 6 retries, so 7 attempts in total: 1 minute, then 5 minutes, then 15 minutes, then 1 hour, then 6 hours, then 1 day. After that we stop trying.
- **If you reject it** — a 4xx is retried like any other error.
- **Headers** — Content-Type and X-Signature only.

> **A slow handler looks like a failed one**
>
> This is the most common cause of unexpected retries and duplicates. Your work
> finished, but not inside the timeout, so we retried something you had already
> processed. Calling another service before you reply turns its slowness into your
> failed deliveries.

> **Reply 2xx to types you do not handle**
>
> We add types over time, and a new one arrives at your existing endpoint. Return
> `2xx` for anything you do not need. A `404` or `501` reads as a failure and gets
> retried. The [event catalogue](https://partner.btcdirect.eu/v2/webhooks/events.md) lists what exists today.

## Order is not guaranteed

A retry means a later event can reach you before an earlier one. An
`order_paid` that failed once is redelivered minutes later, by which time
`order_completed` may already have landed.

Treat each webhook as a statement about a moment, not a step in a sequence. Act
on what the payload says, and ignore anything describing a state you have
already moved past.

## Duplicates happen

If your `2xx` is lost on the way back to us, or arrives after the timeout, we
retry something you already processed. Key your handling on what the payload
identifies and make a repeat do nothing.

## A lost webhook is not a lost order

> **Reconcile after an outage**
>
> The order carried on regardless. It was priced, paid and delivered whether or
> not you heard about it. After an outage longer than the retry schedule, read
> your open orders back with
> list the customer's orders
> instead of assuming the last state you saw is current.
