GetPDF
Retrieves Form 1042-S PDFs. The link for PDFs download will be sent via Webhook after successful API call.
GET Form1042S/GetPDF
Request Params
Field | Type | Description |
---|---|---|
SubmissionId | Guid | Mention the 1042-S returns Submission ID that you want to GetPdf |
RecordIds | Guid[] | 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. |
TINMaskType | string | Optional 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
Field | Type | Description |
---|---|---|
StatusCode | number | Returns the HTTP status codes like 200,300 etc. |
StatusName | string | Name of the status code |
StatusMessage | string | Detailed status message |
SubmissionId | Guid | Unique identifier of a submission |
Form1042SRecords | object[] | Collection of Form 1042-S records for which the PDF will be successfully delivered |
RecordId | Guid | Unique identifier of a record |
Message | string | Provides additional information regarding the PDF delivery. |
Errors | object[] | Shows detailed error information |
Id | string | Returns the validation error code |
Name | string | Name of the validation error |
Message | string | Description of the validation error |
Type | string | Type 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
}