Created
March 20, 2025 12:23
-
-
Save sts-developer/4d2c8a163d663974d276536f86a85cd3 to your computer and use it in GitHub Desktop.
Sample code for Python Form1099OID Validate 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
| import http.client | |
| conn = http.client.HTTPSConnection("testapi.taxbandits.com") | |
| payload = '' | |
| headers = { | |
| 'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJlYzE0NTIxYjMxNGY0N2RhOTc5ODMzYjVlZjkxNDU5ZSIsImV4cCI6MTcyMzQ1MzY0OSwiaWF0IjoxNzIzNDUwMDQ5LCJpc3MiOiJodHRwczovL3Rlc3RvYXV0aC5leHByZXNzYXV0aC5uZXQvdjIvIiwic3ViIjoiYTQyMWE2MWUzOWUyY2U3ZSJ9.VM4jhtJ6xM3Nbc9JJDLxwESDj6wP7LCY2U1E51o9fbE' | |
| } | |
| conn.request("GET", "/v1.7.3/Form1099OID/Validate?SubmissionId=42c589e6-f824-4a0c-afca-8f592c62b2fd&RecordIds=7c1654e0-b0a0-4719-b5af-76596d79ca25", payload, headers) | |
| res = conn.getresponse() | |
| data = res.read() | |
| print(data.decode("utf-8")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment