## Withdraw from account

`AccountWithdrawResponse Accounts.Withdraw(AccountWithdrawParamsparameters, CancellationTokencancellationToken = default)`

**post** `/api/v1/accounts/{id}/withdraw`

Withdraw from account

### Parameters

- `AccountWithdrawParams parameters`

  - `required string id`

  - `required string amount`

  - `string? description`

### Returns

- `class AccountWithdrawResponse:`

  - `required Account Account`

    - `required string ID`

    - `required string AccountNumber`

    - `required AccountType AccountType`

      - `"checking"Checking`

      - `"saving"Saving`

    - `required string Balance`

    - `required string Currency`

    - `required string Environment`

    - `required Status Status`

      - `"active"Active`

      - `"suspended"Suspended`

      - `"closed"Closed`

    - `required string UserID`

    - `string? AdminUserID`

    - `DateTimeOffset? CreatedAt`

    - `string? OrganizationID`

    - `DateTimeOffset? UpdatedAt`

    - `string? UserRole`

  - `required Transaction Transaction`

    - `required string ID`

    - `required string AccountID`

    - `required string Amount`

    - `required string BalanceAfter`

    - `required DateTimeOffset CreatedAt`

    - `required string Currency`

    - `required Status Status`

      - `"pending"Pending`

      - `"completed"Completed`

      - `"failed"Failed`

      - `"cancelled"Cancelled`

    - `required TransactionType TransactionType`

      - `"deposit"Deposit`

      - `"withdrawal"Withdrawal`

      - `"transfer"Transfer`

      - `"recurring_payment"RecurringPayment`

      - `"savings_withdraw"SavingsWithdraw`

    - `required DateTimeOffset UpdatedAt`

    - `string? Description`

    - `string? ExternalRecipientID`

    - `string? RecipientAccountID`

    - `string? ReferenceID`

### Example

```csharp
AccountWithdrawParams parameters = new()
{
    ID = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    Amount = "amount",
};

var response = await client.Accounts.Withdraw(parameters);

Console.WriteLine(response);
```

#### Response

```json
{
  "account": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "account_number": "account_number",
    "account_type": "checking",
    "balance": "balance",
    "currency": "currency",
    "environment": "environment",
    "status": "active",
    "user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "admin_user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "created_at": "2019-12-27T18:11:19.117Z",
    "organization_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "updated_at": "2019-12-27T18:11:19.117Z",
    "user_role": "user_role"
  },
  "transaction": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "amount": "amount",
    "balance_after": "balance_after",
    "created_at": "2019-12-27T18:11:19.117Z",
    "currency": "currency",
    "status": "pending",
    "transaction_type": "deposit",
    "updated_at": "2019-12-27T18:11:19.117Z",
    "description": "description",
    "external_recipient_id": "external_recipient_id",
    "recipient_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "reference_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
  }
}
```
