> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://partner.ninjatrader.com/connect/api/rest-api-endpoints/funds/start-stripe-funding/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server. # Start Stripe Funding POST https://live.tradovateapi.com/v1/fundTransaction/startstripefunding Content-Type: application/json ### Start a saved-card or Apple Pay or Google Pay debit-card deposit.**Available to:** All authenticated users**Environments:** Live**[Rate Limit](/connect/overview/core-concepts/rate-limits):** 20 requests per rolling hour, 3-second back-off, counts all requests, CAPTCHA enabled**CAPTCHA fallback:** If a penalty response includes `p-captcha: true`, stop API retries and do not retry with `p-ticket`. A server-side integration cannot solve the reCAPTCHA challenge. Direct the user to the [NinjaTrader-hosted funding flow](/connect/overview/partner-integration/embedding-funding-page-with-i-frame), or wait approximately one hour for the penalty count to clear before resuming API calls.Use this endpoint for the deposit operation after checking eligibility.**Saved Card**Send `accountId`, `amount`, `currencyId`, and NinjaTrader's approved numeric `fundingMethodId`. The method must have been approved by ANI or a successful Dyneti scan and must not be archived.**Apple Pay or Google Pay**Use Stripe Express Checkout in the user's client to create a confirmation token. Send `accountId`, `amount`, `currencyId`, `stripeConfirmationToken`, and `flowType: WalletFunding`. Wallet funding does not call `addStripeDebitCard` and does not run ANI or Dyneti.**Warning:** The generated schema also exposes `stripePaymentMethod`, `signature`, and `date`. The supported partner flows use either `fundingMethodId` or `stripeConfirmationToken`; do not use the legacy fields as a direct-deposit path.**Warning:** HTTP 200 does not guarantee the deposit succeeded. A successful deposit, a canceled deposit, and another terminal Stripe outcome can each return an empty body with no `errorText`. Do not credit the deposit from this response alone.Before calling this endpoint, retrieve the account's existing [`CashBalanceLog` entries](/connect/api/rest-api-endpoints/accounting/cash-balance-log-dependents) and record the highest `id`. After the call, poll that endpoint with the same `accountId` as `masterid`. Confirm the deposit only after a newer entry appears with the requested `currencyId`, a positive `delta` equal to the deposit amount, and `cashChangeType: FundTransaction`. An empty `startStripeFunding` response without that matching ledger entry is not confirmation; do not retry the charge blindly. If your integration cannot perform this reconciliation, use the [NinjaTrader-hosted funding flow](/connect/overview/partner-integration/embedding-funding-page-with-i-frame).**Common Failure Scenarios**- Account is closed or restricted - Eligibility check fails - Saved funding method is absent, unapproved, archived, or does not belong to the account holder - Another fund transaction for the account is in progress - Wallet token has no wallet PaymentMethod preview - Wallet type is not Apple Pay or Google Pay - Card is not debit or the cardholder name does not match - User has a declined card under review**Related Endpoints**- Use [`checkStripeFundingEligibility`](/connect/api/rest-api-endpoints/funds/check-stripe-funding-eligibility) immediately before the deposit. - Use [`addStripeDebitCard`](/connect/api/rest-api-endpoints/funds/add-stripe-debit-card) and, conditionally, [`processDyScanResult`](/connect/api/rest-api-endpoints/funds/process-dy-scan-result) to prepare a saved card. - Use [`cashBalanceLogDependents`](/connect/api/rest-api-endpoints/accounting/cash-balance-log-dependents) to confirm that the deposit posted. - Do not use `submitDebitCardFunding` as the deposit operation. Reference: https://partner.ninjatrader.com/connect/api/rest-api-endpoints/funds/start-stripe-funding ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Body (application/json) This endpoint expects a StartStripeFunding. - `accountId` (long, required) - `amount` (double, required) - `currencyId` (long, required) - `fundingMethodId` (long, optional) - `stripePaymentMethod` (string, optional) - `stripeConfirmationToken` (string, optional) - `flowType` (enum, optional) — Standard, WalletFunding - Allowed values: `Standard`, `WalletFunding` - `signature` (string, optional) - `date` (string, optional) ## Response ### 200 StartStripeFundingResponse - `errorText` (string, optional) — Non-empty if the request failed - `stripePaymentIntentId` (long, optional) - `stripeClientSecret` (string, optional) ## Examples ### Saved-card response; verify funding status separately **Request** ```json { "accountId": 123456, "amount": 250, "currencyId": 1, "fundingMethodId": 98765 } ``` **Response** ```json {} ``` **SDK Code** ```python Saved-card response; verify funding status separately import requests url = "https://live.tradovateapi.com/v1/fundTransaction/startstripefunding" payload = { "accountId": 123456, "amount": 250, "currencyId": 1, "fundingMethodId": 98765 } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Saved-card response; verify funding status separately const url = 'https://live.tradovateapi.com/v1/fundTransaction/startstripefunding'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"accountId":123456,"amount":250,"currencyId":1,"fundingMethodId":98765}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Saved-card response; verify funding status separately package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://live.tradovateapi.com/v1/fundTransaction/startstripefunding" payload := strings.NewReader("{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"fundingMethodId\": 98765\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Saved-card response; verify funding status separately require 'uri' require 'net/http' url = URI("https://live.tradovateapi.com/v1/fundTransaction/startstripefunding") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"fundingMethodId\": 98765\n}" response = http.request(request) puts response.read_body ``` ```java Saved-card response; verify funding status separately import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://live.tradovateapi.com/v1/fundTransaction/startstripefunding") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"fundingMethodId\": 98765\n}") .asString(); ``` ```php Saved-card response; verify funding status separately request('POST', 'https://live.tradovateapi.com/v1/fundTransaction/startstripefunding', [ 'body' => '{ "accountId": 123456, "amount": 250, "currencyId": 1, "fundingMethodId": 98765 }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Saved-card response; verify funding status separately using RestSharp; var client = new RestClient("https://live.tradovateapi.com/v1/fundTransaction/startstripefunding"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"fundingMethodId\": 98765\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Saved-card response; verify funding status separately import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "accountId": 123456, "amount": 250, "currencyId": 1, "fundingMethodId": 98765 ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/fundTransaction/startstripefunding")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### Wallet response; verify funding status separately **Request** ```json { "accountId": 123456, "amount": 250, "currencyId": 1, "stripeConfirmationToken": "ctoken_example", "flowType": "WalletFunding" } ``` **Response** ```json {} ``` **SDK Code** ```python Wallet response; verify funding status separately import requests url = "https://live.tradovateapi.com/v1/fundTransaction/startstripefunding" payload = { "accountId": 123456, "amount": 250, "currencyId": 1, "stripeConfirmationToken": "ctoken_example", "flowType": "WalletFunding" } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Wallet response; verify funding status separately const url = 'https://live.tradovateapi.com/v1/fundTransaction/startstripefunding'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"accountId":123456,"amount":250,"currencyId":1,"stripeConfirmationToken":"ctoken_example","flowType":"WalletFunding"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Wallet response; verify funding status separately package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://live.tradovateapi.com/v1/fundTransaction/startstripefunding" payload := strings.NewReader("{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"stripeConfirmationToken\": \"ctoken_example\",\n \"flowType\": \"WalletFunding\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Wallet response; verify funding status separately require 'uri' require 'net/http' url = URI("https://live.tradovateapi.com/v1/fundTransaction/startstripefunding") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"stripeConfirmationToken\": \"ctoken_example\",\n \"flowType\": \"WalletFunding\"\n}" response = http.request(request) puts response.read_body ``` ```java Wallet response; verify funding status separately import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://live.tradovateapi.com/v1/fundTransaction/startstripefunding") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"stripeConfirmationToken\": \"ctoken_example\",\n \"flowType\": \"WalletFunding\"\n}") .asString(); ``` ```php Wallet response; verify funding status separately request('POST', 'https://live.tradovateapi.com/v1/fundTransaction/startstripefunding', [ 'body' => '{ "accountId": 123456, "amount": 250, "currencyId": 1, "stripeConfirmationToken": "ctoken_example", "flowType": "WalletFunding" }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Wallet response; verify funding status separately using RestSharp; var client = new RestClient("https://live.tradovateapi.com/v1/fundTransaction/startstripefunding"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"accountId\": 123456,\n \"amount\": 250,\n \"currencyId\": 1,\n \"stripeConfirmationToken\": \"ctoken_example\",\n \"flowType\": \"WalletFunding\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Wallet response; verify funding status separately import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "accountId": 123456, "amount": 250, "currencyId": 1, "stripeConfirmationToken": "ctoken_example", "flowType": "WalletFunding" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/fundTransaction/startstripefunding")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```