---
title: "Complete A Flagged Deposit With A Resolution Fee"
method: POST
path: "/trades/sells/sell/{id}/complete"
tags: ["Transactions"]
---

# Complete A Flagged Deposit With A Resolution Fee

`POST /trades/sells/sell/{id}/complete`

## Request

- Base URL: `https://api.breet.io/v1`
- URL: `https://api.breet.io/v1/trades/sells/sell/{id}/complete`
- Auth: API key in header `x-app-id` and API key in header `x-app-secret` and API key in header `X-Breet-Env`
- TypeScript: <https://skmtc.dev/breet/apis/breet-public-api/docs/trades/sells/sell/:id/complete/post.ts> (a function with typed inputs; its response is checked against the schema)

Releases a deposit that was flagged **only** because it fell below the asset's minimum, by paying the resolution fee out of the deposit itself.

Breet deducts the asset's `flagFeeUSD` from the USD value actually received, converts the remainder at the current rate, credits your wallet, and fires `trade.completed` with `flagFeeUSD` populated. If auto-settlement is enabled on the address, the net amount is paid out to the linked bank account as usual.

Only deposits with `status: "flagged"` and `passAMLCheck: true` are eligible — a deposit flagged by an AML check cannot be resolved this way. The remainder after the fee must be greater than \$1; when it is not, the only route is a top-up to the same address in the same asset. The call is a no-op after the deposit is credited, so a retry on an already-resolved deposit returns `404`.

Read `flagFeeUSD` per asset from [`GET /trades/assets`](/api-reference/assets/fetch-deposit-assets) before calling, and see [Deposits](/deposits#what-happens-when-a-deposit-is-flagged) for the full flow.

## Path parameters

- `id` string, required

## Response `200`

Deposit resolved, wallet credited

## Other responses

- `400`: Invalid deposit ID, or the amount left after the resolution fee is too low
- `401`: Invalid or missing API credentials
- `403`: The integration is inactive or the action is not permitted
- `404`: No deposit with that ID is flagged for being below the minimum on your account, or it has already been resolved
- `500`: An unexpected server error occurred

## Changes

- **2026-11-03** `41450811e16e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/breet/apis/breet-public-api/changes/trades/sells/sell/:id/complete/post.md)

---

[API](https://skmtc.dev/breet/apis/breet-public-api.md) - [All operations](https://skmtc.dev/breet/apis/breet-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/breet/apis/breet-public-api/revisions/a2559b3ef61f?raw)
