> ## Documentation Index
> Fetch the complete documentation index at: https://docs.groundtech.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Withdraw Funds

> Preview, initiate, and track portfolio wallet withdrawals.

Withdraw stablecoins to a recipient by previewing the amount, submitting the
request, and tracking delivery. Ground redeems investments and moves funds
between networks when needed. Withdrawals subject to your signing policy wait for customer approval.

## Withdrawal lifecycle

1. **Preview** -- call `withdrawal-preview` to see what's available and get a sourcing plan.
2. **Initiate** -- call `withdrawals` to create the withdrawal. The system reserves liquidity and begins sourcing.
3. **Track** -- poll the withdrawal or subscribe to webhooks. The withdrawal moves through statuses as positions unwind, funds bridge, and payouts execute.
4. **Complete** -- the withdrawal reaches `completed` when all funds have been delivered.

## Preview a withdrawal

Before initiating, preview what balance is available for a given destination.

```bash EVM USDC theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST "$BASE_URL/v3/wallets/$WALLET_ID/withdrawal-preview" \
  -H "Authorization: Bearer $GROUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "destinationChain": "ethereum",
  "amountUsd": "65000.00",
  "token": "usdc",
  "partnerFeeAmountUsd": "25.00",
  "partnerFeeRecipientAddress": "0x1111111111111111111111111111111111111111"
}'
```

```bash Solana USDC theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST "$BASE_URL/v3/wallets/$WALLET_ID/withdrawal-preview" \
  -H "Authorization: Bearer $GROUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "destinationChain": "solana",
  "token": "usdc",
  "amountUsd": "10.00"
}'
```

```bash Stellar USDC theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST "$BASE_URL/v3/wallets/$WALLET_ID/withdrawal-preview" \
  -H "Authorization: Bearer $GROUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "destinationChain": "stellar",
  "token": "usdc",
  "amountUsd": "10.00"
}'
```

```bash TRON USDT theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST "$BASE_URL/v3/wallets/$WALLET_ID/withdrawal-preview" \
  -H "Authorization: Bearer $GROUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "destinationChain": "tron",
  "token": "usdt",
  "amountUsd": "10.00"
}'
```

Set the destination network and token you want to receive. Send USD amounts as
decimal strings with at most six decimal places. Include `amountUsd` for a specific
gross amount, or omit it to preview the maximum available amount.

With an explicit `amountUsd`, `amountRequestedUsd` echoes the requested amount:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "amountRequestedUsd": "65000.000000",
  "feeUsd": "0.000000",
  "partnerFeeUsd": "25.000000",
  "amountToReceiveUsd": "64975.000000",
  "withdrawableUsd": "82500.000000",
  "totalUsdAfterWithdrawal": "35000.000000",
  "processingEstimate": {
    "min": 7200,
    "max": 7200,
    "unit": "seconds"
  }
}
```

When `amountUsd` is omitted, the preview resolves the maximum available balance and returns that amount in `amountRequestedUsd`:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "amountRequestedUsd": "82500.000000",
  "feeUsd": "0.000000",
  "partnerFeeUsd": "0.000000",
  "amountToReceiveUsd": "82500.000000",
  "withdrawableUsd": "82500.000000",
  "totalUsdAfterWithdrawal": "17500.000000",
  "processingEstimate": {
    "min": 7200,
    "max": 7200,
    "unit": "seconds"
  }
}
```

Use `amountToReceiveUsd` for the estimated payout after fees and
`processingEstimate` for expected timing. A missing estimate is unavailable,
not immediate settlement.

The wallet's `withdrawableUsd` covers all available holdings. Preview
`withdrawableUsd` counts only funds that can reach your requested token and
network. For example, a wallet with \$600 USDC and \$400 USDT on TRON can show
\$1,000 withdrawable overall, while an Ethereum USDC preview shows only \$600.
The TRON USDT cannot fund that payout. Both figures are before withdrawal fees.

## Initiate a withdrawal

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST "$BASE_URL/v3/wallets/$WALLET_ID/withdrawals" \
  -H "Authorization: Bearer $GROUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "requestId": "df8b7be6-e110-4f6d-9b2d-7c44a5b1f0b0",
  "destinationChain": "ethereum",
  "amountUsd": "65000.00",
  "token": "usdc",
  "destinationAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "partnerFeeAmountUsd": "25.00",
  "partnerFeeRecipientAddress": "0x1111111111111111111111111111111111111111"
}'
```

Use the same destination, amount, memo, selected sources, and fees you previewed.
Add the recipient address and a new UUID v4 `requestId`. Save the ID and exact
payload before sending; retry an uncertain response with them unchanged.

For a Stellar recipient that requires a memo, include the same memo in preview
and create requests. See the `memo` field in the
[withdrawal reference](https://docs.groundtech.co/v3/api-reference/withdraw.md).

To withdraw exact amounts from selected positions, disable automatic rebalancing and send the same
`sources` array to preview and create:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "requestId": "c6b0be95-7f37-4334-9476-89fcc3538761",
  "destinationChain": "ethereum",
  "token": "usdc",
  "destinationAddress": "0x1111111111111111111111111111111111111111",
  "amountUsd": "1000.00",
  "sources": [
    {
      "assetId": "528c2a8c-e961-4cb6-8a6b-966e05475496",
      "amountUsd": "600.00"
    },
    {
      "assetId": "03389041-80ad-4dcf-8fe2-3536bcfe92db",
      "amountUsd": "400.00"
    }
  ]
}
```

Use `assetId` values from the wallet’s holdings or asset catalog. Ground does not fall back
to another position when a selected source cannot cover its requested amount.
Wallets with automatic rebalancing do not support explicit sources.

When `withdraw` succeeds, Ground has accepted the gross debit and reserved liquidity against the wallet. The destination receives the gross `amountUsd` minus execution fees and any partner fee. Ground snapshots the partner fee and recipient for that withdrawal and sends the customer payout and partner fee atomically. The payout legs remain the source of truth for what was actually delivered, especially for asynchronous exits.

## List withdrawals

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X GET "$BASE_URL/v3/wallets/$WALLET_ID/withdrawals?limit=25" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

Use the [list reference](https://docs.groundtech.co/v3/api-reference/list-withdrawals.md) for filters and cursor pagination.

## Fetch a withdrawal

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X GET "$BASE_URL/v3/wallets/$WALLET_ID/withdrawals/$WITHDRAWAL_ID" \
  -H "Authorization: Bearer $GROUND_API_KEY"
```

A **payout leg** is one portion of the withdrawal delivered from a funding
source to the recipient. A withdrawal funded from several holdings can have
several legs, each progressing separately. Its `steps` show the work needed for
that portion, such as redeeming an investment, bridging funds, and sending the
payout. One leg can complete while another is still processing.

Read `status`, confirmed `amountPaidUsd`, and `payoutLegs` to distinguish
settlement from work still in progress. Paid amounts remain `null` until a payout
confirms. The [reference examples](https://docs.groundtech.co/v3/api-reference/get-withdrawal.md) show the full
response in each meaningful state.

Use `portfolio_wallet.withdrawal.payout.status_changed` for per-leg progress, including the redeem and payout-transfer steps. When a step enters `pending_customer_approval`, fetch the pending approval activity and verify it before approving — see [Transaction Approvals](https://docs.groundtech.co/v3/docs/portfolio-wallets/transaction-approvals.md).

### Payout statuses

Withdrawal `payoutLegs[].status` and `payoutLegs[].steps[].state` use the workflow status set:

| Status | Terminal | Meaning |
| - | - | - |
| `created` | No | Payout leg or step has been planned but has not started. |
| `processing` | No | Payout is actively being processed. |
| `pending_customer_approval` | No | Awaiting the organization's configured signer. Use Ground Portal or your approval integration to approve or reject the activity. |
| `completed` | Yes | Payout delivered successfully. |
| `failed` | Yes | Payout failed; see `failureReason` |
| `cancelled` | Yes | Payout was cancelled (e.g. parent withdrawal cancelled) |

## Withdrawal statuses

Withdrawals move through five public statuses:

| Status | Meaning |
| - | - |
| `processing` | Accepted and in progress: unwinding positions, bridging, or delivering funds |
| `partially_completed` | Terminal: some payout legs completed while others did not |
| `completed` | Terminal: funds delivered to destination address |
| `failed` | Terminal: withdrawal failed |
| `cancelled` | Terminal: withdrawal was cancelled |

If realized redemption proceeds are not enough to pay the committed partner fee while leaving a positive customer payout, the withdrawal fails before payout with `failureReason: "insufficient_proceeds_after_partner_fee"`. No customer payout or partner fee is sent, and the realized proceeds remain available in the portfolio wallet. Submit a new withdrawal with a lower or zero partner fee.

### Tempo withdrawals

On Tempo mainnet, `token: "usdc"` delivers USDC.e and `token: "ousd"` delivers OUSD.

Use `destinationChain: "tempo"` and `token: "usdc"` to receive USDC.e on Tempo mainnet. Preview first, then submit a withdrawal with the same destination and a new `requestId`. USDC.e withdrawals to Tempo are not available in sandbox. Partner fees are not supported for Tempo withdrawals.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "requestId": "da7cc377-8e31-45ea-9078-857abcc13c03",
  "destinationChain": "tempo",
  "destinationAddress": "0x76f8fc6667e239f83a547d4e16225d6a34f6fa22",
  "token": "usdc",
  "amountUsd": "10.00"
}
```

Track the withdrawal until `completed`; acceptance does not confirm delivery.

## Timing expectations

Creating a withdrawal reserves funds; it does not guarantee the final payout. Provider queues, market liquidity, and cross-network delivery affect completion. Queued exits can settle in parts, and realized proceeds can differ from the preview.

Investing through a [fee wrapper](https://docs.groundtech.co/v3/docs/portfolio-wallets/fee-wrappers.md) accrues fees in wrapper shares. This is separate from the optional partner fee deducted during a withdrawal payout.

Withdrawal time depends on which investments need to unwind and whether funds must move between networks. `processingEstimate` returns integer `min` and `max` bounds with `unit: "seconds"` for the complete selected route. Ground applies provider calendars, holidays, and cutoffs before calculating the range. Date-based estimates retain their day-level uncertainty. A preview estimates a request submitted now; workflow ranges are measured from request acceptance, not a countdown. `null` means no reliable estimate is available.

Use the withdrawal preview for the selected wallet, amount, and destination, then track the workflow to completion.

Subscribe to `portfolio_wallet.withdrawal.status_changed` to refresh the withdrawal after state changes. See [Webhooks](https://docs.groundtech.co/v3/docs/portfolio-wallets/webhooks.md) for registration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.