TIN Matching API Integration: A Developer's Guide

Everything you need to integrate TINCorrect's TIN matching API into your application: authentication, endpoints, code examples, and best practices.
At a Glance
The TINCorrect API is a REST API that lets you verify name/TIN combinations against IRS records programmatically. Authenticate with JWT tokens, submit single or batch requests via HTTPS, and receive IRS result codes with plain-language explanations in the JSON response. Full API documentation is available.

Why Integrate TIN Matching via API?

The IRS TIN Matching Program has no API. It offers only a manual web interface for interactive matching (25 records at a time) and a file-upload workflow for bulk matching. Neither approach integrates with your existing systems. That means your team must manually export data, upload files, wait for results, and then import those results back into your ERP or vendor management platform.

The TINCorrect API eliminates this manual loop. Your application can submit a name/TIN pair, retrieve the result in seconds, and continue its workflow based on the IRS response. Here are the most common use cases:

  • Vendor onboarding: Verify TINs at the moment a new vendor submits their W-9, before they enter your system.
  • Payment processing: Confirm TIN validity before issuing a payment to a 1099-reportable payee.
  • 1099 preparation: Batch-verify your entire vendor database programmatically before filing season.
  • ERP integration: Embed TIN verification directly into your procurement or accounts payable workflow.
  • Multi-tenant platforms: If you build software for vendor compliance, offer TIN matching as a feature to your users.
API Integration Patterns TINCorrect REST API Onboarding Form Backend Server 1. VENDOR ONBOARDING ERP System Cron Job 2. ERP BATCH Payment Request TIN Check OK? Release Payment 3. PAYMENT PIPELINE POST /TinRequest POST /BulkTinRequest POST /TinRequest

API Overview

The TINCorrect API follows REST conventions over HTTPS. All requests and responses use JSON. The base URL is:

https://api.tincorrect.com

Full endpoint documentation, including request schemas, response schemas, and interactive testing, is available in the TINCorrect API reference.

Authentication

The TINCorrect API uses JSON Web Tokens (JWT) for authentication. Here is how the authentication flow works:

Step 1: Enable API Access

Create a TINCorrect account, verify the account email address, and contact TINCorrect support to have API access allowed. Once access is allowed, enable it from the API Access page in your account. The API uses the email address and password for that API-enabled account; it does not issue a separate client ID and client secret.

Step 2: Request a JWT Token

Send the API-enabled account credentials to the token endpoint. JSON and form URL encoded requests are supported:

POST /Token
Content-Type: application/json

{
  "username": "your-account-email",
  "password": "your-account-password"
}

A successful response includes a bearer token that is valid for 24 hours:

{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "token_type": "bearer",
  "expires_in": "86399",
  "userName": "your-account-email",
  "issued": "Wed, 02 Sep 2026 16:00:00 GMT",
  "expires": "Thu, 03 Sep 2026 16:00:00 GMT"
}

Step 3: Include the Token in Requests

Pass the JWT token in the Authorization header of every subsequent API call:

Authorization: Bearer eyJhbGciOiJIUzI1NiIs...

Tokens expire after the duration specified in expires_in. Cache the token securely and request a new one before it expires. Do not request a new token for every API call.

Endpoints

Single TIN Match

Submit a single name/TIN combination. The API accepts the request asynchronously and returns an integer request ID:

POST /TinRequest
Authorization: Bearer {token}
Content-Type: application/json

{
  "tin": "312345679",
  "name": "Demo"
}

The response body is the request ID:

12345

Wait a few seconds, then retrieve the result with the same bearer token. Do not poll more often than once every two seconds; a three-to-five-second interval is recommended:

GET /TinRequest/12345
Authorization: Bearer {token}

The result object includes requestId, tin, name, irsResultId, resultDescription, resultCategory, requestDate, and additionalResults. While processing is still underway, irsResultId is null and resultDescription is Processing. The irsResultId field corresponds to the standard IRS TIN matching result codes.

Test Requests

TINCorrect provides canned API results without a separate sandbox host. Use Demo as the name and a valid nine-digit, non-repeating, non-sequential TIN. The first digit selects the result code from 0 through 8, and Demo requests do not consume search credits. The account must still have at least one available credit before it can submit a TIN request. For example, the request above uses a TIN beginning with 3 and returns result code 3.

Batch TIN Match

Submit up to 100,000 name/TIN pairs in a single asynchronous bulk request:

POST /BulkTinRequest
Authorization: Bearer {token}
Content-Type: application/json

{
  "tinPairs": [
    { "tinType": 1, "tin": "312345679", "name": "Acme Corporation", "accountNumber": "V-001" },
    { "tinType": 2, "tin": "412345679", "name": "Jane Smith", "accountNumber": "V-002" }
  ],
  "email": "completion-notification-email"
}

tinType is optional: use 1 for EIN, 2 for SSN, or 3 when the type is unknown. accountNumber is an optional identifier, up to 20 alphanumeric characters, that you can use to map results back to your records. email is optional; when omitted, the completion notification is sent to the authenticated account email address.

67890

Use the returned integer ID with GET /BulkTinRequest/{id} to retrieve status and JSON results. Add the optional maskTins=true query parameter to return only the final four digits of each TIN; masking defaults to true. Use GET /BulkTinRequestResultFile/{id} to download the results as a file.

Asynchronous API Request Flow Client App TINCorrect API IRS POST /Token (account credentials) access_token returned AUTH POST /TinRequest returns request ID Process name + TIN Result code stored VERIFY GET /TinRequest/{id} JSON result + description RESULT TINCorrect API Sequence Flow

Polling and Retry Behavior

Single and bulk TIN checks are asynchronous. After receiving a request ID, wait three to five seconds before retrieving the result. Do not poll GET /TinRequest/{id} more often than once every two seconds. If the API returns HTTP 429 or a transient 5xx response, use bounded exponential backoff before retrying. Do not resubmit the original POST merely to check its status; retrieve the existing request by ID.

Error Handling

The API uses standard HTTP status codes. Response bodies vary by endpoint, so inspect the returned body and use the interactive API reference for the current request and response schemas:

Status Code Meaning Common Cause
200 Success The request was accepted or the requested result was returned.
400 Bad Request Invalid JSON, failed validation, an invalid TIN format, or insufficient search credits.
401 Unauthorized Invalid account credentials or a missing, expired, or invalid bearer token.
404 Not Found The request ID does not exist or does not belong to the authenticated account.
429 Too Many Requests Requests are being made too frequently. Wait and retry with backoff.
500 Internal Server Error Unexpected server error. Retry after a short delay.

Handling Delayed Results

The IRS TIN Matching system has scheduled maintenance windows and occasional unplanned outages. Because TINCorrect processes checks asynchronously, an accepted request can remain in Processing while a downstream service is unavailable. Your application should:

  • Retain the request ID and retrieve the same request again later
  • Increase the polling delay gradually when a result remains in processing
  • Set a maximum polling duration and surface a pending state rather than blocking indefinitely
  • Optionally, allow the user workflow to continue and verify the TIN asynchronously

Submit Your TIN Data

Upload names and TIN/EIN combinations via spreadsheet, single entry, or API. We support up to 100,000 records per batch.

Verify Against the IRS

TINCorrect validates each name/TIN pair directly against the IRS TIN Matching Program. Real-time results in seconds.

Get Your Results

Download match results with detailed IRS codes. Export to CSV, PDF, or Excel for your records and audit trail.

Integration Use Cases

Vendor Onboarding Workflow

The most impactful integration point is vendor onboarding. When a vendor submits their information (typically via a W-9 form), your system can submit the name/TIN combination and retrieve the result a few seconds later. If irsResultId is 0, the vendor can proceed through onboarding. If the result is a mismatch, the system can prompt the vendor to correct their information before they are added to your vendor database.

This "verify at the gate" approach means you never add a vendor with unverified or mismatched TIN data. It eliminates downstream problems like CP2100 notices, failed 1099 filings, and backup withholding.

Payment Processing Gate

For organizations that need to ensure compliance before issuing payments, the API can serve as a verification gate in the payment approval workflow. Before a payment above the 1099 reporting threshold is released, the system checks whether the payee's TIN has been verified within the last 12 months. If not, it triggers a real-time match and holds the payment until verification completes.

Year-End Batch Verification

While the web-based bulk upload works well for ad-hoc batch matching, the API batch endpoint allows you to automate the entire process. Schedule a job to extract 1099-reportable vendors from your database, submit them to the batch endpoint, and process the results, all without manual intervention. This is particularly valuable for year-end 1099 preparation.

Multi-Tenant SaaS Platforms

If you build software that serves AP teams or tax professionals, integrating the TINCorrect API lets you offer TIN verification as a native feature of your platform. Your users get the benefit of IRS-level TIN matching without needing their own TINCorrect account or IRS e-Services registration.

Integration Example: Submit and Poll Vendor Verification Form Name Acme Corporation TIN 12-3456789 Verify TIN Request Status ✓ Request Accepted Poll again in 3-5 seconds Vendor: Acme Corporation TIN: ***-**-6789 Status: Processing Request ID: 12345 1. POST /TinRequest with bearer token and JSON body 2. Receive an integer request ID 3. GET /TinRequest/{id} after 3-5 seconds POST /TinRequest, then poll GET /TinRequest/{id}

Best Practices

Cache Tokens, Not Results

Cache your JWT token securely and reuse it until it approaches its 24-hour expiration. Do not request a new token for every API call. However, do not treat an old TIN match as permanent; payee information can change, so re-verify according to your compliance policy.

Use Account Numbers

Include the optional accountNumber on each pair in a bulk request. This makes it straightforward to map results back to your vendor records without relying on name or TIN matching, which can be error-prone if you have similar records.

Handle All Result Codes

Do not just check whether irsResultId is 0. Each result code has a different meaning and may require a different workflow in your application. Also treat a null irsResultId as an incomplete request rather than a mismatch.

Log Everything

Keep an audit trail of request IDs, timestamps, result codes, and corrective actions. Mask or omit TINs before writing application logs; the single-request API result includes the submitted TIN. A careful audit trail can support reasonable cause documentation and helps with debugging integration issues.

Implement Retry Logic

Network and downstream service errors happen. Use bounded exponential backoff for HTTP 429 and transient 5xx responses. Correct 400 responses before trying again, and obtain a fresh token after an expired-token 401 response.

Secure Your Credentials

Store API credentials in environment variables or a secrets manager. Never hardcode them in source code, commit them to version control, or expose them in client-side JavaScript.

Getting Started

  1. Create a TINCorrect account
  2. Verify your email address and ask TINCorrect support to allow API access
  3. Enable API access from your account's API Access page
  4. Review the full API documentation
  5. Use the Demo name convention to test canned result codes without consuming credits
  6. Integrate into your staging environment
  7. Deploy to production

Need help with your integration? Our developer support team is available via the dashboard. For a broader understanding of TIN matching concepts, visit our complete TIN matching guide, or explore how the top TIN matching services compare on API capabilities.

Ken Ham
Author
Ken Ham
Founder at TINCorrect

Passionate about making tax identity verification simple so businesses can focus on what matters.

   Help