Skip to main content
Version: 1.7.3

RequestPDFURLs

RequestPDFURLs

Use this endpoint to retrieve the PDF copies of withholding forms (draft or finalized) created for the business.

You can request the PDF URLs by providing either the SubmissionId or the RecordIds associated with the returns.

POST StateFilings/RequestPdfUrls 

Request Body

FieldTypeDescription
BusinessIdGuidUnique Identifier of a business
PayerRefstringAn unique identifier for the payer
TINstringTIN (EIN) of the payer
SubmissionIdGuidUnique identifier of a submission
RecordIdsGuidAn unique identifier generated by TaxBandits when a withholding or UI return is created. Mention the return's Record ID that you want to Get.

Response Body

FieldTypeDescription
SubmissionIdGuidUnique identifier of a submission
BusinessIdGuidUnique identifier of a Business.
PayerRefstringUnique identifier of the payer.
StateFilingRecordsObjectPulls withholding or UI records with Success and Error statuses
SuccessRecordsobject[]It will show the detailed information about the success status of withholding or UI Records
RecordIdGuidUnique identifier of a record
StatestringReturns the State code of the withholding or UI retruns
FormTypestringReturns the Form type
StatusstringReturns the record status.
PDFUrlstringLink to download the PDF
ErrorRecordsobject []Contains the error records
RecordIdGuidUnique identifier of a record
StatestringReturns the State code of the withholding or UI returns
FormTypestringReturns the Form type
StatusstringReturns the record status.
Errorsobject[]Shows error information of withholding or UI returns
IdstringReturns the validation error Id.
NamestringName of the validation error.
MessagestringDescription of the validation error.
Errorsobject[]Shows detailed error information
IdstringReturns the validation error Id
NamestringName of the validation error
MessagestringDescription of the validation error

PDF Security

The PDFs contain PII (Personally Identifiable Information) data of the recipients. To make sure that the PII data involved is completely secured, TaxBandits has added additional security to the form PDFs.

The PDF links you get in the Response are encrypted, and you will have to decrypt them before downloading.

Refer to this link for the steps to decrypt PDF with Sample codes.

Request JSON

{
"BusinessId": "3757324a-3794-4fcb-b389-7a9aaf826333",
"PayerRef": null,
"TIN": null,
"SubmissionId": "01993c39-4dc5-70d1-a428-a3facb476ee1",
"RecordIds": [
{
"RecordId": "ea13cc94-d25f-4c2f-aef2-a97b3eb59cf1"
}
]
}

Response JSON

Success Response - This is a sample response for successful API requests.

{
"StatusCode": "200",
"StatusName": "Ok",
"StatusMessage": "Successful API call",
"SubmissionId": "01993c39-4dc5-70d1-a428-a3facb476ee1",
"BusinessId": "3757324a-3794-4fcb-b389-7a9aaf826333",
"PayerRef": null,
"StateFilingRecords": {
"SuccessRecords": [
{
"RecordId": "01993c39-4e52-71b1-b833-84450f6f55dd",
"State": "SC",
"FormType": "SC1605",
"Status": "SUCCESS",
"PDFUrl": "pdfs/82d4753e-8698-4842-ae3f-59d80569e935/3757324a-3794-4fcb-b389-7a9aaf826333/SC/Final/2025/WH1605_13067.pdf"
}
],
"ErrorRecords": []
},
"Errors": null
}