Reconcile TDS records across invoices, books ledger, and supported tax statements. Compare TDS amounts, identify variances, and review matching results for each record group.
API Details
| Field | Value |
|---|---|
| Method | POST |
| Endpoint | /tds-recon/reconcile |
| Base URL | https://uatapi.wowpe.in/api/api-module |
| Content-Type | application/json |
Important – Base Path Confirmation: The supplied testing URL is https://uatapi.wowpe.in/api/api/api-module/tds-recon/reconcile, which contains a duplicated api segment. The running build's GST reconciliation route was found under /api/api-module/. Confirm the correct TDS Reconciliation URL with the API team before publishing.
Authentication
Include the following headers in every request:
| Header | Type | Mandatory | Description |
|---|---|---|---|
X-Client-Id | String | Yes* | Client ID provided by WowPe. |
X-Client-Secret | String | Yes* | Client secret provided by WowPe. |
Content-Type | String | Yes | application/json. |
The client ID and secret header scheme is marked for confirmation in the supplied integration guide. It is based on the GST Reconciliation authentication scheme and should be verified with the API team.
Modes
The reconciliation mode is selected using the mode parameter.
| Mode | Purpose | Status |
|---|---|---|
InvoiceLedger | Compares invoice-side TDS records against ledger TDS records. | Verified with sample. |
| Other modes, such as Form 26AS or Form 168 comparison | Compares books against statement data supplied through form26As or form168. | To be confirmed. |
Request Parameters
| Parameter | Type | Mandatory | Default | Description |
|---|---|---|---|---|
role | String | Yes | — | Party performing the reconciliation. Example: Deductor. Other supported values are to be confirmed. |
mode | String | Yes | — | Reconciliation mode. Example: InvoiceLedger. |
entityPan | String | Yes | — | PAN of the entity. Expected format: AAAAA9999A. |
entityTan | String | Yes for Deductor | — | TAN of the entity. Expected format: AAAA99999A. Requirement for other roles is to be confirmed. |
statementPan | String / Null | No | null | PAN associated with the statement. Used in statement-based modes. |
statementType | String / Null | No | null | Statement type. Example: Form26AS. Used in statement-based modes. |
statementId | String / Null | No | null | Statement identifier. |
statementDownloadedAt | String (ISO 8601) / Null | No | null | Timestamp indicating when the statement snapshot was downloaded. |
periodStart | String (Date) | Yes | — | Inclusive start date of the reconciliation period. |
periodEnd | String (Date) | Yes | — | Inclusive end date of the reconciliation period. Must not be earlier than periodStart. |
tolerance | Number | No | 0.01 | Allowed variance in currency units. Supported range is to be confirmed. |
invoices | Array | Yes in InvoiceLedger mode | — | Invoice-side TDS records. |
ledger | Array | Yes in InvoiceLedger mode | — | Ledger-side TDS records. |
form26As | Array / Null | No | null | Form 26AS records. Row structure is to be confirmed. |
form168 | Array / Null | No | null | Form 168 records. Row structure is to be confirmed. |
TDS Record Parameters
The invoices and ledger arrays use the same record structure.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
id | String | Recommended | Unique row identifier. Returned in invoiceIds or ledgerIds. |
invoiceReference | String | Matching key | Invoice or document reference. |
deductorTan | String | Matching key | TAN of the deductor. |
deducteePan | String | Matching key | PAN of the deductee. |
paymentCode | String / Null | No | Payment code. Use null when not supplied. |
section | String | Matching key | TDS section. Example: 194C. |
periodStart | String (Date) | Matching key | Start date of the period covered by the record. |
periodEnd | String (Date) | Matching key | End date of the period covered by the record. |
expectedTds | Number | No | Expected TDS amount for the record. |
tdsAmount | Number | No | TDS amount actually recorded. |
bookingStatus | String | No | Booking status. Example: F. Allowed values are to be confirmed. |
bookingStatusVerified | Boolean / Null | No | Indicates whether the booking status has been verified. null means unknown. |
sourceRecordId | String | No | Identifier of the source transaction. |
isCorrection | Boolean | No | Indicates whether the record is a correction. |
reviewed | Boolean | No | Operator review status. |
sources | Array | No | Supporting evidence associated with the record. |
Matching Logic
The observed matching basis is ExactIdentifiersPeriodAndInvoiceReference.
Records are grouped using the following fields:
- Deductor TAN
- Deductee PAN
- TDS section
- Payment code
- Period
- Invoice reference
Exact normalization rules, including trimming and case sensitivity, are to be confirmed.
Source Evidence Parameters
The optional sources array can contain supporting information about the original record.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
file | String | No | Original file name. |
pageOrRow | String | No | Page, sheet, or row reference in the original file. |
field | String / Null | No | Original field name. |
rawValue | String / Null | No | Original extracted value. |
Sample Request
The following example demonstrates InvoiceLedger reconciliation.
Request Body
{
"role": "Deductor",
"mode": "InvoiceLedger",
"entityPan": "ABCDE1234F",
"entityTan": "ABCD12345E",
"statementPan": null,
"statementType": "Form26AS",
"statementId": null,
"statementDownloadedAt": null,
"periodStart": "2025-04-01",
"periodEnd": "2026-03-31",
"tolerance": 0.01,
"invoices": [
{
"id": "I",
"invoiceReference": "INV-1",
"deductorTan": "ABCD12345E",
"deducteePan": "ABCDE1234F",
"paymentCode": null,
"section": "194C",
"periodStart": "2025-04-01",
"periodEnd": "2026-03-31",
"expectedTds": 100,
"tdsAmount": 100,
"bookingStatus": "F",
"sourceRecordId": "tx1",
"bookingStatusVerified": null,
"isCorrection": false,
"reviewed": true,
"sources": [
{
"file": "synthetic.json",
"pageOrRow": "I",
"field": null,
"rawValue": null
}
]
}
],
"ledger": [
{
"id": "L",
"invoiceReference": "INV-1",
"deductorTan": "ABCD12345E",
"deducteePan": "ABCDE1234F",
"paymentCode": null,
"section": "194C",
"periodStart": "2025-04-01",
"periodEnd": "2026-03-31",
"expectedTds": 100,
"tdsAmount": 100,
"bookingStatus": "F",
"sourceRecordId": "tx1",
"bookingStatusVerified": null,
"isCorrection": false,
"reviewed": true,
"sources": [
{
"file": "synthetic.json",
"pageOrRow": "L",
"field": null,
"rawValue": null
}
]
}
],
"form26As": null,
"form168": null
}
cURL Request
curl --request POST 'https://uatapi.wowpe.in/api/api-module/tds-recon/reconcile' \
--header 'X-Client-Id: YOUR_CLIENT_ID' \
--header 'X-Client-Secret: YOUR_CLIENT_SECRET' \
--header 'Content-Type: application/json' \
--data-binary '@tds-reconcile.json'
Confirm the correct base path and authentication headers before using this request in production.
Sample Response
HTTP Status: 200 OK
The response is wrapped in a statusCode, message, and data envelope.
{
"statusCode": 1,
"message": "Reconciliation completed; results require review.",
"data": {
"message": "Reconciliation completed; results require review.",
"role": "DEDUCTOR",
"mode": "INVOICELEDGER",
"periodStart": "2025-04-01",
"periodEnd": "2026-03-31",
"statementType": null,
"statementFinancialYear": null,
"statementId": null,
"statementDownloadedAt": null,
"reviewRequired": true,
"tolerance": 0.01,
"results": [
{
"comparison": "InvoiceLedger",
"matchBasis": "ExactIdentifiersPeriodAndInvoiceReference",
"deductorTan": "ABCD12345E",
"deducteePan": "ABCDE1234F",
"section": "194C",
"paymentCode": null,
"periodStart": "2025-04-01",
"periodEnd": "2026-03-31",
"invoiceReference": "INV-1",
"invoiceIds": ["I"],
"ledgerIds": ["L"],
"form26AsIds": [],
"form168Ids": [],
"expectedTds": 100,
"ledgerTds": 100,
"form26AsTds": null,
"form168Tds": null,
"variance": 0,
"state": "Matched",
"reviewRequired": true,
"invoiceAllocationResolved": true,
"issues": [],
"sources": [
{
"file": "synthetic.json",
"pageOrRow": "I",
"field": null,
"rawValue": null
},
{
"file": "synthetic.json",
"pageOrRow": "L",
"field": null,
"rawValue": null
}
]
}
]
}
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
statusCode | Number | Envelope status. The sample returns 1 for success. Failure values are to be confirmed. |
message | String | Overall response message. |
data | Object | Contains the reconciliation result. |
data.message | String | Reconciliation result message. |
data.role | String | Role used for reconciliation. Returned in uppercase. |
data.mode | String | Reconciliation mode used. Returned in uppercase. |
data.periodStart | String (Date) | Start date of the reconciliation period. |
data.periodEnd | String (Date) | End date of the reconciliation period. |
data.statementType | String / Null | Statement type used, when applicable. |
data.statementFinancialYear | String / Null | Financial year of the statement, when applicable. |
data.statementId | String / Null | Statement identifier returned in the response. |
data.statementDownloadedAt | String / Null | Statement snapshot timestamp returned in the response. |
data.reviewRequired | Boolean | Overall review flag. The sample returns true, even when the record is matched. |
data.tolerance | Number | Tolerance applied during reconciliation. |
data.results | Array | Contains one result entry per reconciled group. |
Result Parameters
Each entry in data.results contains the following fields:
| Parameter | Type | Description |
|---|---|---|
comparison | String | Comparison performed. Example: InvoiceLedger. |
matchBasis | String | Identity fields used to group the records. |
deductorTan | String | Deductor TAN associated with the group. |
deducteePan | String | Deductee PAN associated with the group. |
section | String | TDS section associated with the group. |
paymentCode | String / Null | Payment code associated with the group. |
periodStart | String (Date) | Start date of the group period. |
periodEnd | String (Date) | End date of the group period. |
invoiceReference | String | Invoice reference associated with the group. |
invoiceIds | Array | IDs of the invoice records in the group. |
ledgerIds | Array | IDs of the ledger records in the group. |
form26AsIds | Array | Form 26AS record IDs. Empty in InvoiceLedger mode. |
form168Ids | Array | Form 168 record IDs. Empty in InvoiceLedger mode. |
expectedTds | Number / Null | Expected TDS amount from the invoice side. |
ledgerTds | Number / Null | TDS amount recorded in the ledger. |
form26AsTds | Number / Null | TDS amount according to Form 26AS. null when not compared. |
form168Tds | Number / Null | TDS amount according to Form 168. null when not compared. |
variance | Number / Null | Difference between the compared amounts. Sign convention is to be confirmed. |
state | String | Reconciliation state. Example: Matched. Complete list of possible values is to be confirmed. |
reviewRequired | Boolean | Indicates whether the result group requires review. |
invoiceAllocationResolved | Boolean | Indicates whether invoice-to-ledger allocation was resolved without ambiguity. |
issues | Array | Issues associated with the result group. Issue codes are to be confirmed. |
sources | Array | Supporting evidence records merged from the input records. |
Error Handling
The supplied integration guide marks the following HTTP status mappings as TO CONFIRM. Treat them as proposed mappings until verified against the API controller.
| HTTP Status | Condition |
|---|---|
200 OK | Reconciliation completed. Check reviewRequired, each result's state, and all issues. |
400 Bad Request | Suggested for invalid or missing fields, malformed PAN/TAN, invalid period, or failed authentication. |
499 | Suggested for client-cancelled requests. |
500 | Suggested for unhandled server errors. |
The failure value for statusCode and the complete error response structure are not specified in the supplied guide.
Important Notes
- An HTTP
200 OKresponse does not by itself confirm that the reconciliation is correct. Reviewdata.reviewRequired, everydata.results[].state, and all associatedissues. - The sample response returns
reviewRequired: trueeven though the result state isMatchedand the variance is zero. Treat the output as evidence for review rather than a final decision. - The request accepts
roleandmodein title case, while the sample response echoes them in uppercase. - In the supplied
InvoiceLedgersample,statementTypeis returned asnulleven thoughForm26ASwas sent in the request. The guide indicates that statement fields may be ignored in this mode; confirm this behaviour with the API team. - Supply
nullfor unknown amounts or statuses rather than0, unless the API contract confirms otherwise. The API's handling ofnullvalues is to be confirmed. - The
tolerancevalue is expressed in currency units, not as a percentage. Whether tolerance applies per field or per group is to be confirmed. - The complete list of reconciliation states, issue codes, supported roles, and statement-based modes must be confirmed before relying on them in production.
What's Next
Review every reconciliation result group, variance, and issue.
Resolve flagged records against the original invoices, ledger entries, and supporting source documents before using the reconciliation output for TDS return filing or accounting.
