Skip to main content
Version: 1.7.3

GetPDF

GetPDF

Request a PDF download of 940 to be made available through Webhooks

GET Form940/GetPDF 

Request Params

FieldTypeDescription
SubmissionIdstringUnique identifier of a submission
RecordIdsstringList of record Ids to be downloaded.

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
Form940pdfRecordsobject[]Form940pdfRecords Object
    RecordIdGuidUnique identifier of a record
    Form940pdfstringReturns the record ID with success message after generating a PDF.
Errorsobject[]Shows detailed error information.
    CodestringReturns the validation error code.
    NamestringName of the validation error.
    MessagestringDescription of the validation error.
    TypestringType of validation error.

Request Params

"Form940/GetPDF?SubmissionId=adfaa49c-58c7-4e66-a2df-1258dad0a3e1&Recordids=9657e565-c91c-455e-ac2b-d9ef18d19db6"

Response JSON

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

{
"StatusCode": 200,
"StatusName": "Ok",
"StatusMessage": "Successful API call",
"SubmissionId": "adfaa49c-58c7-4e66-a2df-1258dad0a3e1",
"Form940pdfRecords": [
{
"RecordId": "9657e565-c91c-455e-ac2b-d9ef18d19db6",
"Form940pdf": "We've successfully received your request to generate PDF. You will be notified with the URL to download the PDF."
}
],
"Errors": null
}