Skip to main content
Version: 1.7.3

Delete

Delete

Use this endpoint to delete any in-progress new hire reports created in TaxBandits.

Key Points

  • When using this, ensure you provide the SubmissionId and the RecordId (Optional). If only the SubmissionId is provided, all reports associated with that SubmissionId will be deleted.
  • In the Live environment, reports with a Transmitted or Accepted status cannot be deleted. Whereas, in the Sandbox environment, reports can be deleted regardless of status.
DELETE NewHire/Employee/Delete 

Request Params

FieldTypeDescription
SubmissionIdGuidUnique identifier of a submission
RecordIdsGuid[]An unique identifier generated by TaxBandits when a withholding or UI return is created. Mention the withholding or UI return's Record ID that you want to Get.

Response Body

FieldTypeDescription
BusinessIdGuidUnique Identifier of the business
PayerRefstringUnique identifier of the payer.
NewHireRecordsobjectReturns detailed information of the NewHire form records.
SuccessRecordsobject[]It will show the detailed information about the success status of New Hire Form Records.
SubmissionIdGuidUnique identifier of a submission.
RecordIdGuidUnique identifier of a record
EmployeeIdGuidUnique Identifier of the business
EmpRefstringUnique identifier of the payer.
ReportingStatestringReporting state.
StatusstringReturns the status of the records.
Errorsobject[]Shows detailed error information.
CodestringReturns the validation error code.
NamestringName of the validation error.
MessagestringDescription of the validation error.
TypestringType of validation error.
ErrorRecordsobject[]It will show the detailed information about the error status of NewHire Records
RecordIdGuidUnique identifier of a record.
SequencestringA unique number given by an inbound application to identify failed records.
Errorsobject[]Shows detailed error information.
CodestringReturns the validation error code.
NamestringName of the validation error.
MessagestringDescription of the validation error.
TypestringType of validation error.
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

"newhire/employee/Delete?RecordIds=66c6e0c7-251e-4f00-8a75-14b5656a59dba&SubmissionId=01993cc2-65a7-749f-ae9f-11228a524981"

Response JSON

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

{
"StatusCode": "200",
"StatusName": "Ok",
"StatusMessage": "Successful API call",
"SubmissionId": "01993cc2-65a7-749f-ae9f-11228a524981",
"BusinessId": "07e6d7d9-5463-43d2-a272-14dc563cb5e0",
"PayerRef": null

"Errors": null,
"NewHireRecords": {
"SuccessRecords": [
{
"RecordId": "01993cc2-67a6-72ba-91d7-3e21e6ed3310",
"EmployeeId": "b3a91620-d26c-421e-95c6-1176522f105a",
"EmpRef": "2344",
"ReportingState": "SC",
"Status": "DELETED",
"Errors": null
}
],
"ErrorRecords": null
},
}