Delete
Delete
Use this endpoint to delete a W-9/W-8 form record and its associated data. This is useful for removing test records, deleting incorrectly created records, or supporting your data retention process.
Deletion is permanent and cannot be undone.
Key Points
-
Only W-9/W-8 form records that have not been used in a filed 1099 or 1042-S return can be deleted.
-
If the W-9/W-8 form was linked to multiple payers, the associated payer links will also be removed.
DELETE WhCertificate/Delete Request Params
| Field | Type | Description |
|---|---|---|
| SubmissionId | Guid | A unique identifier of the submission. |
| PayeeRef | String | A unique identifier of the recipient. (Either PayeeRef or Email is required) Size Range: 1-50. |
| String | Email address of the recipient. Size Range: 1-50. | |
| Phone | String | The phone number of the recipient Size Range: 4-16 |
| CountryPhoneCode | String | Recipient’s country code. If not provided, the US will be selected by default. Size Range: 2 Allowed values"AF", "AX", "AL", "AG", "AQ", "AN", "AO", "AV", "AY", "AC", "AR", "AM", "AA", "AT", "AS", "AU", "AJ", "BF", "BA", "FQ", "BG", "BB", "BO", "BE", "BH", "BN", "BD", "BT", "BL", "BK", "BC", "BV", "BR", "IO", "VI", "BX", "BU", "UV", "BM", "BY", "CB", "CM", "CA", "CV", "CJ", "CT", "CD", "CI", "CH", "KT", "IP", "CK", "CO", "CN", "CF", "CG", "CW", "CR", "CS", "IV", "HR", "CU", "UC", "CY", "EZ", "DA", "DX", "DJ", "DO", "DR", "TT", "EC", "EG", "ES", "EK", "ER", "EN", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "FP", "FS", "GB", "GA", "GG", "GM", "GH", "GI", "GR", "GL", "GJ", "GQ", "GT", "GK", "GV", "PU", "GY", "HA", "HM", "VT", "HO", "HK", "HQ", "HU", "IC", "IN", "ID", "IR", "IZ", "EI", "IS", "IT", "JM", "JN", "JA", "DQ", "JE", "JQ", "JO", "KZ", "KE", "KQ", "KR", "KN", "KS", "KV", "KU", "KG", "LA", "LG", "LE", "LT", "LI", "LY", "LS", "LH", "LU", "MC", "MK", "MA", "MI", "MY", "MV", "ML", "MT", "IM", "RM", "MR", "MP", "MX", "MQ", "MD", "MN", "MG", "MJ", "MH", "MO", "MZ", "WA", "NR", "BQ", "NP", "NL", "NC", "NZ", "NU", "NG", "NI", "NE", "NF", "CQ", "NO", "MU", "OC", "PK", "PS", "LQ", "PM", "PP", "PF", "PA", "PE", "RP", "PC", "PL", "PO", "RQ", "QA", "RO", "RS", "RW", "TB", "RN", "WS", "SM", "TP", "SA", "SG", "RI", "SE", "SL", "SN", "NN", "LO", "SI", "BP", "SO", "SF", "SX", "OD", "SP", "PG", "CE", "SH", "SC", "ST", "SB", "VC", "SU", "NS", "SV", "WZ", "SW", "SZ", "SY", "TW", "TI", "TZ", "TH", "TO", "TL", "TN", "TD", "TS", "TU", "TX", "TK", "TV", "UG", "UP", "AE", "UK", "UY", "UZ", "NH", "VE", "VM", "VQ", "WQ", "WF", "WI", "YM", "ZA", "ZI" |
Response Body
| Field | Type | Description |
|---|---|---|
| WhCertificateRecords | Object[] | Details of the WhCertificates requested to be deleted. |
| SubmissionId | Guid | A unique identifier of the submission. |
| PayeeRef | String | A unique identifier of the recipient. |
| String | Email address of the recipient. | |
| Phone | String | The phone number of the recipient |
| CountryPhoneCode | String | Recipient’s country code. |
| WHStatus | String | Status of the WhCertificate. |
| StatusTs | String | Timestamp of the WhCertificate status. |
| Errors | Object[] | Detailed error information. |
| Id | string | Error ID number. This ID is assigned by TaxBandits and it is unique for each error. |
| Name | string | Name of the errored node. |
| Message | string | Shows the error message. |
Request Params
- Sample 1
- Sample 2
- Sample 3
- Sample 4
Delete an existing WhCertificate for the given SubmissionId.
WhCertificate/Delete?Submissionid=a4f8cb95-016f-435e-95e6-105487d57cbf
Delete an existing WhCertificate for the given PayeeRef.
WhCertificate/Delete?PayeeRef=RE2132565
Delete an existing WhCertificate for the given SubmissionId.
WhCertificate/Delete?Submissionid=6586346e-5ba9-49d8-aece-97cea94b5e53
Delete an existing WhCertificate for the given Email.
WhCertificate/Delete?Email=shawn@sample.com
Response JSON
- 200
- 400
- 401
Success Response - This is a sample response for successful API requests.
{
"WhCertificateRecords": [
{
"SubmissionId": "a21325eb-d9e7-441f-a828-78e43f241ade",
"PayeeRef": "RE2132565",
"Email": null,
"CountryPhoneCode": "US",
"Phone": "5241898753",
"WHStatus": "DELETED",
"StatusTs": "2024-07-22 01:01:50 -04:00"
}
],
"Errors": null
}
Bad Request Response - You'll get the below response when your API requests contain any validation errors.
{
"WhCertificateRecords": null,
"Errors": [
{
"Id": "F00-100146",
"Name": "Submission Id",
"Message": "Submission Id is invalid"
}
]
}
Unauthorized Response - You'll get the below response when your API requests don't contain valid authentication credentials.
{
"StatusCode": 401,
"StatusName": "Unauthorized",
"StatusMessage": "Invalid authorization credentials",
"Errors": [
{
"Id": "AUTH-100025",
"Name": "Authorization",
"Message": "Authorization should not be empty"
}
]
}