---
title: Sell from your own app
description: Your app holds the customer's coins. We tell your server where to send them, in a signed webhook.
---

For a wallet app whose customers keep their keys in it, such as a hardware
wallet. The customer signs in, verifies and picks their payout account on our
page, as in any checkout. The coins, though, leave from your app: we create an
address for the order and send it to your server, and your app builds the
transaction for the customer to confirm.

## The flow

```text
your backend   POST /api/v3/checkouts              →  { url, offerId }
your app       opens url in the browser
customer       signs in or registers, verifies, picks a payout account, confirms
we             create the order and its own deposit address
your backend   ← webhook order_awaiting_deposit, signed: address and amount
your backend   GET /api/v3/partner/orders/{id}     →  same address?
your app       builds the transaction, the device shows the address
customer       compares it with the address on our page, confirms on the device
we             see the coins arrive, sell them, pay out to the customer
our page       "Back to <your app>"                →  your returnUrl
```

Three calls on your side: one to create the checkout, one webhook handler, one
read to check what the webhook said.

## 1. Create the checkout

From your server, without naming the customer: they sign in on our page. See
[create a hosted checkout](https://partner.btcdirect.eu/v3/api/create-checkout.md).

```json
{
  "sourceCurrency": "bip122:000000000019d6689c085ae165831e93/slip44:0",
  "targetCurrency": "swift:0/iso4217:EUR",
  "targetAmount": "500",
  "paymentMethod": "sepa",
  "fixed": { "amount": true, "currency": true },
  "partnerOrderIdentifier": "your-sell-8f2c1",
  "returnUrl": "yourapp://sell/finish?ref=your-sell-8f2c1"
}
```

- **partnerOrderIdentifier** — Your own reference, one per sell. The webhook carries it, and it is the only way to tie the order to the sell your app started: you do not name the customer, so there is no order id until they confirm.
- **returnUrl** — Your app’s own link, once its scheme is enabled for your account (ask your account manager). The deposit screen leads with a button back into your app, and the final screen returns there.
- **fixed** — Locks what the customer may not change on our page. Lock the coin, and the amount if your app already chose it.

## 2. Receive the address

`order_awaiting_deposit` is sent once the customer has confirmed and the order
has its address. It is opt-in: tick it on your webhook endpoint in
[the console](https://partner.btcdirect.eu/console). Check the `X-Signature` header before you read anything, as
[verifying signatures](https://partner.btcdirect.eu/v3/webhooks/security.md) describes.

```json
{
  "type": "order_awaiting_deposit",
  "timestamp": "2026-11-09T12:39:42.62802783Z",
  "data": {
    "order": {
      "id": "ed321916-a244-4b7c-a5e5-2744703abc41",
      "displayId": "VLZKFGX4",
      "direction": "sell",
      "partnerOrderIdentifier": "your-sell-8f2c1"
    },
    "user": { "id": "32b85a0b-7a14-4d57-938b-5e298dbb8404" },
    "inbound": {
      "currency": "bip122:000000000019d6689c085ae165831e93/slip44:0",
      "amount": "0.04130530",
      "ticker": "BTC",
      "kind": "crypto",
      "chainName": "Bitcoin"
    },
    "outbound": {
      "currency": "swift:0/iso4217:EUR",
      "amount": "3000.00",
      "ticker": "EUR",
      "kind": "fiat"
    },
    "deposit": {
      "address": "bc1q232fm46xj09x6nh3p6receg5gs5h9sr5ng6edr",
      "currency": "bip122:000000000019d6689c085ae165831e93/slip44:0",
      "amount": "0.04130530",
      "expiresAt": "2026-11-16T12:39:38Z",
      "estimated": true
    }
  }
}
```

- **deposit.address** — Where the coins go. One address per order, never reused.
- **deposit.memo** — Present only on chains that need one. Send it with the coins, or they cannot be matched to the order.
- **deposit.amount** — What to send, in the coin.
- **deposit.estimated** — True when the euro amount is fixed only once the coins arrive. The customer saw it as an estimate on our page.
- **deposit.expiresAt** — Until when the address takes this order’s coins.

## 3. Check it before the customer signs

Read the order back with [read one of your orders](https://partner.btcdirect.eu/v3/api/get-partner-order.md),
using your partner access token, and compare its deposit address and your
reference with the webhook's. Only then hand the address to your app.

Each check covers something the others do not:

- **The signature** proves the webhook came from us and was not changed on the
  way.
- **The read-back**, over your own authenticated connection, proves the order
  exists and is yours.
- **The customer** compares the address on their device with the one on our
  page, which tells them to. That catches a fault on either side before
  anything is signed.

## 4. After the coins leave

Nothing to report back. Our page moves on by itself once the coins arrive, and
the usual order webhooks follow, all carrying your `partnerOrderIdentifier`.
The final screen offers a button back to your app, through your `returnUrl`.
