Tin-matching
Run real-time TIN matching checks
Reserve existing credits for one to ten explicit name and Tax ID checks and return a durable batch.
/api/v1/tin-matching/checks- Authentication
- OAuth 2.0 access token
- Required scopes
tin_matching.writetax_ids.write- Idempotency key
- Required
- Rate-limit cost
- 25 units
How to use this endpoint
Real-time TIN matching uses explicit permissions: View TIN matching checks and credits, Run TIN matching checks, and Buy TIN matching credits. Running checks also requires Write tax IDs; discovering authorized saved funding requires View saved payment method status. Request additions on the existing integration, obtain approval, enable the reviewed scopes, and authorize again or mint a new service token.
Submit one to ten explicit name and Tax ID rows, keep their request IDs and Idempotency-Key on retry, and poll the original batch. Results mask Tax IDs and retain provider/result provenance. Standalone checks do not change saved filer or recipient validation status and do not submit filing or bulk TIN orders.
Supply a unique request_id UUID for each row. Reuse the complete original body and Idempotency-Key on retry. A new batch cannot reuse earlier request IDs. Admission reserves the whole batch or none; insufficient credits do not trigger a purchase. Each chargeable result uses one credit, including a compatible paid-cache result; invalid/duplicate provider request codes 4 and 5 and uncertain or unsent attempts do not consume a credit.
Retrying a request? Keep the same idempotency key and body after an uncertain result. A different key can repeat the action.
curl --request POST 'https://api.efilemagic.com/api/v1/tin-matching/checks' \
--header 'Authorization: Bearer <access-token>' \
--header 'Idempotency-Key: <unique-operation-key>' \
--header 'Content-Type: application/json' \
--data-binary @request.jsonReplace placeholders with your own values. Use the API resource origin provided for your environment.
Create request.json using the documented fields. Field descriptions are not sample values.
Request fields
1 fieldsrowsRequiredarray<object>
One to ten standalone name/TIN checks. Reserve one existing credit per row; retain every row UUID and input on retry. Minimum items: 1. Maximum items: 10.
Nested fields (4)
nameRequiredstring
Minimum characters: 1. Maximum characters: 200.
request_idRequiredstring (uuid)
Type: string (uuid).
tax_idRequiredstring
Nine-digit domestic TIN, with conventional separators accepted. Encrypted at rest; never returned. Each row requires a fresh request UUID, retained unchanged on retry.
tax_id_typeRequiredstring
Allowed values: "EIN", "SSN", "ITIN".
curl --request POST 'https://api.efilemagic.com/api/v1/tin-matching/checks' \
--header 'Authorization: Bearer <access-token>' \
--header 'Idempotency-Key: <unique-operation-key>' \
--header 'Content-Type: application/json' \
--data-binary @request.jsonReplace placeholders with your own values. Use the API resource origin provided for your environment.
Create request.json using the documented fields. Field descriptions are not sample values.
Retrying a request? Keep the same idempotency key and body after an uncertain result. A different key can repeat the action.
On success, data contains the fields below. meta includes api_version and request_id. Keep request_id when reporting a problem.
Response fields
5 fieldsbatch_idAlways returnedstring (uuid)
Type: string (uuid).
charged_creditsAlways returnedinteger
Minimum: 0.
created_atAlways returnedstring
Type: string.
rowsAlways returnedarray<object>
Maximum items: 10.
Nested fields (4)
masked_tax_idAlways returnedstring
Type: string.
nameAlways returnedstring
Type: string.
tax_id_typeAlways returnedstring
Allowed values: "EIN", "SSN", "ITIN".
verificationAlways returnedobject
Unknown fields are rejected.
Nested fields (10)
charged_creditsAlways returnedinteger
Minimum: 0.
modeAlways returnedstring | null
Allowed values: "local_simulator", "ats", "production".
provider_result_codeAlways returnedstring | null
Allowed values: "0", "1", "2", "3", "4", "5", "6", "7", "8".
request_idAlways returnedstring (uuid)
Type: string (uuid).
resultAlways returnedstring | null
Allowed values: null, "matched", "tin_missing_or_invalid", "tin_not_issued", "tin_name_mismatch", "invalid_request", "duplicate_request", "matched_unknown_ssn_type", "matched_unknown_ein_type", "matched_unknown_ssn_or_ein_type", "pending_other_request", "blocked_prior_request", "unknown_provider_result".
retry_atAlways returnedstring | null
Type: string | null.
sourceAlways returnedstring | null
Allowed values: "cache", "irs", "simulator".
stateAlways returnedstring
Allowed values: "reserved", "sending", "result_recorded", "completed", "released", "uncertain".
subjectAlways returnedobject
Unknown fields are rejected.
Nested fields (3)
kindAlways returned"standalone"
Value: "standalone".
recipient_idAlways returnednull
Type: null.
standaloneAlways returnedobject
Unknown fields are rejected.
Nested fields (2)
batch_idAlways returnedstring (uuid)
Type: string (uuid).
request_idAlways returnedstring (uuid)
Type: string (uuid).
validated_atAlways returnedstring | null
Type: string | null.
stateAlways returnedstring
Allowed values: "processing", "completed".
{
"data": {
"batch_id": "string (uuid)",
"charged_credits": "integer",
"created_at": "string",
"rows": "array<object>",
"state": "string"
},
"meta": {
"api_version": "v1",
"request_id": "string"
}
}Successful response structure. This outline shows field types, not a response to copy. Expand Response fields for nested properties and optional values.
Errors to handle
Errors use {error: {code, message}, meta}. Check the code and message before retrying. Authentication, validation and availability errors can occur before the operation runs.
- 400
invalid_request - Check required fields, selectors and supported values.
- 401
invalid_token - Obtain a valid OAuth token for this resource. Check its expiry and current authorization.
- 403
insufficient_scope - Request the listed scopes through the application's authorization flow.
- 403
forbidden - Check the connection's permissions and allowed filers. More scopes alone may not grant access.
- 404
not_found - Check the resource ID and its owning filer. Batch reads report missing IDs as documented.
- 409
conflict - Read the current state and resolve the conflict. Do not change the body under an existing idempotency key.
- 412
precondition_failed - Read the current version or preview again; a required precondition has changed.
- 422
validation_failed - Correct the reported validation issues before retrying.
- 429
rate_limited - Wait for Retry-After before retrying. Avoid concurrent retries.
- 500
internal_error - Retain request_id and retry an uncertain result with the same body and idempotency key.
- 503
service_unavailable - Retry with bounded backoff, preserving the body and idempotency key.
- 402
service_capacity_required - The entire batch requires sufficient existing TIN credits. Explicitly purchase an approved pack or reduce a new batch; never replace an uncertain request with new IDs.