Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save sts-developer/f3cb26e7204e22306566f95e9db9d8d7 to your computer and use it in GitHub Desktop.
Sample code for Python Form1099OID GetbyRecordIds method
import http.client
import json
conn = http.client.HTTPSConnection("testapi.taxbandits.com")
payload = json.dumps({
"RecordIds": [
{
"RecordId": "02d1de6d-c04e-48f4-a149-eb7a85af136c"
}
]
})
headers = {
'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhM2VkMWE1ZTkwMWI0YmQzOTY5NTYwMTljYTRjMWZmOCIsImV4cCI6MTcyMzQ1Nzc1NiwiaWF0IjoxNzIzNDU0MTU2LCJpc3MiOiJodHRwczovL3Rlc3RvYXV0aC5leHByZXNzYXV0aC5uZXQvdjIvIiwic3ViIjoiOTc0YTFiZDU5Yjk3ZTE1YyJ9.DOdss97pIy6_rrS2IMDG5H8-sj0sg2cRF5upCVhBpBU',
'Content-Type': 'application/json'
}
conn.request("POST", "/v1.7.3/Form1099OID/GetbyRecordIds", 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