E-File Magic

Tin-matching

Purchase real-time TIN matching credits

Explicitly buy one currently offered credit pack using an authorized saved-card alias.

POST
/api/v1/tin-matching/credits/purchase
Authentication
OAuth 2.0 access token
Required scopes
tin_matching.purchase
Idempotency key
Required
Rate-limit cost
10 units

Request fields

8 fields
capacityRequiredinteger

Credit quantity of one package offered by the credits endpoint. Minimum: 1. Maximum: 1000000000.

expected_policy_versionRequiredstring

Exact policy_version string returned by the funding endpoint. Exact quoted decimal version from funding. Preserve as a string; never convert through a JavaScript Number. Pattern: ^[1-9][0-9]*$

expected_total_minorRequiredinteger

Selected credit package price in USD cents, copied from the credits endpoint. Minimum: 1.

expected_versionRequiredinteger

Exact account_version returned by the credits endpoint; retain it on an uncertain purchase retry. Minimum: 0.

funding_aliasRequiredstring

Saved-card alias explicitly authorized for TIN credit purchases, returned by the funding endpoint. Minimum characters: 1. Maximum characters: 64.

pricing_digestRequiredstring

Exact pricing_digest returned with the current credit packages. Pattern: ^[0-9a-fA-F]{64}$

terms_acceptedRequiredtrue

Records the caller's acceptance of the specified terms. Value: true.

terms_versionRequiredstring

Current service terms version returned by the credits endpoint. Minimum characters: 1. Maximum characters: 128.

Complete request schema: ApiTinmPurchaseRequest

cURL request
curl --request POST 'https://api.efilemagic.com/api/v1/tin-matching/credits/purchase' \
  --header 'Authorization: Bearer <access-token>' \
  --header 'Idempotency-Key: <unique-operation-key>' \
  --header 'Content-Type: application/json' \
  --data-binary @request.json

Replace 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.