RequestPdfURLs
This method can be used to retrieve PDFs for single or multiple recipients. The PDF URL will be returned in the response only if it is already generated by us. You can use the SubmissionId or RecordIds to request the pdf URLs.
Note: The PDF URL will be returned in response only after the return is transmitted in the API. This method will not work for Inprogress returns.
POST Form1099PATR/RequestPdfURLs
Request Body
Field | Type | Description |
---|---|---|
SubmissionId | Guid | Optional Unique identifier of an API submission. Use this node to request the PDFs under a particular submission. If you are going to request the PDFs using the RecordIds, you can leave the SubmissionId blank or null. |
RecordIds | object[] | Contains the list of RecordIds for which you are requesting the pdf URLs |
RecordId | Guid | Unique identifier of the return. |
Customization | object | Contains PDF customizations |
TINMaskType | string | Optional Mention whether you want the TIN to be masked in the PDF. If masked, only the last digits of the SSN will be visible and the rest of the digits will be crossed (xxx-xx-1234).Allowed values"MASKED", "UNMASKED", "BOTH" |
Request JSON
- Sample 1
- Sample 2
- Sample 3
{
"SubmissionId": "dc888e87-ecf4-4d64-a13b-61458cb86763",
"RecordIds": [
{
"RecordId": "868fb473-ea8d-4d9c-8c89-cfc13ed173c6"
}
],
"Customization": {
"TINMaskType": "Both"
}
}
{
"SubmissionId": "a863c015-91f1-4128-84fc-bb38922b80f9",
"RecordIds": [
{
"RecordId": "c4446e74-ee11-43e4-b9db-a7e870714267"
},
{
"RecordId": "f11413f7-3fe3-4d55-9e87-66b687bc404e"
}
],
"Customization": {
"TINMaskType": "Masked"
}
}
{
"RecordIds": [
{
"RecordId": "c4446e74-ee11-43e4-b9db-a7e870714267"
},
{
"RecordId": "f11413f7-3fe3-4d55-9e87-66b687bc404e"
}
]
}
Response Body
Field | Type | Description |
---|---|---|
SubmissionId | Guid | Unique identifier of a submission. |
Form1099PATRRecords | object | Contains success and error records of the requested RecordIds. |
SuccessRecords | object[] | Contains the successful records with pdf urls if the forms are generated. |
RecordId | Guid | Unique identifier of the return. |
Status | string | Status of the PDF in TaxBandits. Success - The PDF is generated and you can download it. |
Files | object | Contains multiple copies of a particular return. |
CopyB | object | Copy B: Report this income on your federal tax return. If this form shows federal income tax withheld in box 4, attach this copy to your return. |
Unmasked | string | Link to download the Unmasked copy |
UnmaskedPath | string | The storage path of the unmasked TIN |
Masked | string | Link to download the Masked copy |
MaskedPath | string | The storage path of the masked TIN |
CopyC | object | Copy C: For Recipient's Records |
Unmasked | string | Link to download the Unmasked copy |
UnmaskedPath | string | The storage path of the unmasked TIN |
Masked | string | Link to download the Masked copy |
MaskedPath | string | The storage path of the masked TIN |
ErrorRecords | object[] | Contains the error records |
RecordId | Guid | Unique identifier of the return. |
Status | string | Status of the error record.
|
Message | string | Description of each statuses |
Errors | object[] | Lists the errors in the API call |
Id | string | Returns the error Id. |
Name | string | Name of the validation error |
Message | string | Description of the validation error |
Response JSON
- Response 1
- Response 3
{
"SubmissionId": "8dfdbc0b-f64d-4610-ad79-17363aa47385",
"Form1099PatrRecords": {
"SuccessRecords": [
{
"RecordId": "d1f3664f-40aa-47a0-b0dc-b417e22dcf65",
"Status": "Success",
"Files": {
"CopyB": {
"Unmasked": "https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/u/copyb_1up_19557650.pdf",
"UnmaskedPath": "pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/u/copyb_1up_19557650.pdf",
"Masked": "https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/m/copyb_1up_19557650.pdf",
"MaskedPath": "pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/m/copyb_1up_19557650.pdf"
},
"CopyC": {
"Unmasked": "https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/u/copyc_1up_19557650.pdf",
"UnmaskedPath": "pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/u/copyc_1up_19557650.pdf",
"Masked": "https://expressirsforms.s3.us-east-1.amazonaws.com/pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/m/copyc_1up_19557650.pdf",
"MaskedPath": "pdfs/aec81bcc-e098-4104-932c-d3241a2fd031/b4a815f2-9605-4461-8bf9-3e87ffc42ae2/1099/19557650/m/copyc_1up_19557650.pdf"
}
}
}
],
"ErrorRecords": null
},
"Errors": null
}
{
"SubmissionId": null,
"Form1099PATRRecords": {
"SuccessRecords": null,
"ErrorRecords": [
{
"RecordId": "c4446e74-ee11-43e4-b9db-a7e870714267",
"Status": "PDF_Not_Generated",
"Message": "Your PDF request is prioritized in the queue.Please try again after sometime"
},
{
"RecordId": "f11413f7-3fe3-4d55-9e87-66b687bc404e",
"Status": "Not Transmitted",
"Message": "Given RecordId is not transmitted"
}
]
},
"Errors": 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.