Skip to main content
Version: 1.7.3

GetPDF

Retrieves Form 1042-S PDFs. The link for PDFs download will be sent via Webhook after successful API call.

GET Form1042S/GetPDF 
Run in Postman

Request Params

FieldTypeDescription
SubmissionIdGuidMention the 1042-S returns Submission ID that you want to GetPdf
RecordIdsGuid[]Optional Mention the 1042-S returns Record ID that you want to GetPdf. Multiple RecordIds GetPdf under the same Submission can be received by sending the RecordIds comma separated.
TINMaskTypestringOptional Choose the masking type of your Recipient's TIN on the 1042-S PDF.

MASKED - The Recipient's TIN will be masked in the PDF. Only the last 4 digits of the TIN can be read.

UNMASKED - The Recipient's TIN will not be masked in the PDF.

To protect the PII information of the Recipient, the PDF with Unmasked TIN is password protected. Use the Recipient's TIN (password) to open the protected file.BOTH - Two PDFs will be delivered for each Recipient.One with Masked TIN and the other with Unmasked TIN. The PDF with Unmasked TINwill be password protected.

Allowed values: "MASKED", "UNMASKED", "BOTH"

Request Params

"Form1042S/GetPdf?SubmissionId=fe9d84e4-9ec4-4c13-a5ed-f22a18361c75&RecordIds=6e7f3419-afa6-4cfd-acae-e28df9a6acf4&TINMaskType=UNMASKED"

Response Body

FieldTypeDescription
StatusCodenumberReturns the HTTP status codes like 200,300 etc.
StatusNamestringName of the status code
StatusMessagestringDetailed status message
SubmissionIdGuidUnique identifier of a submission
Form1042SRecordsobject[]Collection of Form 1042-S records for which the PDF will be successfully delivered
    RecordIdGuidUnique identifier of a record
    MessagestringProvides additional information regarding the PDF delivery.
Errorsobject[]Shows detailed error information
    IdstringReturns the validation error code
    NamestringName of the validation error
    MessagestringDescription of the validation error
    TypestringType of validation error

Response JSON

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

{
"StatusCode": 200,
"StatusName": "Ok",
"StatusMessage": "Successful API call",
"SubmissionId": "fe9d84e4-9ec4-4c13-a5ed-f22a18361c75",
"Form1042SRecords": [
{
"RecordId": "6e7f3419-afa6-4cfd-acae-e28df9a6acf4",
"Message": "We've successfully received your request to generate PDF. You will be notified with the URL to download the PDF."
}
],
"Errors": null
}