Skip to main content
Version: 1.7.3

RequestDraftPdfUrl

RequestDraftPdfUrl

This endpoint can be used to retrieve the Draft PDF of a Form W-2G corrections for review purposes. This method supports retrieving the PDF for a single record/form.

Key points

  • The PDF is returned only for forms that have not yet been transmitted in TaxBandits.
  • This method provides Copy A of the form, which will include a watermark stating ‘For Review Only’.

How does it work?

  1. The first step is to call the Auth method to get the access token. This access token must be supplied in the request header as the 'Bearer' token. Refer to OAuth 2.0 Authentication for more information on JWT authentication and how to integrate with the subsequent requests.
  2. The second step is to call the Create endpoint FormW2GCorrection/Create to create a return in TaxBandits. Store the RecordId of the W-2G correction form that is generated by TaxBandits and returned in the response.
  3. Next, call the [POST] FormW2GCorrection/RequestDraftPdfUrl endpoint. You will need to supply the following parameters:
    • Access Token in the header as Bearer Token (Generated using TaxBandits OAuth authentication API)
    • Form reference (RecordId): Specify the RecordId for the form you need the Draft PDF form. If you do not have the RecordId, then you request the PDF using the following parameters
      • Business Reference - Use the business reference PayerRef or Businessid, or TIN
      • Recipient Reference - Use the recipient reference PayeeRef or RecipientId, or TIN
      • Tax Year - Tax year of the form you are requesting the PDF for.
POST FormW2GCorrection/RequestDraftPdfUrl 

Request Body

FieldTypeDescription
TaxYearstringOptional Tax year of Form W-2G Correction to be filed.
Allowed values

"2025"

RecordIdGuidOptional Specify the RecordId of the return.
BusinessobjectOptional Collects Collects the Business identifier TIN, or Business Id, or PayerRef. This object information is required only if you do not have the RecordId
    BusinessIdGuidOptional Unique identifier of a Business.
    PayerRefstringOptional An unique identifier for each payer completing their information. This identifier can be used in future references of the payer in the API.
Size Range: 1-50
    TINTypestringOptional TIN type of the business
    TINstringOptional payer’s TIN.
RecipientobjectOptional Collects the recipient's unique identifier. This object information is required only if you do not have the RecordId.
    PayeeRefstringOptional An unique identifier for each recipient set by the client.
Size Range: 1 to 50
    RecipientIdGuidOptional Unique identifier of the Recipient.
    TINTypestringOptional TIN type of the Recipient’s TIN. Use this as an alternative for RecipientId or PayeeRef.
Allowed values:"SSN", "EIN"
    TINstringOptional Taxpayer Identification Number. Use this as an alternative for RecipientId or PayeeRef.
Size Range: 9-11

Response Body

FieldTypeDescription
RecordIdGuidUnique identifier of the record
RecipientIdGuidUnique Recipient Identifier generated by TaxBandits
PayeeRefstringAn unique identifier for each recipient set by the client.
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

Request Params

{
"TaxYear": "2025",
"RecordId": "97c9ba31-c244-4aeb-addc-f1b53be373fc",
"TINMaskType": "MASKED",
"Business": {
"BusinessId": "794451d1-909a-4ffa-852a-fa567b391e15",
"PayerRef": null,
"TINType": null,
"TIN": null
},
"Recipient": {
"RecipientId": "815caa44-521e-48b4-a312-39ae5b15f148",
"PayeeRef": null,
"TINType": null,
"TIN": null
}
}

Response Json

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

{
"RecordId": "97c9ba31-c244-4aeb-addc-f1b53be373fc",
"RecipientId": "815caa44-521e-48b4-a312-39ae5b15f148",
"PayeeRef": null,
"DraftPdfUrl": "https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/9f64ef0b-80f7-4c09-9d95-6f26109fa73e/794451d1-909a-4ffa-852a-fa567b391e15/w2gcorrection/3142166/d/Single_Draft.pdf",
"DraftPdfPath": "pdfs/9f64ef0b-80f7-4c09-9d95-6f26109fa73e/794451d1-909a-4ffa-852a-fa567b391e15/w2gcorrection/3142166/d/Single_Draft.pdf",
"Error": null
}