Skip to main content
Version: 1.7.3

RequestDraftPdfUrl

This API request will return the Draft PDF of the forms that are not transmitted yet for review purpose. The draft PDF will have copy A of the form with For Review Only watermark text.

Note: You can only retrieve PDF of a single record/form using this method.

How does it works?

  1. Call the [POST] Form1042S/RequestDraftPdfUrl endpoint. You will need to supply the following parameters:

    • Access Token in the header as Bearer Token (Generated using TaxBandits OAuth authentication API)

    • Request Parameters: 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.
POST Form1042S/RequestDraftPdfUrl 
Run in Postman

Request Body

FieldTypeDescription
RecordIdGuidOptional Specify the RecordId of the return
TINMaskTypestringOptional TIN Mask type on the TIN printed on the PDF
Allowed values: "MASKED", "UNMASKED"
TaxYearstringOptional Tax Year of the return. Specify only if you do not have the RecordId
Allowed values: "2022","2023"
BusinessobjectOptional Collects the Business identifier TIN or TBS Business Id or PayerRef. This object information is required only if you do not have the RecordId
    BusinessIdGuidOptional TaxBandits Unique Business Identifier. This ID is generated by TaxBandits after you create a business in your account using the Business endpoint.
    PayerRefstringOptional Unique payer identifier assigned by the client.
Size Range: 1 to 50
    TINTypestringOptional TIN type of the Business TIN. Use this as an alternative for BusinessId or PayerRef.
Allowed values: "SSN,EIN"
    TINstringOptional Taxpayer Identification Number. Use this as an alternative for BusinessId or PayerRef.
Size Range: 9
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 Recipient Identifier generated by TaxBandits
    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.

Request JSON

{
"TaxYear": null,
"RecordId": "6e7f3419-afa6-4cfd-acae-e28df9a6acf4",
"Business": null,
"Recipient": null
}

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

Response JSON

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

{
"RecordId": "6e7f3419-afa6-4cfd-acae-e28df9a6acf4",
"RecipientId": "41ed5851-e4bc-40dd-9b15-0cc5709a071d",
"PayeeRef": null,
"DraftPdfUrl": "https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/c52fdcac-9b72-49b8-8b61-c6b6c1e20e94/e07bc07d-d3df-4f61-9e11-284abda9c256/1099/10813/d/copy_tbs_wm_1up_8494336582.pdf",
"DraftPdfPath": "pdfs/c52fdcac-9b72-49b8-8b61-c6b6c1e20e94/e07bc07d-d3df-4f61-9e11-284abda9c256/1099/10813/d/copy_tbs_wm_1up_8494336582.pdf",
"Error": null
}

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.