Skip to navigation

Submit Fund Transaction

View as Markdown

Submit a deposit or withdrawal request for an account.

Available to: All authenticated users (own account); organization administrators (any account in their organization)

Environments: Live

Rate Limit: No endpoint-specific limit

Submit a funding request against a live account. Set outgoing to false for a deposit or true for a withdrawal. The request creates a fund transaction that moves through the standard funding review workflow, and the response returns the created fundTransaction record.

Account holders can submit requests for their own accounts. Organization administrators can submit on behalf of customer accounts in their organization.

For an ACH deposit, set fundPaymentType to ACHR and outgoing to false. For an ACH withdrawal, set fundPaymentType to ACHS and outgoing to true. Omit bankAccountId for both ACH request types. The server uses the approved ACH application associated with the trading account.

Field Details

The fundCurrencyId must correspond to one of the supported currencies: USD, EUR, AUD, GBP, or CAD. Currency IDs are environment-specific — use the /currency/list endpoint to retrieve valid IDs.

Leave the fee fields (feePaymentType, feeAmount, feeCurrencyId, feeDescription) empty. Any applicable transaction fee is looked up automatically from the account’s fee schedule. Custom fees are reserved for internal administrators, and requests that include them are rejected.

Set fullBalance to true on a withdrawal to request the account’s entire balance. For an ACH full-balance withdrawal, send ACHS with outgoing: true, fundAmount: 0, and fullBalance: true. The server determines the amount when it processes the request. Submitting a full-balance request temporarily locks the trading account for immediate liquidation until the request is approved or rejected. The request is rejected while the account has an open position or working order, a pending ACH deposit, funds in an ACH hold, or another pending full-balance request.

fundPaymentType Values

ValueMeaning
WTRWire deposit
WTSWire withdrawal — requires bankAccountId
ACHRACH deposit — requires an approved ACH application on the account
ACHSACH withdrawal — requires an approved ACH application on the account
CKRCheck deposit — USD only
CKSCheck withdrawal — no longer supported; requests are rejected
DCR, DCS(Internal) Debit card transactions. Set automatically by the system through the debit card funding flow. These values are not intended for partner workflows.
BOOKR, BOOKS(Internal) Book transfers. Set automatically by the system. These values are not intended for partner workflows.
SHR, SHS(Internal) Shadow fund transactions. Set automatically by submitShadowFundTransaction and submitManagedFundTransaction. Requests using these values are rejected on this endpoint.
CKF, WTF, TF, TT, FX, XFR, MDF, FPR(Internal) Legacy transaction type codes that can appear on historical fund transaction records. No current funding workflow submits them — use the documented types above for new requests.

Funds in Transit

If your organization has Funds in Transit enabled with a tradable cap configured, qualifying ACH deposits (ACHR with outgoing: false) may be processed as in-transit transactions: the deposit amount, up to the organization’s remaining cap, becomes tradable immediately while the transfer settles. In-transit funds are tradable but not withdrawable. ACH withdrawals (ACHS) always use standard processing. Deposits that don’t qualify for Funds in Transit also use standard processing.

The Payment Processor Disclosure and Authorization requirement applies only to ACH deposits (ACHR). An ACH withdrawal (ACHS) isn’t rejected for a missing disclosure, but it still requires an approved ACH application.

Common Failure Scenarios

  • Account is closed or restricted
  • Caller is neither the account holder nor an organization administrator
  • Withdrawal amount exceeds the account’s available margin excess
  • ACHR or ACHS submitted without an approved ACH application
  • Custom fee fields included by a non-administrator
  • Payment type is reserved for system use (DCR, DCS, BOOKR, BOOKS, SHR, SHS) or targets a shadow account
  • A pending submitFundTransaction request already exists for the account

Response Handling

A business rejection is returned as HTTP 200 with a non-empty errorText, an errorCode, or both. Treat the request as successful only when neither field reports an error and the response includes fundTransaction.

Treat Unknown as an indeterminate outcome. A server timeout can return Unknown after the request was sent, so the transaction may still have been created. Check the account’s fund transactions and balance before submitting the request again. Apply the same check after a network error, HTTP 5xx, non-JSON response, or response that can’t be parsed; don’t retry automatically.

Error Codes

The following errorCode values can be returned by submitFundTransaction:

errorCodeTrigger
UnknownAuthorization, validation, unsupported-payment-type, custom-fee, timeout, or internal processing failure that doesn’t have a more specific code
InsufficientFundsThe account doesn’t have enough available funds for the withdrawal or transaction fee
AchNoApprovedApplicationsNo approved ACH application is associated with the account
AchDepositFrequencyExceededThe ACH deposit cadence or daily-count limit has been reached
AchDepositBelowMinimumThe ACH deposit is below the configured minimum
AchDepositAboveMaximumThe ACH deposit is above the application’s or clearing firm’s configured maximum
AchPendingDepositExistsAnother ACH deposit is pending
AchWithdrawalFrequencyExceededThe ACH withdrawal cadence limit has been reached
AchDepositHoldPeriodAn ACH withdrawal would use funds that are still in an ACH or debit-card deposit hold period
WireDepositHoldPeriodA non-ACH withdrawal would use funds that are still in an ACH or debit-card deposit hold period
FullBalanceWithPendingAchA full-balance withdrawal was requested while an ACH deposit is pending
FullBalanceRequestPendingAn ACH deposit, withdrawal, or full-balance request was submitted while another full-balance request is pending
FullBalanceWithAchHoldsA full-balance ACH withdrawal was requested while funds are in an ACH hold
FullBalanceWithOpenPositionsA full-balance withdrawal was requested while the account has an open position or working order
ConcurrentRequestRejectedAnother submitFundTransaction request for the account is still processing
BankAccountNSFThe linked bank account balance check reports insufficient funds
AccountLockFailedThe server couldn’t apply the temporary account lock required for a full-balance request
AchDisclosureNotAcceptedAn ACHR deposit was submitted before the customer accepted the Payment Processor Disclosure and Authorization

Common Error Messages

errorTextTrigger
"You are not authorized to perform this operation"Caller is neither the account holder nor an organization administrator
"Account not open for funding"Account is closed or restricted
"The selected currency is not supported. Please select either USD, EUR, AUD, or GBP."fundCurrencyId is not a supported currency
"You do not have sufficient margin excess to place this request. Please decrease the amount."Withdrawal exceeds available funds (errorCode: InsufficientFunds)
"Insufficient funds for transaction fees"Funds-in-transit deposit can’t cover the transaction fee (errorCode: InsufficientFunds)
"Custom fee is not allowed in fund requests."Fee fields included by a non-administrator
"There are no approved ACH applications. Please submit a new ACH application under Transfers & Payments, Add ACH Account."ACHR/ACHS without an approved ACH application (errorCode: AchNoApprovedApplications)
"Please review and accept the Payment Processor Disclosure and Authorization before funding your account by ACH."ACHR without an accepted disclosure (errorCode: AchDisclosureNotAccepted)
"Check deposits must be in US dollars."CKR with a non-USD currency
"Check withdrawals are no longer supported. Please select another withdrawal option."fundPaymentType is CKS
"Not supported"Shadow account, shadow payment type, or a system-reserved payment type submitted by a non-administrator
"Pending submitFundTransaction request already exists for this account."A concurrent request is still processing (errorCode: ConcurrentRequestRejected)

Related Endpoints

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
accountIdlongRequired
outgoingbooleanRequired
fundPaymentTypeenumRequired
ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, IATR, IATS, MDF, SHR, SHS, TF, TT, WTF, WTR, WTS, WTSA, XFR
fundAmountdoubleRequired
fundCurrencyIdlongRequired
fundDescriptionstringOptional<=8192 characters
feePaymentTypeenumOptional
ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, IATR, IATS, MDF, SHR, SHS, TF, TT, WTF, WTR, WTS, WTSA, XFR
feeAmountdoubleOptional
feeCurrencyIdlongOptional
feeDescriptionstringOptional<=8192 characters
bankAccountIdlongOptional
fullBalancebooleanOptional

Response

FundTransactionResponse
errorTextstringOptional<=8192 characters

Non-empty if the request failed

errorHeaderstringOptional<=8192 characters

Non-empty if the request failed

fundTransactionobjectOptional
errorCodeenumOptional
AccountLockFailed, AchDepositAboveMaximum, AchDepositAmountExceeded, AchDepositBelowMinimum, AchDepositExpected, AchDepositFrequencyExceeded, AchDepositHoldPeriod, AchDisclosureNotAccepted, AchNoApprovedApplications, AchPendingDepositExists, AchWithdrawalFrequencyExceeded, ApprovalStatusLocked, BankAccountNSF, ConcurrentRequestRejected, DuplicateAchReturn, DuplicateShadowTransaction, FullBalanceRequestPending, FullBalanceWithAchHolds, FullBalanceWithOpenPositions, FullBalanceWithPendingAch, IatFailedNoCashMoved, IatPending, InsufficientFunds, TransactionAlreadyApproved, TransactionAlreadyDeclined, TransactionNotApplicable, TransactionNotFound, Unknown, WireDepositHoldPeriod