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

# 储蓄提款

> 从储蓄账户提款到银行或加密货币钱包

## 创建提款

```bash theme={null}
POST /api/v2/savings/withdrawal
```

```json theme={null}
{
  "source": {
    "savingsAccountId": "savings-id"
  },
  "destination": {
    "savingsAccountId": "savings-id",
    "externalAccountId": "bank-or-wallet-id"
  },
  "amount": 1000,
  "comment": "提款到银行"
}
```

## 示例

```javascript theme={null}
const withdraw = async (savingsAccountId, destinationAccountId, amount) => {
  const response = await fetch(
    'https://sandbox.killb.app/api/v2/savings/withdrawal',
    {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${token}`,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        source: {
          savingsAccountId: savingsAccountId
        },
        destination: {
          savingsAccountId: savingsAccountId,
          externalAccountId: destinationAccountId
        },
        amount: amount,
        comment: '用户提款'
      })
    }
  );
  
  return await response.json();
};
```

## 处理时间

* **到银行（ACH）：** 1-3 个工作日
* **到银行（电汇）：** 当天
* **到加密货币：** 5-30 分钟

## 下一步

<Card title="交易历史" icon="clock-rotate-left" href="/api-reference/endpoint/savings-create">
  查看储蓄 API 文档
</Card>
