{"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":"2025-09-27T15:04:43","modified_gmt":"2025-09-27T22:04:43","slug":"ft-rest","status":"publish","type":"page","link":"https:\/\/www.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\" aria-selected=\"true\" aria-controls=\"C#\" tabindex=\"0\">C#<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"Python\" tabindex=\"0\">Python<\/li><li class=\"tab-label\" role=\"tab\" aria-selected=\"false\" aria-controls=\"NodeJS\" tabindex=\"0\">NodeJS<\/li><\/ul><div class=\"tab-content\">\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p class=\"wp-block-paragraph\"><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=\"\">\ufeffusing System.Web;\n\nnamespace fast_tax_dot_net.REST\n{\n    \/\/\/ &lt;summary>\n    \/\/\/ Provides functionality to call the ServiceObjects FastTax (FT) REST API's GetBestMatch endpoint,\n    \/\/\/ retrieving tax rate information (e.g., total tax rate, city, county, state rates) for a given US address\n    \/\/\/ with fallback to a backup endpoint for reliability in live mode.\n    \/\/\/ &lt;\/summary>\n    public static class GetBestMatchClient\n    {\n        \/\/ Base URL constants: production, backup, and trial\n        private const string LiveBaseUrl = \"https:\/\/sws.serviceobjects.com\/ft\/web.svc\/json\/\";\n        private const string BackupBaseUrl = \"https:\/\/swsbackup.serviceobjects.com\/ft\/web.svc\/json\/\";\n        private const string TrialBaseUrl = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/json\/\";\n\n        \/\/\/ &lt;summary>\n        \/\/\/ Synchronously calls the GetBestMatch REST endpoint to retrieve tax rate information,\n        \/\/\/ attempting the primary endpoint first and falling back to the backup if the response is invalid\n        \/\/\/ (Error.Number == \"4\") in live mode.\n        \/\/\/ &lt;\/summary>\n        \/\/\/ &lt;param name=\"input\">The input parameters including address, city, state, zip, tax type, and license key.&lt;\/param>\n        \/\/\/ &lt;returns>Deserialized &lt;see cref=\"GetBestMatchResponse\"\/> containing tax rate data or an error.&lt;\/returns>\n        public static GetBestMatchResponse Invoke(GetBestMatchInput input)\n        {\n            \/\/ Use query string parameters so missing\/optional fields don't break the URL\n            string url = BuildUrl(input, input.IsLive ? LiveBaseUrl : TrialBaseUrl);\n            GetBestMatchResponse response = Helper.HttpGet&lt;GetBestMatchResponse>(url, input.TimeoutSeconds);\n\n            \/\/ Fallback on error in live mode\n            if (input.IsLive &amp;&amp; !IsValid(response))\n            {\n                string fallbackUrl = BuildUrl(input, BackupBaseUrl);\n                GetBestMatchResponse fallbackResponse = Helper.HttpGet&lt;GetBestMatchResponse>(fallbackUrl, input.TimeoutSeconds);\n                return fallbackResponse;\n            }\n\n            return response;\n        }\n\n        \/\/\/ &lt;summary>\n        \/\/\/ Asynchronously calls the GetBestMatch REST endpoint to retrieve tax rate information,\n        \/\/\/ attempting the primary endpoint first and falling back to the backup if the response is invalid\n        \/\/\/ (Error.Number == \"4\") in live mode.\n        \/\/\/ &lt;\/summary>\n        \/\/\/ &lt;param name=\"input\">The input parameters including address, city, state, zip, tax type, and license key.&lt;\/param>\n        \/\/\/ &lt;returns>Deserialized &lt;see cref=\"GetBestMatchResponse\"\/> containing tax rate data or an error.&lt;\/returns>\n        public static async Task&lt;GetBestMatchResponse> InvokeAsync(GetBestMatchInput input)\n        {\n            \/\/ Use query string parameters so missing\/optional fields don't break the URL\n            string url = BuildUrl(input, input.IsLive ? LiveBaseUrl : TrialBaseUrl);\n            GetBestMatchResponse response = await Helper.HttpGetAsync&lt;GetBestMatchResponse>(url, input.TimeoutSeconds).ConfigureAwait(false);\n\n            \/\/ Fallback on error in live mode\n            if (input.IsLive &amp;&amp; !IsValid(response))\n            {\n                string fallbackUrl = BuildUrl(input, BackupBaseUrl);\n                GetBestMatchResponse fallbackResponse = await Helper.HttpGetAsync&lt;GetBestMatchResponse>(fallbackUrl, input.TimeoutSeconds).ConfigureAwait(false);\n                return fallbackResponse;\n            }\n\n            return response;\n        }\n\n        \/\/ Build the full request URL, including URL-encoded query string\n        public static string BuildUrl(GetBestMatchInput input, string baseUrl)\n        {\n            \/\/ Construct query string with URL-encoded parameters\n            string qs = $\"GetBestMatch?\" +\n                        $\"Address={HttpUtility.UrlEncode(input.Address)}\" +\n                        $\"&amp;Address2={HttpUtility.UrlEncode(input.Address2)}\" +\n                        $\"&amp;City={HttpUtility.UrlEncode(input.City)}\" +\n                        $\"&amp;State={HttpUtility.UrlEncode(input.State)}\" +\n                        $\"&amp;Zip={HttpUtility.UrlEncode(input.Zip)}\" +\n                        $\"&amp;TaxType={HttpUtility.UrlEncode(input.TaxType)}\" +\n                        $\"&amp;LicenseKey={HttpUtility.UrlEncode(input.LicenseKey)}\";\n            return baseUrl + qs;\n        }\n\n        private static bool IsValid(GetBestMatchResponse response) => response?.Error == null || response.Error.Number != \"4\";\n\n        \/\/\/ &lt;summary>\n        \/\/\/ Input parameters for the GetBestMatch API call. Represents a US address to retrieve tax rates\n        \/\/\/ with cascading logic for partial matches.\n        \/\/\/ &lt;\/summary>\n        \/\/\/ &lt;param name=\"Address\">Address line of the address to get tax rates for (e.g., \"123 Main Street\").&lt;\/param>\n        \/\/\/ &lt;param name=\"Address2\">Secondary address line (e.g., \"Apt 4B\"). Optional.&lt;\/param>\n        \/\/\/ &lt;param name=\"City\">The city of the address (e.g., \"New York\"). Optional if zip is provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"State\">The state of the address (e.g., \"NY\"). Optional if zip is provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"Zip\">The ZIP code of the address. Optional if city and state are provided.&lt;\/param>\n        \/\/\/ &lt;param name=\"TaxType\">The type of tax to look for (\"sales\" or \"use\").&lt;\/param>\n        \/\/\/ &lt;param name=\"LicenseKey\">The license key to authenticate the API request.&lt;\/param>\n        \/\/\/ &lt;param name=\"IsLive\">Indicates whether to use the live service (true) or trial service (false).&lt;\/param>\n        \/\/\/ &lt;param name=\"TimeoutSeconds\">Timeout duration for the API call, in seconds.&lt;\/param>\n        public record GetBestMatchInput(\n            string Address = \"\",\n            string Address2 = \"\",\n            string City = \"\",\n            string State = \"\",\n            string Zip = \"\",\n            string TaxType = \"\",\n            string LicenseKey = \"\",\n            bool IsLive = true,\n            int TimeoutSeconds = 15\n        );\n    }\n}\n\n\n\ufeffusing System.Runtime.Serialization;\nusing System.Linq;\n\nnamespace fast_tax_dot_net.REST\n{\n    \/\/\/ &lt;summary>\n    \/\/\/ Response from GetBestMatch API, containing tax rate information for the best match.\n    \/\/\/ &lt;\/summary>\n    [DataContract]\n    public class GetBestMatchResponse\n    {\n        public BestMatchTaxInfo[] TaxInfoItems { get; set; }\n        public string MatchLevel { get; set; }\n        public Error Error { get; set; }\n        public string[] Debug { get; set; }\n\n        public override string ToString()\n        {\n            string taxInfoItemsStr = TaxInfoItems != null\n                ? string.Join(\"\\n\", TaxInfoItems.Select(taxInfo => taxInfo.ToString()))\n                : \"null\";\n            string debugStr = Debug != null\n                ? string.Join(\", \", Debug)\n                : \"null\";\n            return $\"GetBestMatchResponse:\\n\" +\n                   $\"TaxInfoItems:\\n{taxInfoItemsStr}\\n\" +\n                   $\"MatchLevel: {MatchLevel}\\n\" +\n                   $\"Error: {(Error != null ? Error.ToString() : \"null\")}\\n\" +\n                   $\"Debug: [{debugStr}]\";\n        }\n    }\n\n    \/\/\/ &lt;summary>\n    \/\/\/ Tax information for a matched address or ZIP code.\n    \/\/\/ &lt;\/summary>\n    [DataContract]\n    public class BestMatchTaxInfo\n    {\n        public string Zip { get; set; }\n        public string City { get; set; }\n        public string County { get; set; }\n        public string StateAbbreviation { get; set; }\n        public string StateName { get; set; }\n        public string TaxRate { get; set; }\n        public string StateRate { get; set; }\n        public string CityRate { get; set; }\n        public string CountyRate { get; set; }\n        public string CountyDistrictRate { get; set; }\n        public string CityDistrictRate { get; set; }\n        public string SpecialDistrictRate { get; set; }\n        public InformationComponent[] InformationComponents { get; set; }\n        public string TotalTaxExempt { get; set; }\n        public string NotesCodes { get; set; }\n        public string NotesDesc { get; set; }\n        public override string ToString()\n        {\n            string infoComponentsStr = InformationComponents != null\n                ? string.Join(\", \", InformationComponents.Select(ic => ic.ToString()))\n                : \"null\";\n            return $\"BestMatchTaxInfo:\\n\" +\n                   $\"Zip: {Zip}\\n\" +\n                   $\"City: {City}\\n\" +\n                   $\"County: {County}\\n\" +\n                   $\"StateAbbreviation: {StateAbbreviation}\\n\" +\n                   $\"StateName: {StateName}\\n\" +\n                   $\"TaxRate: {TaxRate}\\n\" +\n                   $\"StateRate: {StateRate}\\n\" +\n                   $\"CityRate: {CityRate}\\n\" +\n                   $\"CountyRate: {CountyRate}\\n\" +\n                   $\"CountyDistrictRate: {CountyDistrictRate}\\n\" +\n                   $\"CityDistrictRate: {CityDistrictRate}\\n\" +\n                   $\"SpecialDistrictRate: {SpecialDistrictRate}\\n\" +\n                   $\"InformationComponents: [{infoComponentsStr}]\\n\" +\n                   $\"TotalTaxExempt: {TotalTaxExempt}\\n\" +\n                   $\"NotesCodes: {NotesCodes}\\n\" +\n                   $\"NotesDesc: {NotesDesc}\";\n        }\n    }\n\n    \/\/\/ &lt;summary>\n    \/\/\/ Information component containing name-value pairs for additional tax information.\n    \/\/\/ &lt;\/summary>\n    [DataContract]\n    public class InformationComponent\n    {\n        public string Name { get; set; }\n        public string Value { get; set; }\n        public override string ToString()\n        {\n            return $\"Name: {Name}, Value: {Value}\";\n        }\n    }\n\n    \/\/\/ &lt;summary>\n    \/\/\/ Error object for API responses.\n    \/\/\/ &lt;\/summary>\n    [DataContract]\n    public class Error\n    {\n        public string Desc { get; set; }\n        public string Number { get; set; }\n        public string Location { get; set; }\n        public override string ToString()\n        {\n            return $\"Desc: {Desc}, Number: {Number}, Location: {Location}\";\n        }\n    }\n}\n\n\n\ufeffusing System.Text.Json;\nusing System.Web;\n\nnamespace fast_tax_dot_net.REST\n{\n    public class Helper\n    {\n        public static T HttpGet&lt;T>(string url, int timeoutSeconds)\n        {\n            using var httpClient = new HttpClient\n            {\n                Timeout = TimeSpan.FromSeconds(timeoutSeconds)\n            };\n            using var request = new HttpRequestMessage(HttpMethod.Get, url);\n            using HttpResponseMessage response = httpClient\n                .SendAsync(request)\n                .GetAwaiter()\n                .GetResult();\n            response.EnsureSuccessStatusCode();\n            using Stream responseStream = response.Content\n                .ReadAsStreamAsync()\n                .GetAwaiter()\n                .GetResult();\n            var options = new JsonSerializerOptions\n            {\n                PropertyNameCaseInsensitive = true\n            };\n            object? obj = JsonSerializer.Deserialize(responseStream, typeof(T), options);\n            T result = (T)obj!;\n            return result;\n        }\n\n        \/\/ Asynchronous HTTP GET and JSON deserialize\n        public static async Task&lt;T> HttpGetAsync&lt;T>(string url, int timeoutSeconds)\n        {\n            HttpClient HttpClient = new HttpClient();\n            HttpClient.Timeout = TimeSpan.FromSeconds(timeoutSeconds);\n            using var httpResponse = await HttpClient.GetAsync(url).ConfigureAwait(false);\n            httpResponse.EnsureSuccessStatusCode();\n            var stream = await httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);\n            return JsonSerializer.Deserialize&lt;T>(stream)!;\n        }\n\n        public static string UrlEncode(string value) => HttpUtility.UrlEncode(value ?? string.Empty);\n    }\n}<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p class=\"wp-block-paragraph\"><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=\"\">from ft_response import GetBestMatchResponse, BestMatchTaxInfo, InformationComponent, Error\nimport requests\n\n# Endpoint URLs for ServiceObjects FastTax (FT) API\nprimary_url = \"https:\/\/sws.serviceobjects.com\/ft\/web.svc\/json\/GetBestMatch?\"\nbackup_url = \"https:\/\/swsbackup.serviceobjects.com\/ft\/web.svc\/json\/GetBestMatch?\"\ntrial_url = \"https:\/\/trial.serviceobjects.com\/ft\/web.svc\/json\/GetBestMatch?\"\n\ndef get_best_match(\n    address: str,\n    address2: str,\n    city: str,\n    state: str,\n    zip: str,\n    tax_type: str,\n    license_key: str,\n    is_live: bool = True\n) -> GetBestMatchResponse:\n    \"\"\"\n    Call ServiceObjects FastTax (FT) API's GetBestMatch endpoint\n    to retrieve tax rate information (e.g., total tax rate, city, county, state rates) for a given US address.\n\n    Parameters:\n        address: Address line of the address to get tax rates for (e.g., \"123 Main Street\").\n        address2: Secondary address line (e.g., \"Apt 4B\"). Optional.\n        city: The city of the address (e.g., \"New York\"). Optional if zip is provided.\n        state: The state of the address (e.g., \"NY\"). Optional if zip is provided.\n        zip: The ZIP code of the address. Optional if city and state are provided.\n        tax_type: The type of tax to look for (\"sales\" or \"use\").\n        license_key: Your ServiceObjects license key.\n        is_live: Use live or trial servers.\n\n    Returns:\n        GetBestMatchResponse: Parsed JSON response with tax rate results or error details.\n\n    Raises:\n        RuntimeError: If the API returns an error payload.\n        requests.RequestException: On network\/HTTP failures (trial mode).\n    \"\"\"\n    params = {\n        \"Address\": address,\n        \"Address2\": address2,\n        \"City\": city,\n        \"State\": state,\n        \"Zip\": zip,\n        \"TaxType\": tax_type,\n        \"LicenseKey\": license_key,\n    }\n    # Select the base URL: production vs trial\n    url = primary_url if is_live else trial_url\n\n    try:\n        # Attempt primary (or trial) endpoint\n        response = requests.get(url, params=params, timeout=10)\n        response.raise_for_status()\n        data = response.json()\n\n        # If API returned an error in JSON payload, trigger fallback\n        error = data.get('Error')\n        if not (error is None or error.get('Number') != \"4\"):\n            if is_live:\n                # Try backup URL\n                response = requests.get(backup_url, params=params, timeout=10)\n                response.raise_for_status()\n                data = response.json()\n\n                # If still error, propagate exception\n                if 'Error' in data:\n                    raise RuntimeError(f\"FastTax service error: {data['Error']}\")\n            else:\n                # Trial mode error is terminal\n                raise RuntimeError(f\"FastTax trial error: {data['Error']}\")\n\n        # Convert JSON response to GetBestMatchResponse for structured access\n        error = Error(**data.get(\"Error\", {})) if data.get(\"Error\") else None\n\n        return GetBestMatchResponse(\n            TaxInfoItems=[\n                BestMatchTaxInfo(\n                    Zip=ti.get(\"Zip\"),\n                    City=ti.get(\"City\"),\n                    County=ti.get(\"County\"),\n                    StateAbbreviation=ti.get(\"StateAbbreviation\"),\n                    StateName=ti.get(\"StateName\"),\n                    TaxRate=ti.get(\"TaxRate\"),\n                    StateRate=ti.get(\"StateRate\"),\n                    CityRate=ti.get(\"CityRate\"),\n                    CountyRate=ti.get(\"CountyRate\"),\n                    CountyDistrictRate=ti.get(\"CountyDistrictRate\"),\n                    CityDistrictRate=ti.get(\"CityDistrictRate\"),\n                    SpecialDistrictRate=ti.get(\"SpecialDistrictRate\"),\n                    InformationComponents=[\n                        InformationComponent(Name=comp.get(\"Name\"), Value=comp.get(\"Value\"))\n                        for comp in ti.get(\"InformationComponents\", [])\n                    ] if \"InformationComponents\" in ti else [],\n                    TotalTaxExempt=ti.get(\"TotalTaxExempt\"),\n                    NotesCodes=ti.get(\"NotesCodes\"),\n                    NotesDesc=ti.get(\"NotesDesc\")\n                )\n                for ti in data.get(\"TaxInfoItems\", [])\n            ] if \"TaxInfoItems\" in data else [],\n            MatchLevel=data.get(\"MatchLevel\"),\n            Error=error,\n            Debug=data.get(\"Debug\", [])\n        )\n\n    except requests.RequestException as req_exc:\n        # Network or HTTP-level error occurred\n        if is_live:\n            try:\n                # Fallback to backup URL\n                response = requests.get(backup_url, params=params, timeout=10)\n                response.raise_for_status()\n                data = response.json()\n                if \"Error\" in data:\n                    raise RuntimeError(f\"FastTax backup error: {data['Error']}\") from req_exc\n\n                error = Error(**data.get(\"Error\", {})) if data.get(\"Error\") else None\n\n                return GetBestMatchResponse(\n                    TaxInfoItems=[\n                        BestMatchTaxInfo(\n                            Zip=ti.get(\"Zip\"),\n                            City=ti.get(\"City\"),\n                            County=ti.get(\"County\"),\n                            StateAbbreviation=ti.get(\"StateAbbreviation\"),\n                            StateName=ti.get(\"StateName\"),\n                            TaxRate=ti.get(\"TaxRate\"),\n                            StateRate=ti.get(\"StateRate\"),\n                            CityRate=ti.get(\"CityRate\"),\n                            CountyRate=ti.get(\"CountyRate\"),\n                            CountyDistrictRate=ti.get(\"CountyDistrictRate\"),\n                            CityDistrictRate=ti.get(\"CityDistrictRate\"),\n                            SpecialDistrictRate=ti.get(\"SpecialDistrictRate\"),\n                            InformationComponents=[\n                                InformationComponent(Name=comp.get(\"Name\"), Value=comp.get(\"Value\"))\n                                for comp in ti.get(\"InformationComponents\", [])\n                            ] if \"InformationComponents\" in ti else [],\n                            TotalTaxExempt=ti.get(\"TotalTaxExempt\"),\n                            NotesCodes=ti.get(\"NotesCodes\"),\n                            NotesDesc=ti.get(\"NotesDesc\")\n                        )\n                        for ti in data.get(\"TaxInfoItems\", [])\n                    ] if \"TaxInfoItems\" in data else [],\n                    MatchLevel=data.get(\"MatchLevel\"),\n                    Error=error,\n                    Debug=data.get(\"Debug\", [])\n                )\n            except Exception as backup_exc:\n                raise RuntimeError(\"FastTax service unreachable on both endpoints\") from backup_exc\n        else:\n            raise RuntimeError(f\"FastTax trial error: {str(req_exc)}\") from req_exc\n\n\nfrom dataclasses import dataclass\nfrom typing import Optional, List\n\n\n@dataclass\nclass GetBestMatchInput:\n    Address: Optional[str] = None\n    Address2: Optional[str] = None\n    City: Optional[str] = None\n    State: Optional[str] = None\n    Zip: Optional[str] = None\n    TaxType: Optional[str] = None\n    LicenseKey: Optional[str] = None\n    IsLive: bool = True\n    TimeoutSeconds: int = 15\n\n    def __str__(self) -> str:\n        return (f\"GetBestMatchInput: Address={self.Address}, Address2={self.Address2}, City={self.City}, \"\n                f\"State={self.State}, Zip={self.Zip}, TaxType={self.TaxType}, LicenseKey={self.LicenseKey}, \"\n                f\"IsLive={self.IsLive}, TimeoutSeconds={self.TimeoutSeconds}\")\n\n\n@dataclass\nclass InformationComponent:\n    Name: Optional[str] = None\n    Value: Optional[str] = None\n\n    def __str__(self) -> str:\n        return f\"InformationComponent: Name={self.Name}, Value={self.Value}\"\n\n\n@dataclass\nclass Error:\n    Desc: Optional[str] = None\n    Number: Optional[str] = None\n    Location: Optional[str] = None\n\n    def __str__(self) -> str:\n        return f\"Error: Desc={self.Desc}, Number={self.Number}, Location={self.Location}\"\n\n\n@dataclass\nclass BestMatchTaxInfo:\n    Zip: Optional[str] = None\n    City: Optional[str] = None\n    County: Optional[str] = None\n    StateAbbreviation: Optional[str] = None\n    StateName: Optional[str] = None\n    TaxRate: Optional[float] = None\n    StateRate: Optional[float] = None\n    CityRate: Optional[float] = None\n    CountyRate: Optional[float] = None\n    CountyDistrictRate: Optional[float] = None\n    CityDistrictRate: Optional[float] = None\n    SpecialDistrictRate: Optional[float] = None\n    InformationComponents: Optional[List['InformationComponent']] = None\n    TotalTaxExempt: Optional[str] = None\n    NotesCodes: Optional[str] = None\n    NotesDesc: Optional[str] = None\n\n    def __post_init__(self):\n        if self.InformationComponents is None:\n            self.InformationComponents = []\n\n    def __str__(self) -> str:\n        components_string = ', '.join(str(component) for component in self.InformationComponents) if self.InformationComponents else 'None'\n        return (f\"BestMatchTaxInfo: Zip={self.Zip}, City={self.City}, County={self.County}, \"\n                f\"StateAbbreviation={self.StateAbbreviation}, StateName={self.StateName}, \"\n                f\"TaxRate={self.TaxRate}, StateRate={self.StateRate}, CityRate={self.CityRate}, \"\n                f\"CountyRate={self.CountyRate}, CountyDistrictRate={self.CountyDistrictRate}, \"\n                f\"CityDistrictRate={self.CityDistrictRate}, SpecialDistrictRate={self.SpecialDistrictRate}, \"\n                f\"InformationComponents=[{components_string}], TotalTaxExempt={self.TotalTaxExempt}, \"\n                f\"NotesCodes={self.NotesCodes}, NotesDesc={self.NotesDesc}\")\n\n\n@dataclass\nclass GetBestMatchResponse:\n    TaxInfoItems: Optional[List['BestMatchTaxInfo']] = None\n    MatchLevel: Optional[str] = None\n    Error: Optional['Error'] = None\n    Debug: Optional[List[str]] = None\n\n    def __post_init__(self):\n        if self.TaxInfoItems is None:\n            self.TaxInfoItems = []\n        if self.Debug is None:\n            self.Debug = []\n\n    def __str__(self) -> str:\n        tax_info_string = '; '.join(str(tax_info) for tax_info in self.TaxInfoItems) if self.TaxInfoItems else 'None'\n        debug_string = ', '.join(self.Debug) if self.Debug else 'None'\n        error = str(self.Error) if self.Error else 'None'\n        return (f\"GetBestMatchResponse: TaxInfoItems=[{tax_info_string}], MatchLevel={self.MatchLevel}, \"\n                f\"Error={error}, Debug=[{debug_string}]\")<\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-create-block-tab tab-panel\" role=\"tabpanel\" tabindex=\"0\">\n<p class=\"wp-block-paragraph\"><strong>FastTax NodeJS<\/strong> <strong>Rest Code Snippet<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import axios from 'axios';\nimport querystring from 'querystring';\nimport { GetBestMatchResponse } from '.\/ft_response.js';\n\n\/**\n * @constant\n * @type {string}\n * @description The base URL for the live ServiceObjects FastTax (FT) API service.\n *\/\nconst LiveBaseUrl = 'https:\/\/sws.serviceobjects.com\/ft\/web.svc\/json\/';\n\n\/**\n * @constant\n * @type {string}\n * @description The base URL for the backup ServiceObjects FastTax (FT) API service.\n *\/\nconst BackupBaseUrl = 'https:\/\/swsbackup.serviceobjects.com\/ft\/web.svc\/json\/';\n\n\/**\n * @constant\n * @type {string}\n * @description The base URL for the trial ServiceObjects FastTax (FT) API service.\n *\/\nconst TrialBaseUrl = 'https:\/\/trial.serviceobjects.com\/ft\/web.svc\/json\/';\n\n\/**\n * &lt;summary>\n * Checks if a response from the API is valid by verifying that it either has no Error object\n * or the Error.Number is not equal to '4'.\n * &lt;\/summary>\n * &lt;param name=\"response\" type=\"Object\">The API response object to validate.&lt;\/param>\n * &lt;returns type=\"boolean\">True if the response is valid, false otherwise.&lt;\/returns>\n *\/\nconst isValid = (response) => !response?.Error || response.Error.Number !== '4';\n\n\/**\n * &lt;summary>\n * Constructs a full URL for the GetBestMatch API endpoint by combining the base URL\n * with query parameters derived from the input parameters.\n * &lt;\/summary>\n * &lt;param name=\"params\" type=\"Object\">An object containing all the input parameters.&lt;\/param>\n * &lt;param name=\"baseUrl\" type=\"string\">The base URL for the API service (live, backup, or trial).&lt;\/param>\n * &lt;returns type=\"string\">The constructed URL with query parameters.&lt;\/returns>\n *\/\nconst buildUrl = (params, baseUrl) =>\n    `${baseUrl}GetBestMatch?${querystring.stringify(params)}`;\n\n\/**\n * &lt;summary>\n * Performs an HTTP GET request to the specified URL with a given timeout.\n * &lt;\/summary>\n * &lt;param name=\"url\" type=\"string\">The URL to send the GET request to.&lt;\/param>\n * &lt;param name=\"timeoutSeconds\" type=\"number\">The timeout duration in seconds for the request.&lt;\/param>\n * &lt;returns type=\"Promise&lt;GetBestMatchResponse>\">A promise that resolves to a GetBestMatchResponse object containing the API response data.&lt;\/returns>\n * &lt;exception cref=\"Error\">Thrown if the HTTP request fails, with a message detailing the error.&lt;\/exception>\n *\/\nconst httpGet = async (url, timeoutSeconds) => {\n    try {\n        const response = await axios.get(url, { timeout: timeoutSeconds * 1000 });\n        return new GetBestMatchResponse(response.data);\n    } catch (error) {\n        throw new Error(`HTTP request failed: ${error.message}`);\n    }\n};\n\n\/**\n * &lt;summary>\n * Provides functionality to call the ServiceObjects FastTax (FT) API's GetBestMatch endpoint,\n * retrieving tax rate information (e.g., total tax rate, city, county, state rates) for a given US address\n * with fallback to a backup endpoint for reliability in live mode.\n * &lt;\/summary>\n *\/\nconst GetBestMatchClient = {\n    \/**\n     * &lt;summary>\n     * Asynchronously invokes the GetBestMatch API endpoint, attempting the primary endpoint\n     * first and falling back to the backup if the response is invalid (Error.Number == '4') in live mode.\n     * &lt;\/summary>\n     * @param {string} Address - Address line of the address to get tax rates for (e.g., \"123 Main Street\").\n     * @param {string} Address2 - Secondary address line (e.g., \"Apt 4B\"). Optional.\n     * @param {string} City - The city of the address (e.g., \"New York\"). Optional if zip is provided.\n     * @param {string} State - The state of the address (e.g., \"NY\"). Optional if zip is provided.\n     * @param {string} Zip - The ZIP code of the address. Optional if city and state are provided.\n     * @param {string} TaxType - The type of tax to look for (\"sales\" or \"use\").\n     * @param {string} LicenseKey - Your license key to use the service.\n     * @param {boolean} isLive - Value to determine whether to use the live or trial servers.\n     * @param {number} timeoutSeconds - Timeout, in seconds, for the call to the service.\n     * @returns {Promise&lt;GetBestMatchResponse>} - A promise that resolves to a GetBestMatchResponse object.\n     *\/\n    async invokeAsync(Address, Address2, City, State, Zip, TaxType, LicenseKey, isLive = true, timeoutSeconds = 15) {\n        const params = {\n            Address,\n            Address2,\n            City,\n            State,\n            Zip,\n            TaxType,\n            LicenseKey\n        };\n\n        const url = buildUrl(params, isLive ? LiveBaseUrl : TrialBaseUrl);\n        let response = await httpGet(url, timeoutSeconds);\n\n        if (isLive &amp;&amp; !isValid(response)) {\n            const fallbackUrl = buildUrl(params, BackupBaseUrl);\n            const fallbackResponse = await httpGet(fallbackUrl, timeoutSeconds);\n            return fallbackResponse;\n        }\n        return response;\n    },\n\n    \/**\n     * &lt;summary>\n     * Synchronously invokes the GetBestMatch API endpoint by wrapping the async call\n     * and awaiting its result immediately.\n     * &lt;\/summary>\n     * @param {string} Address - Address line of the address to get tax rates for (e.g., \"123 Main Street\").\n     * @param {string} Address2 - Secondary address line (e.g., \"Apt 4B\"). Optional.\n     * @param {string} City - The city of the address (e.g., \"New York\"). Optional if zip is provided.\n     * @param {string} State - The state of the address (e.g., \"NY\"). Optional if zip is provided.\n     * @param {string} Zip - The ZIP code of the address. Optional if city and state are provided.\n     * @param {string} TaxType - The type of tax to look for (\"sales\" or \"use\").\n     * @param {string} LicenseKey - Your license key to use the service.\n     * @param {boolean} isLive - Value to determine whether to use the live or trial servers.\n     * @param {number} timeoutSeconds - Timeout, in seconds, for the call to the service.\n     * @returns {GetBestMatchResponse} - A GetBestMatchResponse object with tax rate details or an error.\n     *\/\n    invoke(Address, Address2, City, State, Zip, TaxType, LicenseKey, isLive = true, timeoutSeconds = 15) {\n        return (async () => await this.invokeAsync(\n            Address, Address2, City, State, Zip, TaxType, LicenseKey, isLive, timeoutSeconds\n        ))();\n    }\n};\n\nexport { GetBestMatchClient, GetBestMatchResponse };\n\n\n\/**\n * Input parameters for the GetBestMatch API call.\n *\/\nexport class GetBestMatchInput {\n    constructor(data = {}) {\n        this.Address = data.Address;\n        this.Address2 = data.Address2;\n        this.City = data.City;\n        this.State = data.State;\n        this.Zip = data.Zip;\n        this.TaxType = data.TaxType;\n        this.LicenseKey = data.LicenseKey;\n        this.IsLive = data.IsLive !== undefined ? data.IsLive : true;\n        this.TimeoutSeconds = data.TimeoutSeconds !== undefined ? data.TimeoutSeconds : 15;\n    }\n\n    toString() {\n        return `GetBestMatchInput: Address = ${this.Address}, Address2 = ${this.Address2}, City = ${this.City}, State = ${this.State}, Zip = ${this.Zip}, TaxType = ${this.TaxType}, LicenseKey = ${this.LicenseKey}, IsLive = ${this.IsLive}, TimeoutSeconds = ${this.TimeoutSeconds}`;\n    }\n}\n\n\/**\n * Information Component for API responses.\n *\/\nexport class InformationComponent {\n    constructor(data = {}) {\n        this.Name = data.Name;\n        this.Value = data.Value;\n    }\n\n    toString() {\n        return `Name = ${this.Name}, Value = ${this.Value}`;\n    }\n}\n\n\/**\n * Error object for API responses.\n *\/\nexport class Error {\n    constructor(data = {}) {\n        this.Desc = data.Desc;\n        this.Number = data.Number;\n        this.Location = data.Location;\n    }\n\n    toString() {\n        return `Error: Desc = ${this.Desc}, Number = ${this.Number}, Location = ${this.Location}`;\n    }\n}\n\n\/**\n * Tax information for a matched address or ZIP code.\n *\/\nexport class BestMatchTaxInfo {\n    constructor(data = {}) {\n        this.Zip = data.Zip;\n        this.City = data.City;\n        this.County = data.County;\n        this.StateAbbreviation = data.StateAbbreviation;\n        this.StateName = data.StateName;\n        this.TaxRate = data.TaxRate;\n        this.StateRate = data.StateRate;\n        this.CityRate = data.CityRate;\n        this.CountyRate = data.CountyRate;\n        this.CountyDistrictRate = data.CountyDistrictRate;\n        this.CityDistrictRate = data.CityDistrictRate;\n        this.SpecialDistrictRate = data.SpecialDistrictRate;\n        this.InformationComponents = (data.InformationComponents || []).map(component => new InformationComponent(component));\n        this.TotalTaxExempt = data.TotalTaxExempt;\n        this.NotesCodes = data.NotesCodes;\n        this.NotesDesc = data.NotesDesc;\n    }\n\n    toString() {\n        const componentsString = this.InformationComponents.length\n            ? this.InformationComponents.map(component => component.toString()).join(', ')\n            : 'null';\n        return `BestMatchTaxInfo: Zip = ${this.Zip}, City = ${this.City}, County = ${this.County}, StateAbbreviation = ${this.StateAbbreviation}, StateName = ${this.StateName}, TaxRate = ${this.TaxRate}, StateRate = ${this.StateRate}, CityRate = ${this.CityRate}, CountyRate = ${this.CountyRate}, CountyDistrictRate = ${this.CountyDistrictRate}, CityDistrictRate = ${this.CityDistrictRate}, SpecialDistrictRate = ${this.SpecialDistrictRate}, InformationComponents = [${componentsString}], TotalTaxExempt = ${this.TotalTaxExempt}, NotesCodes = ${this.NotesCodes}, NotesDesc = ${this.NotesDesc}`;\n    }\n}\n\n\/**\n * Response from GetBestMatch API, containing tax rate information for the best match.\n *\/\nexport class GetBestMatchResponse {\n    constructor(data = {}) {\n        this.TaxInfoItems = (data.TaxInfoItems || []).map(taxInfo => new BestMatchTaxInfo(taxInfo));\n        this.MatchLevel = data.MatchLevel;\n        this.Error = data.Error ? new Error(data.Error) : null;\n        this.Debug = data.Debug || [];\n    }\n\n    toString() {\n        const taxInfoItemsString = this.TaxInfoItems.length\n            ? this.TaxInfoItems.map(taxInfo => taxInfo.toString()).join('; ')\n            : 'null';\n        const debugString = this.Debug.length\n            ? this.Debug.join(', ')\n            : 'null';\n        return `GetBestMatchResponse: TaxInfoItems = [${taxInfoItemsString}], MatchLevel = ${this.MatchLevel}, Error = ${this.Error ? this.Error.toString() : 'null'}, Debug = [${debugString}]`;\n    }\n}\n\nexport default GetBestMatchResponse;<\/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 v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FT - REST<\/title>\n<meta name=\"description\" content=\"C#PythonNodeJS FastTax C# Rest Code Snippet \ufeffusing System.Web; namespace fast_tax_dot_net.REST { \/\/\/ &lt;summary&gt; \/\/\/ Provides functionality to call the\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\" \/>\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#PythonNodeJS FastTax C# Rest Code Snippet \ufeffusing System.Web; namespace fast_tax_dot_net.REST { \/\/\/ &lt;summary&gt; \/\/\/ Provides functionality to call the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.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=\"2025-09-27T22:04:43+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\",\"name\":\"FT - REST\",\"isPartOf\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-12T00:10:20+00:00\",\"dateModified\":\"2025-09-27T22:04:43+00:00\",\"description\":\"C#PythonNodeJS FastTax C# Rest Code Snippet \ufeffusing System.Web; namespace fast_tax_dot_net.REST { \/\/\/ &lt;summary> \/\/\/ Provides functionality to call the\",\"breadcrumb\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS FastTax\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"FT &#8211; Code Snippets and Sample Code\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"FT &#8211; REST\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/www.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:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FT - REST","description":"C#PythonNodeJS FastTax C# Rest Code Snippet \ufeffusing System.Web; namespace fast_tax_dot_net.REST { \/\/\/ &lt;summary> \/\/\/ Provides functionality to call the","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/","og_locale":"en_US","og_type":"article","og_title":"FT - REST","og_description":"C#PythonNodeJS FastTax C# Rest Code Snippet \ufeffusing System.Web; namespace fast_tax_dot_net.REST { \/\/\/ &lt;summary> \/\/\/ Provides functionality to call the","og_url":"https:\/\/www.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":"2025-09-27T22:04:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/","url":"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/","name":"FT - REST","isPartOf":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-12T00:10:20+00:00","dateModified":"2025-09-27T22:04:43+00:00","description":"C#PythonNodeJS FastTax C# Rest Code Snippet \ufeffusing System.Web; namespace fast_tax_dot_net.REST { \/\/\/ &lt;summary> \/\/\/ Provides functionality to call the","breadcrumb":{"@id":"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/ft-rest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS FastTax","item":"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/"},{"@type":"ListItem","position":3,"name":"FT &#8211; Code Snippets and Sample Code","item":"https:\/\/www.serviceobjects.com\/docs\/dots-fasttax\/ft-code-snippets-and-sample-code\/"},{"@type":"ListItem","position":4,"name":"FT &#8211; REST"}]},{"@type":"WebSite","@id":"https:\/\/www.serviceobjects.com\/docs\/#website","url":"https:\/\/www.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/www.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/www.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:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=3778"}],"version-history":[{"count":16,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3778\/revisions"}],"predecessor-version":[{"id":12364,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3778\/revisions\/12364"}],"up":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/3752"}],"wp:attachment":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=3778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}