Skip to main content
Version: 2.0.0

Delete

Delete

Use this endpoint to delete any in-progress state withholding forms created in TaxBandits.

Key Points

  • When using this, ensure you provide the SubmissionId and the RecordId (Optional). If only the SubmissionId is provided, all returns associated with that SubmissionId will be deleted.
  • In the Live environment, returns with a Transmitted or Accepted status cannot be deleted. Whereas, in the Sandbox environment, returns can be deleted regardless of status.
DELETE StateFilings/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
SubmissionIdGuidUnique identifier of a submission
StateFilingRecordsObjectPulls withholding or UI records with Success and Error statuses
SuccessRecordsobject[]It will show the detailed information about the success status of withholding or UI Records
BusinessIdGuidUnique identifier of a Business.
PayerRefstringUnique identifier of the payer.
RecordIdGuidUnique identifier of a record
StatestringReturns the State code of the withholding or UI
FormTypestringReturns the Form type
StatusstringReturns the record status.
Errorsobject[]Shows error information of state returns of withholding or UI returns
IdstringReturns the validation error Id.
NamestringName of the validation error.
MessagestringDescription of the validation error.
ErrorRecordsobject[]It will show the detailed information about the error status of withholding or UI Records.
BusinessIdGuidUnique identifier of a Business.
PayerRefstringUnique identifier of the payer.
RecordIdGuidUnique identifier of a record
StatestringReturns the State code of the withholding or UI return
FormTypestringReturns the Form type
StatusstringReturns the record status.
Errorsobject[]Shows error information of state returns of withholding or UI
IdstringReturns the validation error Id.
NamestringName of the validation error.
MessagestringDescription of the validation error.
Errorsobject[]Shows detailed error information
IdstringReturns the validation error Id
NamestringName of the validation error
MessagestringDescription of the validation error

Request Params

"StateFilings/Delete?SubmissionId=66c6e0c7-251e-4f00-8a75-14b5656a59db&RecordIds=66c6e0c7-251e-4f00-8a75-14b5656a59db"

Response JSON

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

{
"SubmissionId": "01a01f10-e232-726d-b1c0-0b38ab45bdc0",
"Errors": null,
"StateFilingRecords": {
"SuccessRecords": [
{
"BusinessId": "72d4ff2a-e7e6-47b3-9c85-82b7ee40fa4c",
"PayerRef": "63773",
"RecordId": "01a01f10-e496-7260-b384-dbc0199a6c4e",
"State": "MN",
"FormType": "MNQWTH",
"Status": "DELETED",
"Errors": null
}
],
"ErrorRecords": null
}
}