TDS Reconciliation

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

FieldValue
MethodPOST
Endpoint/tds-recon/reconcile
Base URLhttps://uatapi.wowpe.in/api/api-module
Content-Typeapplication/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:

HeaderTypeMandatoryDescription
X-Client-IdStringYes*Client ID provided by WowPe.
X-Client-SecretStringYes*Client secret provided by WowPe.
Content-TypeStringYesapplication/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.

ModePurposeStatus
InvoiceLedgerCompares invoice-side TDS records against ledger TDS records.Verified with sample.
Other modes, such as Form 26AS or Form 168 comparisonCompares books against statement data supplied through form26As or form168.To be confirmed.

Request Parameters

ParameterTypeMandatoryDefaultDescription
roleStringYes—Party performing the reconciliation. Example: Deductor. Other supported values are to be confirmed.
modeStringYes—Reconciliation mode. Example: InvoiceLedger.
entityPanStringYes—PAN of the entity. Expected format: AAAAA9999A.
entityTanStringYes for Deductor—TAN of the entity. Expected format: AAAA99999A. Requirement for other roles is to be confirmed.
statementPanString / NullNonullPAN associated with the statement. Used in statement-based modes.
statementTypeString / NullNonullStatement type. Example: Form26AS. Used in statement-based modes.
statementIdString / NullNonullStatement identifier.
statementDownloadedAtString (ISO 8601) / NullNonullTimestamp indicating when the statement snapshot was downloaded.
periodStartString (Date)Yes—Inclusive start date of the reconciliation period.
periodEndString (Date)Yes—Inclusive end date of the reconciliation period. Must not be earlier than periodStart.
toleranceNumberNo0.01Allowed variance in currency units. Supported range is to be confirmed.
invoicesArrayYes in InvoiceLedger mode—Invoice-side TDS records.
ledgerArrayYes in InvoiceLedger mode—Ledger-side TDS records.
form26AsArray / NullNonullForm 26AS records. Row structure is to be confirmed.
form168Array / NullNonullForm 168 records. Row structure is to be confirmed.

TDS Record Parameters

The invoices and ledger arrays use the same record structure.

ParameterTypeMandatoryDescription
idStringRecommendedUnique row identifier. Returned in invoiceIds or ledgerIds.
invoiceReferenceStringMatching keyInvoice or document reference.
deductorTanStringMatching keyTAN of the deductor.
deducteePanStringMatching keyPAN of the deductee.
paymentCodeString / NullNoPayment code. Use null when not supplied.
sectionStringMatching keyTDS section. Example: 194C.
periodStartString (Date)Matching keyStart date of the period covered by the record.
periodEndString (Date)Matching keyEnd date of the period covered by the record.
expectedTdsNumberNoExpected TDS amount for the record.
tdsAmountNumberNoTDS amount actually recorded.
bookingStatusStringNoBooking status. Example: F. Allowed values are to be confirmed.
bookingStatusVerifiedBoolean / NullNoIndicates whether the booking status has been verified. null means unknown.
sourceRecordIdStringNoIdentifier of the source transaction.
isCorrectionBooleanNoIndicates whether the record is a correction.
reviewedBooleanNoOperator review status.
sourcesArrayNoSupporting 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.

ParameterTypeMandatoryDescription
fileStringNoOriginal file name.
pageOrRowStringNoPage, sheet, or row reference in the original file.
fieldString / NullNoOriginal field name.
rawValueString / NullNoOriginal 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

ParameterTypeDescription
statusCodeNumberEnvelope status. The sample returns 1 for success. Failure values are to be confirmed.
messageStringOverall response message.
dataObjectContains the reconciliation result.
data.messageStringReconciliation result message.
data.roleStringRole used for reconciliation. Returned in uppercase.
data.modeStringReconciliation mode used. Returned in uppercase.
data.periodStartString (Date)Start date of the reconciliation period.
data.periodEndString (Date)End date of the reconciliation period.
data.statementTypeString / NullStatement type used, when applicable.
data.statementFinancialYearString / NullFinancial year of the statement, when applicable.
data.statementIdString / NullStatement identifier returned in the response.
data.statementDownloadedAtString / NullStatement snapshot timestamp returned in the response.
data.reviewRequiredBooleanOverall review flag. The sample returns true, even when the record is matched.
data.toleranceNumberTolerance applied during reconciliation.
data.resultsArrayContains one result entry per reconciled group.

Result Parameters

Each entry in data.results contains the following fields:

ParameterTypeDescription
comparisonStringComparison performed. Example: InvoiceLedger.
matchBasisStringIdentity fields used to group the records.
deductorTanStringDeductor TAN associated with the group.
deducteePanStringDeductee PAN associated with the group.
sectionStringTDS section associated with the group.
paymentCodeString / NullPayment code associated with the group.
periodStartString (Date)Start date of the group period.
periodEndString (Date)End date of the group period.
invoiceReferenceStringInvoice reference associated with the group.
invoiceIdsArrayIDs of the invoice records in the group.
ledgerIdsArrayIDs of the ledger records in the group.
form26AsIdsArrayForm 26AS record IDs. Empty in InvoiceLedger mode.
form168IdsArrayForm 168 record IDs. Empty in InvoiceLedger mode.
expectedTdsNumber / NullExpected TDS amount from the invoice side.
ledgerTdsNumber / NullTDS amount recorded in the ledger.
form26AsTdsNumber / NullTDS amount according to Form 26AS. null when not compared.
form168TdsNumber / NullTDS amount according to Form 168. null when not compared.
varianceNumber / NullDifference between the compared amounts. Sign convention is to be confirmed.
stateStringReconciliation state. Example: Matched. Complete list of possible values is to be confirmed.
reviewRequiredBooleanIndicates whether the result group requires review.
invoiceAllocationResolvedBooleanIndicates whether invoice-to-ledger allocation was resolved without ambiguity.
issuesArrayIssues associated with the result group. Issue codes are to be confirmed.
sourcesArraySupporting 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 StatusCondition
200 OKReconciliation completed. Check reviewRequired, each result's state, and all issues.
400 Bad RequestSuggested for invalid or missing fields, malformed PAN/TAN, invalid period, or failed authentication.
499Suggested for client-cancelled requests.
500Suggested 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 OK response does not by itself confirm that the reconciliation is correct. Review data.reviewRequired, every data.results[].state, and all associated issues.
  • The sample response returns reviewRequired: true even though the result state is Matched and the variance is zero. Treat the output as evidence for review rather than a final decision.
  • The request accepts role and mode in title case, while the sample response echoes them in uppercase.
  • In the supplied InvoiceLedger sample, statementType is returned as null even though Form26AS was sent in the request. The guide indicates that statement fields may be ignored in this mode; confirm this behaviour with the API team.
  • Supply null for unknown amounts or statuses rather than 0, unless the API contract confirms otherwise. The API's handling of null values is to be confirmed.
  • The tolerance value 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.