Skip to main content
Version: 2.0.0

UploadAttachment

UploadAttachment

This endpoint is used to attach supporting PDF documents, such as yearly transaction details, to a recipient's 1099 form copy before it is shared with them.

How it works

  1. Create Form - Generate a 1099 form for the recipient.
  2. Upload Transaction Documents – Use the UploadAttachment endpoint against each form to upload additional PDFs for that recipient.
  3. Transmit & Distribute – After uploading, call the Transmit endpoint. TaxBandits will deliver the 1099 along with the attached documents through Postal Mailing and/or Online Access, whichever is enabled.

Key points

  • Enable Postal Mailing or Online Access for each recipient under the distribution details.
  • Mask TIN details in the attachment before uploading.
  • Provide either PDFByte or FilePath for each RecordID, not both.
  • Attachments must be uploaded before transmitting; they cannot be added afterward.
  • If multiple PDFs are uploaded for the same RecordID, the latest one replaces the earlier upload.
  • Limits: up to 100 PDFs or 100 MB total per submission, with each byte array capped at 2 MB.
POST Attachment/Upload 

Request Body

FieldTypeDescription
SummaryAttachmentObject[]Object to get the attachment details
RecordIDGuidA Unique identifier of the records given by TaxBandits
PDFByteByteArrayByte array of the PDF document
FilePathStringFile path of the PDF document

Response Body

FieldTypeDescription
SuccessRecordsObject[]Object contains the success records
RecordIDGuidA unique Identifier of the records generated by TaxBandits
InfoStringSuccess records information
ErrorRecordsObject[]Object contains the error records.
RecordIDGuidA unique Identifier of the records generated by TaxBandits
Errorsobject[]Shows detailed error information.
IdstringReturns the validation error ID.
NamestringName of the validation error.
MessagestringDescription of the validation error.
Request Json
SampleDescriptionAction
Sample 1
Attach supporting PDF documents
Sample 1
{
"SummaryAttachment": [
{
"RecordID": "e88e7f1d-7ae5-43b6-99f6-38d85664035a",
"PDFByte": "JVBERi0xLjMKJcOHw6zCj8KiCjEgMCBvYmoKPDwvVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCgoyIDAgb2JqCjw8L1R5cGUgL1BhZ2VzCj4+CmVuZG9iagoKMyAwIG9iago8PC9Qcm9kdWNlciAoXS5jZr7J2RzsWMGZesbjnpitsebz7uIEZ5dbRhmC/A6w6QJx87yIZn+lw6h212zv0LgpCj4+CmVuZG9iagoKNCAwIG9iago8PC9GaWx0ZXIgL1N0YW5kYXJkCi9WIDIKL1IgMwovUCAtMTg1MgovTyA8MzY0NTFCRDM5RDc1M0I3QzFEMTA5MjJDMjhFNjY2NUFBNEYzMzUzRkIwMzQ4QjUzNjg5M0UzQjFEQjVDNTc5Qj4KL1UgPDREM0ZCQTBEQTkzNDdGRTdBMDhBRDk0Mzk2OEJBNzM2MzE0MTU5MjY1MzU4OTc5MzIzODQ2MjY0MzM4MzI3OTU+Ci9MZW5ndGggMTI4Cj4+CmVuZG9iagoKeHJlZgowIDUKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDE5IDAwMDAwIG4gCjAwMDAwMDAwNjggMDAwMDAgbiAKMDAwMDAwMDEwMiAwMDAwMCBuIAowMDAwMDAwMTg2IDAwMDAwIG4gCnRyYWlsZXIKPDwvU2l6ZSA1Ci9Sb290IDEgMCBSCi9JbmZvIDMgMCBSCi9JRCBbPDU1MUQwRTI4MOUE+XQovRW5jcnlwdCA0IDAgUgo+PgpzdGFydHhyZWYKMzk2CiUlRU9GCg==",
"FilePath": null
},
{
"RecordID": "04ec74ea-9099-42a0-9a64-710a4d7eec37",
"PDFByte": null,
"FilePath": "https://amazonaws.com/pdfs/a570efbd-740f-4ae2-bfe7-26356cd85148.pdf"
}
]
}
Response JSON
ResponseDescriptionAction
200
Success Response - You'll get the below response when the request is processed successfully.
Response: 200
{
"SuccessRecords": [
{
"RecordID": "e88e7f1d-7ae5-43b6-99f6-38d85664035a",
"Info": "Attachment Uploaded Successfully"
},
{
"RecordID": "e88e7f1d-7ae5-43b6-99f6-38d85664035a",
"Info": "Attachment Uploaded Successfully"
}
],
"ErrorRecords": null
}