{"id":21179131,"url":"https://github.com/avadev/avatax-rest-v2-dotnet-sdk","last_synced_at":"2026-01-05T20:16:06.039Z","repository":{"id":38185161,"uuid":"80149554","full_name":"avadev/AvaTax-REST-V2-DotNet-SDK","owner":"avadev","description":"AvaTax v2 SDK for languages using the Dot Net Framework","archived":false,"fork":false,"pushed_at":"2025-06-26T16:50:48.000Z","size":6260,"stargazers_count":28,"open_issues_count":18,"forks_count":38,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-06-26T17:46:43.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-26T19:55:13.000Z","updated_at":"2025-06-26T16:50:32.000Z","dependencies_parsed_at":"2023-02-18T09:15:45.441Z","dependency_job_id":"b9b5607c-c87c-444a-854b-2ab776582186","html_url":"https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK","commit_stats":{"total_commits":417,"total_committers":28,"mean_commits":"14.892857142857142","dds":0.7769784172661871,"last_synced_commit":"830b87a02e6b54c2acb05bab70195c7fd571e46c"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/avadev/AvaTax-REST-V2-DotNet-SDK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-REST-V2-DotNet-SDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-REST-V2-DotNet-SDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-REST-V2-DotNet-SDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-REST-V2-DotNet-SDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avadev","download_url":"https://codeload.github.com/avadev/AvaTax-REST-V2-DotNet-SDK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-REST-V2-DotNet-SDK/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265500666,"owners_count":23777527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T17:28:52.411Z","updated_at":"2026-01-05T20:16:01.002Z","avatar_url":"https://github.com/avadev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e NOTICE for 19.4.1:  This is a patch fixing serialization issues with version 19.4.0's AuditTransaction method. If you are having issues utilizing this method, please update your AvaTax package to 19.4.1. \n\u003e\n\u003eAt this time, we do not recommend implementing code which utilizes the contents of the AuditTransaction response, because the type of this response will be updated in 19.5.0. \n\n# AvaTax-REST-V2-DotNet-SDK\n\nThis GitHub repository is the DotNet (or C#) SDK for Avalara's world-class tax service, AvaTax.  It uses the AvaTax REST v2 API, which is a fully REST implementation and provides a single client for all AvaTax functionality.  For more information about AvaTax REST v2, please visit [Avalara's Developer Network](http://developer.avalara.com/) or view the [online Swagger documentation](https://sandbox-rest.avatax.com/swagger/ui/index.html).\n\n# Build Status\n\nNuGet\n\n[![NuGet](https://img.shields.io/nuget/v/Avalara.AvaTax.svg?style=plastic)](https://www.nuget.org/packages/Avalara.AvaTax/)\n\nTravis-CI\n\n![Travis](https://api.travis-ci.org/avadev/AvaTax-REST-V2-DotNet-SDK.svg?branch=master\u0026style=plastic)\n\n# Installing the DotNet SDK\n\nThe AvaTax DotNet SDK is available on NuGet:\n* Right click on a project and select `Manage NuGet Packages`\n* Search for `Avalara.AvaTax`\n* Click `Install` to add the latest version\n\nA detailed walkthrough is available on the Avalara Developer Blog:\n* http://developer.avalara.com/blog/2016/12/05/csharp-nuget-library/\n\n# Using the DotNet SDK\n\nThe DotNet SDK uses a fluent interface to define a connection to AvaTax and to make API calls to calculate tax on transactions.  Here's an example of how to connect to AvaTax in C#:\n\n```csharp\nusing Avalara.AvaTax.RestClient;\n\npublic class Program\n{\n    public void Main()\n    {\n        // Create a client and set up authentication\n        var Client = new AvaTaxClient(\"MyTestApp\", \"1.0\", Environment.MachineName, AvaTaxEnvironment.Sandbox)\n            .WithSecurity(\"MyUsername\", \"MyPassword\");\n\n        // Verify that we can ping successfully\n        var pingResult = Client.Ping();\n        if (pingResult.authenticated) {\n            Console.WriteLine(\"Success!\");\n        }\n\n        // Create a simple transaction for $100 using the fluent transaction builder\n        var transaction = new TransactionBuilder(Client, \"DEFAULT\", DocumentType.SalesInvoice, \"ABC\")\n            .WithAddress(TransactionAddressType.SingleLocation, \"123 Main Street\", null, null, \"Irvine\", \"CA\", \"92615\", \"US\")\n            .WithLine(100.0m, 1, \"P0000000\")\n            .Create();\n    }\n}\n\n```\n\n# Capturing logs of API calls\n\nThe DotNet SDK allows you to capture API requests and responses either using an event hook or by logging all API calls to disk.  You can use this feature to capture information about API call errors, or performance statistics, or anything else.\n\n```csharp\n// You can capture logs to disk like this:\nclient.LogToFile(\"c:\\\\logs\\\\avataxapi.log\");\n\n// Or you can hook the client to capture information about every API call like this:\nclient.CallCompleted += MyEventHandler;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favadev%2Favatax-rest-v2-dotnet-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favadev%2Favatax-rest-v2-dotnet-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favadev%2Favatax-rest-v2-dotnet-sdk/lists"}