Created
March 20, 2025 12:17
-
-
Save sts-developer/df35ef6c45e22059205c4c83c00295f7 to your computer and use it in GitHub Desktop.
Sample code for Csharp Form1099OID RequestPdfURLs method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var client = new HttpClient(); | |
| var request = new HttpRequestMessage(HttpMethod.Post, "https://testapi.taxbandits.com/v1.7.3/Form1099OID/RequestPdfURLs"); | |
| request.Headers.Add("Authorization", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhM2VkMWE1ZTkwMWI0YmQzOTY5NTYwMTljYTRjMWZmOCIsImV4cCI6MTcyMzQ1Nzc1NiwiaWF0IjoxNzIzNDU0MTU2LCJpc3MiOiJodHRwczovL3Rlc3RvYXV0aC5leHByZXNzYXV0aC5uZXQvdjIvIiwic3ViIjoiOTc0YTFiZDU5Yjk3ZTE1YyJ9.DOdss97pIy6_rrS2IMDG5H8-sj0sg2cRF5upCVhBpBU"); | |
| var content = new StringContent("{\r\n \"SubmissionId\": \"dc888e87-ecf4-4d64-a13b-61458cb86763\",\r\n \"RecordIds\": [\r\n {\r\n \"RecordId\": \"868fb473-ea8d-4d9c-8c89-cfc13ed173c6\"\r\n }\r\n ],\r\n \"Customization\": {\r\n \"TINMaskType\": \"Both\"\r\n }\r\n}", null, "application/json"); | |
| request.Content = content; | |
| var response = await client.SendAsync(request); | |
| Console.WriteLine(await response.Content.ReadAsStringAsync()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment