Skip to main content
Version: 2.0.0

RequestPdfUrls

RequestPdfUrls

This endpoint retrieves PDF copies of a Form W-2 for a single employee or multiple employees. Request the PDF URLs by providing either the SubmissionId or the RecordId associated with the returns.

Key Points:

  • This endpoint does not generate new PDFs - it only retrieves links to PDFs that already exist in the system.
  • PDF URLs are returned only if they've already been generated by TaxBandits. This endpoint will not work for in-progress returns.
GET formw2/requestpdfUrls 

Request Body

FieldTypeDescription
TINMaskTypestringOptional Mention whether you want the TIN to be masked in the PDF. If masked, only the last digits of the SSN will be visible, and the rest of the digits will be crossed out (xxx-xx-1234).
Allowed values

Allowed Values: "MASKED", "UNMASKED", "BOTH"

RecordIdsGuid[]A unique identifier generated by TaxBandits when a return is created. Mention the return's RecordId that you want to delete.

Response Body

FieldTypeDescription
SubmissionIdGuidA unique identifier of a submission.
FormTypestringDenotes the type of the form.
FormW2Recordsobject[]object[]Pulls the form records with Success and Error statuses; the successful records with PDF URLs if the forms are generated.
RecordIdGuidA unique identifier of the return.
StatusstringStatus of the PDF in TaxBandits Servers. The PDF is generated, and you can download it.
FilesobjectContains multiple copies of a particular return.
Copy1objectCopy 1: For State, City, or Local Tax Department
UnmaskedstringLink to download the Unmasked copy.
UnmaskedPathstringThe storage path of the unmasked TIN.
MaskedstringLink to download the Masked copy.
MaskedPathstringThe storage path of the masked TIN.
Copy2objectCopy 2: To Be Filed With Employee’s State, City, or Local Income Tax Return
UnmaskedstringLink to download the Unmasked copy.
UnmaskedPathstringThe storage path of the unmasked TIN.
MaskedstringLink to download the Masked copy.
MaskedPathstringThe storage path of the masked TIN.
CopyBobjectCopy B: To Be Filed With Employee’s FEDERAL Tax Return.
UnmaskedstringLink to download the Unmasked copy.
UnmaskedPathstringThe storage path of the unmasked TIN.
MaskedstringLink to download the Masked copy.
MaskedPathstringThe storage path of the masked TIN.
CopyCobjectCopy C: For Employee’s records.
UnmaskedstringLink to download the Unmasked copy.
UnmaskedPathstringThe storage path of the unmasked TIN.
MaskedstringLink to download the Masked copy.
MaskedPathstringThe storage path of the masked TIN.
CopyDobjectCopy D: For Employer.
UnmaskedstringLink to download the Unmasked copy.
UnmaskedPathstringThe storage path of the unmasked TIN.
MaskedstringLink to download the Masked copy.
MaskedPathstringThe storage path of the masked TIN.
ErrorRecordsobject[]Contains the error records.
RecordIdGuidUnique identifier of the return.
StatusstringStatus of the error record PDF. "Not_Generated_PDF" is yet to be generated. You will have to wait and send a new API request to get the PDF. "NotTransmitted" - the return is not transmitted yet. Invalid RecordId - Given RecordId is invalid.
MessagestringDescription of each status.
Errorsobject[]Lists the errors in the API call.
IdstringReturns the error ID.
NamestringName of the validation error.
MessagestringDescription of the validation error.
Request Params
SampleDescriptionAction
Sample 1
Query Params - Request PDF URLs for generated Form W2 returns using RecordId and TINMaskType.
Sample 1
formw2/requestpdfurls?recordid=cfa818b8-6661-4b57-b04b-ba9ead52a16e&TINMaskType=MASKED
Response JSON
ResponseDescriptionAction
200
Success Response - This is a sample response for successful API requests.
Response: 200
{
"SubmissionId": "d95658f5-d7c5-4734-ad67-96134fca6626",
"FormType": "FormW2",
"FormW2Records": [
{
"RecordId": "8baa39f7-7955-4bc1-acb3-3bd54028051b",
"Status": "Success",
"Copy1": {
"Unmasked": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/u/copy1_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/u/36323837/u/copy1_1up_36323837.pdf"
],
"MaskedPath": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/m/copy1_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/m/36323837/m/copy1_1up_36323837.pdf"
]
},
"Copy2": {
"Unmasked": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/u/copy2_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/u/36323837/u/copy2_1up_36323837.pdf"
],
"Masked": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/m/copy2_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/m/36323837/m/copy2_1up_36323837.pdf"
]
},
"CopyB": {
"Unmasked": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/u/copyb_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/u/36323837/u/copyb_1up_36323837.pdf"
],
"MaskedPath": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/m/copyb_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/m/36323837/m/copyb_1up_36323837.pdf"
]
},
"CopyC": {
"Unmasked": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/u/copyc_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/u/36323837/u/copyc_1up_36323837.pdf"
],
"MaskedPath": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/m/copyc_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/m/36323837/m/copyc_1up_36323837.pdf"
]
},
"CopyD": {
"Unmasked": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/u/copyc_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/u/36323837/u/copyc_1up_36323837.pdf"
],
"MaskedPath": [
"https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/36323837/m/copyc_1up_36323837.pdf",
"pdfs/f52ee15-25c8-41d0-83af-f68794a8cb94/099dc5ab-9f57-42f9-b4ee-9683925777f2/m/36323837/m/copyc_1up_36323837.pdf"
]
},
"ErrorRecords": null,
"Errors": null
}
]
}