Skip to content

Instantly share code, notes, and snippets.

@sts-developer
Created March 20, 2025 12:11
Show Gist options
  • Select an option

  • Save sts-developer/1f6704dc4e0ba6679c5e3e9271267979 to your computer and use it in GitHub Desktop.

Select an option

Save sts-developer/1f6704dc4e0ba6679c5e3e9271267979 to your computer and use it in GitHub Desktop.
Sample code for Csharp Form1099OID Transmit method
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://testapi.taxbandits.com/v1.7.3/Form1099OID/Transmit");
request.Headers.Add("Authorization", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhM2VkMWE1ZTkwMWI0YmQzOTY5NTYwMTljYTRjMWZmOCIsImV4cCI6MTcyMzQ1Nzc1NiwiaWF0IjoxNzIzNDU0MTU2LCJpc3MiOiJodHRwczovL3Rlc3RvYXV0aC5leHByZXNzYXV0aC5uZXQvdjIvIiwic3ViIjoiOTc0YTFiZDU5Yjk3ZTE1YyJ9.DOdss97pIy6_rrS2IMDG5H8-sj0sg2cRF5upCVhBpBU");
var content = new StringContent("{\r\n \"SubmissionId\": \"efacde0b-93e4-4327-84f5-f003b14fdc47\",\r\n \"RecordIds\": [\r\n \"7629fc38-5a6f-4b51-842e-b3058bc5a94c\"\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