QueryMexicoTaxInfo

GET/prism/external/queryTaxInfo-20%$0.05 USD/call$0.04 USD/call

0.04 USDT per matched tax response at the current discount, including CURP-to-RFC conversion. Failed conversions, failed lookups and unmatched records are not charged.

Look up Mexican tax information using a CURP. APIPull converts the CURP to RFC internally. Conversion failures and unmatched records are not charged.

These examples use complete synthetic data. Use your own authorized input in Online Test to see the actual API response.

Start using this endpoint

  1. Create an account, or use your existing one.
  2. Copy your API token from Account → Security.
  3. Enter your token and your own authorized input in Online Test. Masked examples are format hints and must be replaced.

Online tests are subject to your account’s test quota and the gateway rules. For production calls, check the endpoint price and your available balance before sending. Open balance and recharge

Header Parameters

NameTypeRequiredDescription
X-Api-TokenstringRequiredYour platform API token

Parameters

NameInTypeRequiredExampleDescription
curpquerystringRequired-18-character Mexican CURP you are authorized to query.

Response 200JSON

{
  "status": 404,
  "message": "Not Found",
  "success": false,
  "data": null
}

Response Fields

NameTypeMeaningExampleDescription
statusintegerAPIPull business status. 200=Found; 404=Not Found with HTTP 200. Other failures use their HTTP status (400/401/402/403/405/429/502/503/504). Provider code 102 maps to 503; other nonzero or invalid provider codes map to 502.200APIPull business status. 200=Found; 404=Not Found with HTTP 200. Other failures use their HTTP status (400/401/402/403/405/429/502/503/504). Provider code 102 maps to 503; other nonzero or invalid provider codes map to 502.
messagestringFound, Not Found, or an APIPull error message. Provider diagnostic messages are not forwarded.FoundFound, Not Found, or an APIPull error message. Provider diagnostic messages are not forwarded.
successbooleanTrue only when a validated record is found. Empty results and errors are false. Only Found counts as a successful Online Test call.trueTrue only when a validated record is found. Empty results and errors are false. Only Found counts as a successful Online Test call.
dataobjectExisting business payload on Found; null on Not Found or error. No match is not charged. Tax responses omit in_baubap.-Existing business payload on Found; null on Not Found or error. No match is not charged. Tax responses omit in_baubap.

Rate limits & free allowance

Requests per second
2
Free empty results per day
10

Calls that return no matching record are not charged, up to this many per day. Beyond it, an empty result is billed at the unit price.

Balance is consumed at the time of the call. When it does not cover the call, the gateway returns 402 and the call is not made.

Error codes

Status codes observed in production, with how to handle each. Codes not listed here have not occurred.

CodeWhat it means and what to do
200Request reached the upstream source and a response was returned. This includes “no record found”, so check the payload, not just the code.
402Prepaid balance did not cover the call. The call was not made and nothing was charged. Top up and retry.
504Upstream source did not answer in time. Retry later; this is the normal failure mode for slow registries.
404Route does not exist, or the endpoint is no longer published.
401Missing or invalid API token.