Skip to content
Get startedWebsite

Withdraw from account

AccountWithdrawResponse Accounts.Withdraw(AccountWithdrawParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/accounts/{id}/withdraw

Withdraw from account

ParametersExpand Collapse
AccountWithdrawParams parameters
required string id
formatuuid
required string amount
string? description
ReturnsExpand Collapse
class AccountWithdrawResponse:
required Account Account
required string ID
formatuuid
required string AccountNumber
required AccountType AccountType
One of the following:
"checking"Checking
"saving"Saving
required string Balance
required string Currency
required string Environment
required Status Status
One of the following:
"active"Active
"suspended"Suspended
"closed"Closed
required string UserID
formatuuid
string? AdminUserID
formatuuid
DateTimeOffset? CreatedAt
formatdate-time
string? OrganizationID
formatuuid
DateTimeOffset? UpdatedAt
formatdate-time
string? UserRole
required Transaction Transaction
required string ID
formatuuid
required string AccountID
formatuuid
required string Amount
required string BalanceAfter
required DateTimeOffset CreatedAt
formatdate-time
required string Currency
required Status Status
One of the following:
"pending"Pending
"completed"Completed
"failed"Failed
"cancelled"Cancelled
required TransactionType TransactionType
One of the following:
"deposit"Deposit
"withdrawal"Withdrawal
"transfer"Transfer
"recurring_payment"RecurringPayment
"savings_withdraw"SavingsWithdraw
required DateTimeOffset UpdatedAt
formatdate-time
string? Description
string? ExternalRecipientID
string? RecipientAccountID
formatuuid
string? ReferenceID
formatuuid

Withdraw from account

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

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

Console.WriteLine(response);
{
  "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"
  }
}
Returns Examples
{
  "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"
  }
}