Tin-matching
Read real-time TIN matching results
Poll one to ten original check batches and receive masked row receipts.
/api/v1/tin-matching/checks/get_many- Authentication
- OAuth 2.0 access token
- Required scopes
tin_matching.read- Idempotency key
- Not required
- Rate-limit cost
- 5 units
How to use this endpoint
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.
Inspect the batch and row states, provider_result_code, mode, source, charged_credits and retry_at. Completion alone is not a name/TIN match. An uncertain request is not automatically sent again; preserve its receipt and duplicate-protection window.
Request example
curl --request POST 'https://api.efilemagic.com/api/v1/tin-matching/checks/get_many' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json' \
--data '{"batch_ids":["11111111-1111-4111-8111-111111111111"]}'Replace placeholders with your own values. Use the API resource origin provided for your environment.
Request fields
1 fieldsbatch_idsRequiredarray<string (uuid)>
One to ten standalone batch IDs, in the desired response order. Minimum items: 1. Maximum items: 10. Items must be unique.
Request example
curl --request POST 'https://api.efilemagic.com/api/v1/tin-matching/checks/get_many' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json' \
--data '{"batch_ids":["11111111-1111-4111-8111-111111111111"]}'Replace placeholders with your own values. Use the API resource origin provided for your environment.
On success, data contains the fields below. meta includes api_version and request_id. Keep request_id when reporting a problem.
Response fields
2 fieldsitemsAlways returnedarray<object>
Maximum items: 10.
Nested fields (5)
batch_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".
missingAlways returnedarray<string (uuid)>
Maximum items: 10.
{
"data": {
"items": "array<object>",
"missing": "array<string (uuid)>"
},
"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.
- 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; retry with bounded backoff.
- 503
service_unavailable - Retry with bounded backoff.