{"id":3778,"date":"2022-11-12T00:10:20","date_gmt":"2022-11-12T00:10:20","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=3778"},"modified":"2022-12-14T22:08:22","modified_gmt":"2022-12-14T22:08:22","slug":"ft-rest","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/","title":{"rendered":"FT &#8211; REST"},"content":{"rendered":"\n<div class=\"wp-block-create-block-tabs\"><ul class=\"tab-labels\" role=\"tablist\" aria-label=\"tabbed content\"><li class=\"tab-label active\" role=\"tab\">C#<\/li><li class=\"tab-label\" role=\"tab\">Java<\/li><li class=\"tab-label\" role=\"tab\">PHP<\/li><li class=\"tab-label\" role=\"tab\">RoR<\/li><li class=\"tab-label\" role=\"tab\">Python<\/li><li class=\"tab-label\" role=\"tab\">ColdFusion<\/li><li class=\"tab-label\" role=\"tab\">VB<\/li><li class=\"tab-label\" role=\"tab\">TSQL<\/li><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax C# Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">BestMatchResponse result = null;\nstring mainURL = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\" + Address + \"&amp;Address2=\" + Address2 + \"&amp;City=\" + City + \"&amp;State=\" + State + \"&amp;Zip=\" + Zip + \"&amp;TaxType=\" + TaxType + \"&amp;LicenseKey=\" + LicenseKey;\n\/\/ A trial license key is not compatible with the backup datacenter.\n\/\/ The backup url is provided with a production license key.\nstring backupURL = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\" + Address + \"&amp;Address2=\" + Address2 + \"&amp;City=\" + City + \"&amp;State=\" + State + \"&amp;Zip=\" + Zip + \"&amp;TaxType=\" + TaxType + \"&amp;LicenseKey=\" + LicenseKey;\n \ntry\n{\n    result = HttpGet(mainURL);\n    \/\/NULL ERROR || FATAL ERROR RETURNED -- TRY BACKUP\n    if (result == null|| (result.Error != null &amp;&amp; result.Error.Number == \"3\"))\n    {\n        return HttpGet(backupURL);\n    }\n    else\n    {\n        return result;\n    }\n}\ncatch (Exception)\n{\n    \/\/ERROR IN MAIN URL - USING BACKUP\n    return HttpGet(backupURL);\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax Java Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"java\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">if ((Address == null)||(Address == \"\"))\n     Address = \" \";\n if ((Address2 == null)||(Address2 == \"\"))\n     Address2 = \" \";\n if ((City == null)||(City == \"\"))\n     City = \" \";\n if ((State == null)||(State == \"\"))\n     State = \" \";\n if ((Zip == null)||(Zip == \"\"))\n     Zip = \" \";\n if ((TaxType == null)||(TaxType == \"\"))\n     TaxType = \" \";\n if ((LicenseKey == null)||(LicenseKey == \"\"))\n     LicenseKey = \"YOUR-LICENSE-KEY\";\n \n \n try {\n    Address = URLEncoder.encode(Address,\"UTF-8\").replaceAll(\"+\", \"%20\");\n    Address2 = URLEncoder.encode(Address2,\"UTF-8\").replaceAll(\"+\", \"%20\");\n    City = URLEncoder.encode(City,\"UTF-8\").replaceAll(\"+\", \"%20\");\n    State = URLEncoder.encode(State,\"UTF-8\").replaceAll(\"+\", \"%20\");\n    Zip = URLEncoder.encode(Zip,\"UTF-8\").replaceAll(\"+\", \"%20\");\n    TaxType = URLEncoder.encode(TaxType,\"UTF-8\").replaceAll(\"+\", \"%20\");\n    LicenseKey = URLEncoder.encode(LicenseKey,\"UTF-8\").replaceAll(\"+\", \"%20\");\n \n \n} catch (UnsupportedEncodingException e1) {\n        \/\/ TODO Auto-generated catch block\n        e1.printStackTrace();\n}\n  \n \nBestMatchResponse Response = null;\nString Request = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\" + Address + \"&amp;Address2=\" + Address2 + \"&amp;City=\" + City + \"&amp;State=\" + State + \"&amp;Zip=\" + Zip + \"&amp;TaxType=\" + TaxType + \"&amp;LicenseKey=\" + LicenseKey;\ntry {\n     \n    Response = DoHttpRequest(Request);\n     \n     \n} catch (Exception e) {\n    \/\/ TODO Auto-generated catch block\n    e.printStackTrace();\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax PHP Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$TrialURL = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\".rawurlencode($Address).\"&amp;Address2=\".rawurlencode($Address2).\"&amp;City=\".rawurlencode($City).\"&amp;State=\".rawurlencode($State).\"&amp;Zip=\".rawurlencode($Zip).\"&amp;TaxType=\".rawurlencode($TaxType).\"&amp;LicenseKey=\".rawurlencode($LicenseKey);\n\/\/ A trial license key is not compatible with the backup datacenter. \n\/\/ The backup url is provided with a production license key.\n$BackupURL = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\".rawurlencode($Address).\"&amp;Address2=\".rawurlencode($Address2).\"&amp;City=\".rawurlencode($City).\"&amp;State=\".rawurlencode($State).\"&amp;Zip=\".rawurlencode($Zip).\"&amp;TaxType=\".rawurlencode($TaxType).\"&amp;LicenseKey=\".rawurlencode($LicenseKey);\n \n\/\/ Get cURL resource\n$curl = curl_init();\ncurl_setopt_array($curl, array(CURLOPT_RETURNTRANSFER =&gt; 1, CURLOPT_URL =&gt; $TrialURL, CURLOPT_USERAGENT =&gt; 'Service Objects Fast Tax'));\n\/\/Https peer certification validation turned off\ncurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\ncurl_setopt($curl, CURLOPT_CONNECTTIMEOUT_MS, $TIMEOUT); \/\/timeout in milliseconds\n\/\/ Send the request &amp; save response to $resp\n$resp = curl_exec($curl);\n$status = curl_getinfo($curl);\n$decoded = json_decode($resp, TRUE);\n \nif($resp == FALSE || (isset ($decoded['Error']) != NULL &amp;&amp; $decoded['Error']['Number'] == 4) || (isset($status) &amp;&amp; $status['http_code'] != 200))\n{\n    \/\/ the first service has failed over\n    \/\/ create a new request to the backURL\n    $curl2 = curl_init();\n    curl_setopt_array($curl2, array(CURLOPT_RETURNTRANSFER =&gt; 1, CURLOPT_URL =&gt; $BackupURL, CURLOPT_USERAGENT =&gt; 'Service Objects Fast Tax'));\n    \/\/Https peer certification validation turned off\n    curl_setopt($curl2, CURLOPT_SSL_VERIFYPEER, false);\n    curl_setopt($curl2, CURLOPT_CONNECTTIMEOUT_MS, $TIMEOUT); \/\/timeout in milliseconds\n    \/\/ Send the request &amp; save response to $resp\n    $resp = curl_exec($curl2);\n    $decoded = json_decode($resp, TRUE);\n    if($resp == false)\n    {\n        echo \"&lt;b&gt; Both rest calls failed &lt;\/b&gt;\";\n        curl_close($curl2);\n        return;\n    }\n}\n\/\/Close request to clear up some resources\ncurl_close($curl);<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax RoR Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"ruby\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#Set Primary and Backup URLs as needed. This method encodes and standardizes the URI to pass to the REST service.\nprimaryURL = URI.encode(\"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\" + address + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zipcode + \"&amp;TaxType=\" + taxtype + \"&amp;LicenseKey=\" + licensekey)\nbackupURL = URI.encode(\"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\" + address + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zipcode + \"&amp;TaxType=\" + taxtype + \"&amp;LicenseKey=\" + licensekey)\n \n#These are set to access the hash that is returned\n@ftresponse =\"BestMatchResponse\"\n@ftitems = \"TaxInfoItems\"\n@ftbestmatch = \"BestMatchTaxInfo\"\n@fterror = \"Error\"\n \n \n \n  #Begins the call the RESTful web service\nbegin\n  response = HTTParty.get(primaryURL, timeout: default_timeout)\n  #processes the response to display to the screen\n   \n  #Passes the response returned from HTTParty and processes them depending on the results\n  if (!response[@ftresponse][@fterror].nil? &amp;&amp; response[@ftresponse][@fterror][\"Number\"] == '4')\n      raise\n  else\n   processresults(response)\n  end\n   \n   \n rescue StandardError =&gt; e\n        begin\n        #uses the backupURl in the event that the service encountered an error\n        response = HTTParty.get(backupURL, timeout: default_timeout)\n     \n    #processes the response returned from using the backupURL\n        processresults(response)\n    #If the backup url railed this will raise an error and display the\n    #error message returned from the HTTParty gem.\n        rescue StandardError =&gt; error\n            @status = error.message + \" \" +  error.backtrace[0]\n            @displaydata = {\"Error\" =&gt; \"A Big Error Occured\"}\n        end\n \nend<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax Python Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">primaryURL = 'https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?'\nbackupURL = 'https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?'\n \n#The Requests package allows the user to format the path parameters like so instead of having to manually insert them into the URL\ninputs = {'Address': mAddress, 'Address2': mAddress2, 'City': mCity, 'State': mState, 'Zip': mZipCode, 'TaxType':mTaxType, 'LicenseKey': mLicenseKey}\n \n \ntry:\n    result = requests.get(primaryURL, params=inputs)\n    #Parses the XML response from the service into a python dictionary type\n    outputs = xmltodict.parse(result.content)\n    #checks the output for Errors and displays the info accordingly\n    if 'Error' in outputs['BestMatchResponse']:\n        #loops through the response from the service and prints the values to the screen.\n        if outputs['BestMatchResponse']['Error']['Number'] == \"4\":\n            raise Exception\n        else:\n            for key, value in outputs['BestMatchResponse']['Error'].iteritems():\n                Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n \n    else:\n        #Removes unnecessary entries that were parsed into the python dictionary from XML response of service\n \n \n        for key, value in outputs['BestMatchResponse']['TaxInfoItems']['BestMatchTaxInfo'].iteritems():\n            Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n \n#Attempts to use the backupURL if the call to the primary URL failed\nexcept:\n    try:\n        result = requests.get(backupURL, params=inputs)\n        #Parses the XML response from the service into a python dictionary type\n        outputs = xmltodict.parse(result.content)\n        #checks the output for Errors and displays the info accordingly\n        if 'Error' in outputs['BestMatchResponse']:\n            #loops through the response from the service and prints the values to the screen.\n            for key, value in outputs['BestMatchResponse']['Error'].iteritems():\n                Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n \n        else:\n            #Removes unnecessary entries that were parsed into the python dictionary from XML response of service\n \n \n            for key, value in outputs['BestMatchResponse']['TaxInfoItems']['BestMatchTaxInfo'].iteritems():\n                Label(swin.window, text=str(key) + \" : \" + str(value)).pack()\n \n    #Prints an error message if the primary and backup urls failed\n    except:\n        Label(swin.window, text='Error').pack()\n        print (\"************************************************************************************************\")\n        print (\"************************************************************************************************\")\n        print (response)\nreturn<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax ColdFusion Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!--Makes Request to web service ---&gt;\n&lt;cfIf isDefined(\"form.Action\") AND Action neq \"\"  &gt;\n    &lt;cftry&gt;\n        &lt;cfset primaryURL = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=#Address#&amp;Address2=#Address2#&amp;City=#City#&amp;State=#State#&amp;Zip=#Zip#&amp;TaxType=#TaxType#&amp;LicenseKey=#LicenseKey#\"&gt;\n        &lt;cfhttp url=\"#primaryURL#\" method=\"get\" result=\"response\"&gt;\n        &lt;cfset outputs = XmlParse(response.FileContent)&gt;\n        &lt;cfif (isNull(outputs) OR (!isNull(outputs.BestMatchResponse.Error) AND (outputs.BestMatchResponse.Error.Number is \"10\"))) &gt;\n            &lt;cfthrow message=\"BackupCall Used\"&gt;\n        &lt;\/cfif&gt;\n        &lt;cfdump var=\"#outputs#\" &gt;\n    &lt;cfcatch &gt;\n        &lt;cftry&gt;\n            &lt;cfset backupURL = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=#Address#&amp;Address2=#Address2#&amp;City=#City#&amp;State=#State#&amp;Zip=#Zip#&amp;TaxType=#TaxType#&amp;LicenseKey=#LicenseKey#\"&gt;\n            &lt;cfhttp url=\"#backupURL#\" method=\"get\" result=\"response\"&gt;\n            &lt;cfset outputs = XmlParse(outputs.FileContent)&gt;\n            &lt;cfdump var=\"#outputs#\"&gt; \n            &lt;cfcatch &gt;\n                &lt;cfoutput &gt;\n                    The Following Error Occured: #response.StatusCode#\n                &lt;\/cfoutput&gt;\n            &lt;\/cfcatch&gt;\n        &lt;\/cftry&gt;\n    &lt;\/cfcatch&gt;\n    &lt;\/cftry&gt;\n&lt;\/cfif&gt;<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax VB Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"visualbasic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Try\n    'encodes the URLs for the get Call. Set the primary and back urls as necessary\n    Dim primaryurl As String = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\" + address + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zip + \"&amp;TaxType=\" + taxtype + \"&amp;LicenseKey=\" + licensekey\n    Dim backupurl As String = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=\" + address + \"&amp;Address2=\" + address2 + \"&amp;City=\" + city + \"&amp;State=\" + state + \"&amp;Zip=\" + zip + \"&amp;TaxType=\" + taxtype + \"&amp;LicenseKey=\" + licensekey\n \n    Dim wsresponse As BestMatchResponse = httpGet(primaryurl)\n \n \n    'checks if a response was returned from the service, uses the backup url if response is null or a fatal error occured.\n    If wsresponse Is Nothing OrElse (wsresponse.[Error] IsNot Nothing AndAlso wsresponse.[Error].Number = \"3\") Then\n \n        wsresponse = httpGet(backupurl)\n    End If\n \n    If wsresponse.[Error] IsNot Nothing Then\n        ProcessErrorResponse(wsresponse.[Error])\n    Else\n        ProcessSuccessfulResponse(wsresponse)\n \n \n    End If\nCatch ex As Exception\n    'Displays the relevant error mesasge if both backup and primary urls failed.\n    StatusLabel.Text = ex.Message\n    StatusLabel.Visible = True\nEnd Try<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\">\n<p><strong>FastTax TSQL Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">SET @address =  CASE WHEN @address is NULL THEN ' ' ELSE @address END\nSET @address2 =  CASE WHEN @address2 is NULL THEN ' ' ELSE @address2 END\nSET @city =  CASE WHEN @city is NULL THEN ' ' ELSE @city END\nSET @state =  CASE WHEN @state is NULL THEN ' ' ELSE @state END\nSET @zip =  CASE WHEN @zip is NULL THEN ' ' ELSE @zip END\nSET @taxtype =  CASE WHEN @taxtype is NULL THEN ' ' ELSE @taxtype END\nSET @key =  CASE WHEN @key is NULL THEN ' ' ELSE @key END\nSET @isLiveKey =  CASE WHEN @isLiveKey is NULL THEN 1 ELSE @isLiveKey END\n \n--If a production key is purchased, this will execute the failover\nIF @isLiveKey = 1\nBEGIN\n    SET @sUrl = 'https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=' + @address + '&amp;Address2=' + @address2 + '&amp;City=' + @city + '&amp;State=' + @state +  '&amp;Zip=' + @zip + '&amp;TaxType=' + @taxtype + '&amp;LicenseKey=' + @key\n    EXEC sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT\n    EXEC sp_OAMethod @obj, 'Open', NULL, 'Get', @sUrl, false\n    EXEC sp_OAMethod @obj, 'send'\n    EXEC sp_OAGetProperty @obj, 'responseText', @response OUT\n             \n    --Checks the Response for a fatal error or if null.\n    IF @response IS NULL\n    BEGIN\n        SET @sBackupUrl = 'https:\/\/trial.serviceobjects.com\/ft\/web.svc\/JSON\/GetBestMatch?Address=' + @address + '&amp;Address2=' + @address2 + '&amp;City=' + @city + '&amp;State=' + @state +  '&amp;Zip=' + @zip + '&amp;TaxType=' + @taxtype + '&amp;LicenseKey=' + @key\n        EXEC sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT\n        EXEC sp_OAMethod @obj, 'Open', NULL, 'Get', @sBackupUrl, false\n        EXEC sp_OAMethod @obj, 'send'\n        EXEC sp_OAGetProperty @obj, 'responseText', @response OUT\n    END\nEND<\/pre>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":3752,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3778","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FT - REST<\/title>\n<meta name=\"description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQL FastTax C# Rest Code Snippet BestMatchResponse result = null; string mainURL =\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FT - REST\" \/>\n<meta property=\"og:description\" content=\"C#JavaPHPRoRPythonColdFusionVBTSQL FastTax C# Rest Code Snippet BestMatchResponse result = null; string mainURL =\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-14T22:08:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\",\"name\":\"FT - REST\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-12T00:10:20+00:00\",\"dateModified\":\"2022-12-14T22:08:22+00:00\",\"description\":\"C#JavaPHPRoRPythonColdFusionVBTSQL FastTax C# Rest Code Snippet BestMatchResponse result = null; string mainURL =\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS FastTax\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"FT &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"FT &#8211; REST\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"width\":2560,\"height\":1440,\"caption\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\"},\"image\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FT - REST","description":"C#JavaPHPRoRPythonColdFusionVBTSQL FastTax C# Rest Code Snippet BestMatchResponse result = null; string mainURL =","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"FT - REST","og_description":"C#JavaPHPRoRPythonColdFusionVBTSQL FastTax C# Rest Code Snippet BestMatchResponse result = null; string mainURL =","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2022-12-14T22:08:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/","name":"FT - REST","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-12T00:10:20+00:00","dateModified":"2022-12-14T22:08:22+00:00","description":"C#JavaPHPRoRPythonColdFusionVBTSQL FastTax C# Rest Code Snippet BestMatchResponse result = null; string mainURL =","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS FastTax","item":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/"},{"@type":"ListItem","position":3,"name":"FT &#8211; Code Snippets and Sample Code","item":"https:\/\/test.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"FT &#8211; REST"}]},{"@type":"WebSite","@id":"https:\/\/test.serviceobjects.com\/docs\/#website","url":"https:\/\/test.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/test.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","width":2560,"height":1440,"caption":"Service Objects | Contact, Phone, Email Verification | Data Quality Services"},"image":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=3778"}],"version-history":[{"count":13,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3778\/revisions"}],"predecessor-version":[{"id":8682,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3778\/revisions\/8682"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3752"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=3778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}