Submit Fund Transaction
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
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
ACHRorACHSsubmitted 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
submitFundTransactionrequest already exists for the account
Response Handling
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:
Common Error Messages
Related Endpoints
- Use
inTransitFundTransactionto record a wire deposit that has been initiated but hasn’t settled yet. - Use
submitFundConversionto convert cash between currencies within an account. - Use
adjustCashto manage simulated balances on demo accounts.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Response
Non-empty if the request failed
Non-empty if the request failed