Tin-matching
Read real-time TIN credits and prices
Read available credits, current packages, account version, pricing digest and required service terms.
/api/v1/tin-matching/credits- 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
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.
These operations require access to all account filers, including the authorizing member’s access. To permit credit purchases, enable Real-time TIN matching credits in both account Order permissions and the connection Limits, choose a saved credit card and set positive spending limits. Buying credits requires payment-management authority. Deposit balance and payment terms cannot fund credit packs.
Available credits are a lower bound when additional_lots is true. Pack credits remain valid for twelve months from purchase.
curl --request GET 'https://api.efilemagic.com/api/v1/tin-matching/credits' \
--header 'Authorization: Bearer <access-token>'Replace placeholders with your own values. Use the API resource origin provided for your environment.
Request fields
0 fieldsNo request fields are required.
curl --request GET 'https://api.efilemagic.com/api/v1/tin-matching/credits' \
--header 'Authorization: Bearer <access-token>'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
9 fieldsaccount_versionAlways returnedinteger
Minimum: 0.
additional_lotsAlways returnedboolean
True means available is a lower bound from the first 100 unexpired lots.
availableAlways returnedinteger
Minimum: 0.
credit_validity_monthsAlways returned12
Value: 12.
currencyAlways returned"USD"
Value: "USD".
enabledAlways returnedboolean
Type: boolean.
packagesAlways returnedarray<object>
Maximum items: 64.
Nested fields (2)
capacityAlways returnedinteger
Minimum: 0.
price_minorAlways returnedinteger
Minimum: 0.
pricing_digestAlways returnedstring
Type: string.
terms_versionAlways returnedstring
Type: string.
{
"data": {
"account_version": "integer",
"additional_lots": "boolean",
"available": "integer",
"credit_validity_months": "12",
"currency": "\"USD\"",
"enabled": "boolean",
"packages": "array<object>",
"pricing_digest": "string",
"terms_version": "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.
- 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.