Skip to main content
Version: 1.7.3

Validate

Validate

This endpoint can be used to perform business and data validation checks on the W-2G form corrections already created through the API. To validate, provide the corresponding SubmissionId and RecordIds of the specific return you want to verify.

GET FormW2GCorrection/Validate  

Request Params

FieldTypeDescription
SubmissionIdGuidUnique identifier of a submission
RecordsIdsGuid[]Unique identifier generated by TaxBandits when a W-2G return is created. Mention the W-2G correction return's Record ID that you want to validate.

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
FormW2GRecordsobjectPulls the Form W-2G correction records with Success and Error statuses.
    SuccessRecordsobject[]It will show the detailed information about the success status of Form W-2G correction Records
            SequenceIdstringAn unique reference ID for the submission that can be used to identify a particular record. The Sequence ID will be returned in the Response for your reference.
        RecordIdGuidRecord ID of the returns that were successfully validated.
        StatusstringReturns the status of the records.
        StatusTsstringDate and time of return created.
        StateReturnsobject[]Returns the state information
        OnlineAccessobjectReturns the email address for whom the online access is to be given and the status of online access.
            StatusstringReturns status of online access for Form W-2G return.
            EmailstringEmail address for whom the online access to be given.
            InfostringInformation about the online access service.
    ErrorRecordsobject[]It will show the detailed information about the error status of Form W-2G correction Records.
        SequenceIdstringAn unique reference ID for the submission that can be used to identify a particular record. The Sequence ID will be returned in the Response for your reference.
        RecordIdGuidUnique identifier of a record
        Errorsobject[]Shows detailed error information
            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

"FormW2GCorrection/validate?SubmissionId=94677293-8ecf-443b-8a76-8b8d192b2cb1&RecordIds=97c9ba31-c244-4aeb-addc-f1b53be373fc"

Response Json

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

{
"StatusCode": 200,
"StatusName": "Ok",
"StatusMessage": "Successful API call",
"SubmissionId": "94677293-8ecf-443b-8a76-8b8d192b2cb1",
"FormW2GRecords": {
"SuccessRecords": [
{
"SequenceId": "001",
"RecordId": "97c9ba31-c244-4aeb-addc-f1b53be373fc",
"Status": "CREATED",
"StatusTs": "2025-12-01 05:22:58 -05:00",
"StateReturns": null,
"OnlineAccess": null,
"ScheduleFiling": null
}
],
"ErrorRecords": null
},
"Errors": null
}