Skip to main content
Version: 1.7.3

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.

{
"StatusCode": "200",
"StatusName": "Ok",
"StatusMessage": "Successful API call",
"SubmissionId": "019938b1-fa6a-7038-91b6-dcf508f3df88",
"Errors": null,
"StateFilingRecords": {
"SuccessRecords": [
{
"BusinessId": "dd4e6842-5d30-4fcf-8a22-a9eea69cac43",
"PayerRef": null,
"RecordId": "019938b1-fafe-763f-af35-ea8bf1e81484",
"State": "SC",
"FormType": "SC1605",
"Status": "DELETED",
"Errors": null
}
],
"ErrorRecords": null
}
}