# Withdraw Funds

> Create a withdrawal transaction that debits funds from the specified trading account.

Source: /admin/accounts-funding/funding/accounts-service_-withdraw-transaction

## `POST /accounts/{accountId}/withdraw`

**Withdraw Funds**

Create a withdrawal transaction that debits funds from the specified trading account.

Tags: `Funding`

#### Path parameters

- `accountId` (string) (required) — The account id to deposit to


### Request body

**Content-Type:** `application/json`

Funding instruction to credit or debit an account's cash balance.
amount is in the account's own currency and is rounded to that currency's decimals at write time.
For the deposit/withdraw endpoints the sign is encoded in the URL and amount must be positive;
the deprecated balance endpoint accepts a signed amount.
comment is an optional free-text memo persisted on the resulting BALANCE deal.
- `comment` (string)
- `amount` (number)


### Responses

#### `200` — A successful response.

**Content-Type:** `application/json`

Identifier of the BALANCE deal posted to the ledger.
- `dealId` (string)

#### `default` — An unexpected error response.

**Content-Type:** `application/json`

- `code` (integer)
- `message` (string)
- `details` (array)
  - items:
    - `@type` (string)

