Skip to main content
Version: 2.0.0

RequestDraftPdfUrl

RequestDraftPdfUrl

This endpoint retrieves Draft PDF copies of a Form W2 for a single employee or multiple employees. Request the Draft PDF URLs by providing the RecordId associated with the forms.

GET formw2/requestdraftpdfUrl 

Request Params

FieldTypeDescription
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
RecordIdGUIDA unique identifier of the record
employeeIdGUIDA unique employee identifier generated by TaxBandits
EmployeeRefStringA unique identifier for each employee set by you.
DraftPdfUrlStringURL of the Draft PDF
DraftPdfPathStringStorage path of the draft PDF
Errorsobject[]Shows detailed error information
IdStringReturns the validation error code
NameStringName of the validation error
MessageStringDescription of the validation error
Errorsobject[]Shows detailed error information
IdStringReturns the validation error code
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
Request Params
SampleDescriptionAction
Sample 1
Query Params - Request Draft PDF URLs for generated Form W2 returns using RecordId.
Sample 1
formw2/requestdraftpdfUrl?recordid=cf0a188b-6661-4b57-b04b-ba9ead52a16e
Response JSON
ResponseDescriptionAction
200
Success Response - This is a sample response for successful API requests.
400
Bad Request Response - You'll get the below response when your API requests contain any validation errors.
401
Unauthorized Response - You'll get the below response when your API requests when Authorization Failed.
Response: 200
{
"RecordId": "6374a0b5-c08c-494e-87be-8520edd9dc46",
"EmployeeId": "bfae6528-1795-46c4-bb9d-1b54c4142882",
"PayeeRef":1234,
"DraftPdfUrl": "https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/db83ebea-b8de-4b05-8ae6-dd601c896b05/9310bcad-5fb5-4f1d-8a2b-520480aa399d/w2/48726604/d/Single_Draft.pdf",
"DraftPdfPath": "pdfs/db83ebea-b8de-4b05-8ae6-dd601c896b05/9310bcad-5fb5-4f1d-8a2b-520480aa399d/w2/48726604/d/Single_Draft.pdf",
"Error": null
}