# Withdrawals (/docs/withdrawals)

A withdrawal sends funds from your balance to a **destination account** of your own, over the same rails as a payout.

## 1. Register your destination account [#1-register-your-destination-account]

<Endpoint method="POST" path="/v1/settlement-destinations" href="/api#tag/withdrawals/POST/v1/settlement-destinations" />

```json
{
  "method": "bank_transfer",
  "currency": "PEN",
  "details": { "cci": "00219100123456780123", "document_number": "20123456789", "first_name": "Mi", "last_name": "Empresa SAC" }
}
```

`details` uses the same `beneficiary_fields` as a payout with that method and currency. Registering the same account twice returns the existing one.

### Colombia (COP) [#colombia-cop]

Withdraw pesos to your company's own **Bre-B key**, **Nequi** wallet or **bank account**. Each takes the holder's `name`, `document` (`type`: `CC`, `CE`, `NIT`, `PPT` or `PAS`; `number`) and `phone` (`+57` and 10 digits), plus:

| `method` | Also in `details` |
| --- | --- |
| `bre_b` | `bre_b_key`: the key as it is, with its `@` if it has one. |
| `mobile_wallet` | `wallet`: `nequi`. |
| `bank_transfer` | `bank_code`, `account_number`, `account_type` (`savings` or `checking`). |

```json
{
  "method": "bre_b",
  "currency": "COP",
  "details": {
    "name": "Mi Empresa SAS",
    "document": { "type": "NIT", "number": "9001234567" },
    "phone": "+573001234567",
    "bre_b_key": "@miempresa"
  }
}
```

`GET /v1/capabilities?country=CO` lists the methods your account has and every field each one needs.

## 2. Withdraw [#2-withdraw]

<Endpoint method="POST" path="/v1/withdrawals" href="/api#tag/withdrawals/POST/v1/withdrawals" />

```bash
curl "$CAIBO_API/v1/withdrawals" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: retiro-2026-10-18" \
  -H "Content-Type: application/json" \
  -d '{ "destination_id": "dest_01m3sgc0...", "amount": "5000.00" }'
```

- `amount` is what the account receives, in its currency.
- `fee` is set when the withdrawal is created, and `total = amount + fee` is what leaves your balance.
- If your balance isn't enough, the withdrawal is created with `status: failed` and `failure_code: insufficient_funds`.

| `status` | Meaning |
| --- | --- |
| `pending_approval` | Exceeds your threshold and awaits Caibo's approval. The funds are set aside. |
| `processing` | On its way. |
| `completed` | Arrived. |
| `failed` | It couldn't be completed; the funds return. |
| `cancelled` | Rejected while awaiting approval. |

Events: `withdrawal.created`, `withdrawal.pending_approval`, `withdrawal.approved`, `withdrawal.submitted`, `withdrawal.completed`, `withdrawal.failed`, `withdrawal.cancelled`.
