> 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/process-dy-scan-result/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server. # Process Dy Scan Result POST https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult Content-Type: application/json ### Process the result of a completed Dyneti debit-card scan. **Available to:** All authenticated users **Environments:** Live **[Rate Limit](/connect/overview/core-concepts/rate-limits):** No endpoint-specific limit Call this endpoint only after `addStripeDebitCard` returns `last4`, `nameOnCard`, and `stripeFundingMethodId`. Run the Dyneti card-scan SDK in the partner's own client, then submit the resulting `scanId` with NinjaTrader's numeric `stripeFundingMethodId`. The browser-side DyScan SDK key is used only to initialize and complete the scan. Do not send that key to this endpoint or reuse NinjaTrader dashboard credentials; contact your NinjaTrader partner representative for an approved Dyneti integration. NinjaTrader's funding service holds a separate server-side Dyneti API credential and makes an authenticated external request to Dyneti for `scan/{scanId}`. This endpoint does not capture or upload a card image. It verifies that: * the caller can access the specified funding method; * the funding method is `Pending` or `DcvRequested`; * Dyneti reports the scan as `scanComplete` with decline-reason data; and * the returned cardholder name and last four digits exactly match the values stored on the pending Stripe funding method. These comparisons prevent a scan ID created for another card or user from approving the pending method. Call this endpoint only after the client SDK reports completion. An incomplete, invalid, mismatched, or unprocessable scan cancels the pending funding method, so the user must register the card again before retrying. For a valid response, the service stores Dyneti's `formatMismatch`, `numberMismatch`, `generatedImage`, `rateLimited`, and optional `nameMismatch` results. Format mismatch, generated-image, or rate-limit findings are treated as fraud and decline the funding method. Number or name mismatch without a fraud finding cancels it. A clean result approves it. **Response Interpretation** | Fields | Meaning | | ------------------------------------- | ------------------------------------------------------------------------------ | | `isVerified: true`, `isFraud: false` | Card is approved and can be used for funding | | `isVerified: false`, `isFraud: true` | Scan was classified as fraud; the method is declined | | `isVerified: false`, `isFraud: false` | Non-fraud verification failure; the method is canceled | | non-empty `errorText` | Scan could not be processed; do not call `startStripeFunding` with this method | **Common Failure Scenarios** * Unknown or expired Dyneti scan ID * Scan belongs to a different cardholder or card number * Funding method is no longer pending * Dyneti reports a format, number, generated-image, rate-limit, or name mismatch **Related Endpoints** * Use [`addStripeDebitCard`](/connect/api/rest-api-endpoints/funds/add-stripe-debit-card) to create the pending method. * After `isVerified: true`, use [`startStripeFunding`](/connect/api/rest-api-endpoints/funds/start-stripe-funding). Reference: https://partner.ninjatrader.com/connect/api/rest-api-endpoints/funds/process-dy-scan-result ## 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 ProcessDyScanResult. - `stripeFundingMethodId` (long, required) - `scanId` (string, required) ## Response ### 200 ProcessDyScanResultResponse - `stripeFundingMethodId` (long, required) - `scanId` (string, required) - `errorText` (string, optional) — Non-empty if the request failed - `isVerified` (boolean, optional) - `isFraud` (boolean, optional) ## Examples **Request** ```json { "stripeFundingMethodId": 98765, "scanId": "9762363e-5d82-4bd3-9f7e-e0edb8be688b" } ``` **Response** ```json { "stripeFundingMethodId": 98765, "scanId": "9762363e-5d82-4bd3-9f7e-e0edb8be688b", "isVerified": true, "isFraud": false } ``` **SDK Code** ```python import requests url = "https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult" payload = { "stripeFundingMethodId": 98765, "scanId": "9762363e-5d82-4bd3-9f7e-e0edb8be688b" } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"stripeFundingMethodId":98765,"scanId":"9762363e-5d82-4bd3-9f7e-e0edb8be688b"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult" payload := strings.NewReader("{\n \"stripeFundingMethodId\": 98765,\n \"scanId\": \"9762363e-5d82-4bd3-9f7e-e0edb8be688b\"\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 require 'uri' require 'net/http' url = URI("https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult") 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 \"stripeFundingMethodId\": 98765,\n \"scanId\": \"9762363e-5d82-4bd3-9f7e-e0edb8be688b\"\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"stripeFundingMethodId\": 98765,\n \"scanId\": \"9762363e-5d82-4bd3-9f7e-e0edb8be688b\"\n}") .asString(); ``` ```php request('POST', 'https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult', [ 'body' => '{ "stripeFundingMethodId": 98765, "scanId": "9762363e-5d82-4bd3-9f7e-e0edb8be688b" }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"stripeFundingMethodId\": 98765,\n \"scanId\": \"9762363e-5d82-4bd3-9f7e-e0edb8be688b\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "stripeFundingMethodId": 98765, "scanId": "9762363e-5d82-4bd3-9f7e-e0edb8be688b" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/fundTransaction/processdyscanresult")! 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() ```