---
title: Introduction
description: What the API does, what you need before you start, and where to go next.
progress: in-progress
---

The BTC Direct API lets your customers buy crypto with fiat, and sell crypto
for fiat, inside your own product.

Every integration drives the same order flow. We price the order, take the
payment, verify the customer, screen the counterparty and deliver. You get
webhooks at each step.

## Before you start

Three things, and your account manager sets up the first.

1. **A partner account** — It carries your fee agreement and the currencies you are allowed to offer.
2. **Credentials** — You issue your own, as many as you need, under the integrations your account manager sets up. Sandbox and production are separate deployments, so neither environment's credentials work against the other.
3. **A webhook endpoint** — A public HTTPS URL. The webhook is what tells you an order finished, not the customer coming back.

## Choose an integration

There are three ways to integrate, and the choice is worth making before you
write anything. Unified Checkout is the easiest and in most cases the best
experience for the customer, and the widget exists for when the flow has to sit
inside your own interface.

You will call the API either way, for things like quotes and order status. Just
not for the whole customer flow.

[Compare the three](https://partner.btcdirect.eu/v3/get-started/integrations.md)

## Webhooks

The webhook is how you learn what happened to an order. The customer returning
to your site is a hint, not a result: they can close the tab mid-payment, and a
payment can settle minutes later.

Every delivery names the event, the order it concerns, and carries a signature
you have to verify before you trust the body.

New event types arrive as the platform grows, and they arrive at the endpoint
you already have. So **treat an event you do not recognise as one to ignore,
never as an error**: answer `2xx` and move on. Build against the ones your
integration acts on and let the rest pass.

[Event catalogue](https://partner.btcdirect.eu/v3/webhooks/events.md) · [How webhooks work](https://partner.btcdirect.eu/v3/webhooks.md) ·
[Verifying signatures](https://partner.btcdirect.eu/v3/webhooks/security.md)

## Currencies

Which coins you can offer, on which chains, and how to name each one in a
request. A coin on two chains is two different things to us: the decimals, the
address format, the network fee and the confirmation time all belong to the
chain rather than to the coin.

[Currencies](https://partner.btcdirect.eu/v3/reference/currencies.md)

## Sandbox

Sandbox is coming soon. It will run the platform against simulators, so you can
test a full order without real money. Until then, see Environments for how to
test.

[Environments](https://partner.btcdirect.eu/v3/get-started/environments.md)
