QueryMexicoTaxInfo
/prism/external/queryTaxInfo-20%$0.05 USD/call$0.04 USD/call0.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
- Create an account, or use your existing one.
- Copy your API token from Account → Security.
- 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
| Name | Type | Required | Description |
|---|---|---|---|
X-Api-Token | string | Required | Your platform API token |
Parameters
| Name | In | Type | Required | Example | Description |
|---|---|---|---|---|---|
curp | query | string | Required | - | 18-character Mexican CURP you are authorized to query. |
Response 200JSON
{
"status": 404,
"message": "Not Found",
"success": false,
"data": null
}Response Fields
| Name | Type | Meaning | Example | Description |
|---|---|---|---|---|
status | integer | APIPull 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. | 200 | APIPull 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. |
message | string | Found, Not Found, or an APIPull error message. Provider diagnostic messages are not forwarded. | Found | Found, Not Found, or an APIPull error message. Provider diagnostic messages are not forwarded. |
success | boolean | True only when a validated record is found. Empty results and errors are false. Only Found counts as a successful Online Test call. | true | True only when a validated record is found. Empty results and errors are false. Only Found counts as a successful Online Test call. |
data | object | Existing 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.
| Code | What it means and what to do |
|---|---|
200 | Request reached the upstream source and a response was returned. This includes “no record found”, so check the payload, not just the code. |
402 | Prepaid balance did not cover the call. The call was not made and nothing was charged. Top up and retry. |
504 | Upstream source did not answer in time. Retry later; this is the normal failure mode for slow registries. |
404 | Route does not exist, or the endpoint is no longer published. |
401 | Missing or invalid API token. |
Real-time Mexican Data All API