Mexico RFC Fetch
The Mexico RFC Fetch API is designed to facilitate the retrieval of detailed information about Registered Federal Contributors (RFC) in Mexico. This asynchronous API mechanism involves two API calls: the first to submit a request and the second to retrieve the result either via a webhook callback or a direct fetch using the request ID.
This API is beneficial for financial institutions, tax advisors, and businesses that need to verify the authenticity of RFC details either for individuals (Personal Finance - PF) or entities (Personal Morales - PM). It supports compliance checks, customer verification during onboarding, and ensures accurate tax-related documentation.
Initiate the process by submitting the RFC data:
Parameter | Description | Optional/Mandatory | Data Type |
---|---|---|---|
rfc | The RFC number to retrieve data for Please see supported regex below. | Mandatory | String |
accountType | Type of account, either 'PF' for individual or 'PM' for business/legal entitiy | Mandatory | String |
consent | Consent to process the data | Mandatory | Boolean |
callbackUrl | URL to receive the callback with results | Optional | String |
RFC Input Field Regex :
For individuals, it consists of 13 characters (4 letters followed by 6 digits and 3 alphanumeric characters) and for legal entities (and certain legal arrangements), it consists of 12 characters (3 letters followed by 6 digits and 3 alphanumeric characters).
The first letters (4 or 3, respectively) belong to the name, the next 6 digits are the date of birth or date of incorporation, and the last 3 (or 2, for legal entities) belong to the check digits (homoclave).
The initial API call provides a processing status:
Parameter | Description | Data Type |
---|---|---|
requestId | Unique identifier for the request | String |
statusCode | Status code of the request (102 = Processing) | Integer |
status | Status of the request, e.g., 'PROCESSING' | String |
Retrieve the results using the requestId:
Parameter | Description | Optional/Mandatory | Data Type |
---|---|---|---|
requestId | The requestId returned from the first API call | Mandatory | String |
The final data can be fetched or received through the webhook:
The detailed response includes the original input and the fetched RFC details.
Parameter | Description | Data Type |
---|---|---|
requestId | Unique identifier for the retrieval request | String |
input | Object containing detailed RFC information | Object |
input.rfc | RFC provided in the input | String |
input.accountType | account Type provided in the input | String |
input.consent | consent provided in the input | boolean |
status | Status of the request, e.g., 'SUCCESS' | String |
result | Object containing detailed RFC information | Object |
result.rfc | RFC number as originally requested | String |
result.state | Current status of the RFC whethere "Active" or not | String |
result.type | Type of the RFC | String |
result.curp | CURP associated with the RFC (if available) | String |
result.name | Name associated with the RFC | String |
result.orgName | Company name if 'PM' account type | String |
result.email | Contact email associated with the RFC | String |
result.issueDate | Issue date of RFC | String |
result.expiryDate | Expiry date of RFC | String |
result.counselRfc | RFC of the counsel | String |
result.counselCurp | Curp of the counsel | String |
Field | Type | Description |
---|---|---|
name | string | Text displayed on the screen explaining error type. |
reason | string | Reason for the error. |
status | number | HTTP status code. |
message | string | Error message indicating an upstream error. |
type | string | Error type. |
statusCode | number | Status code representing the error scenario. |
Getting help
Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.
You can reach out to us at [email protected]. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.
We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
ο»Ώ