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 | Mandatory | String |
accountType | Type of account, either 'PF' for personal or 'PM' for business | Mandatory | String |
consent | Consent to process the data | Mandatory | Boolean |
callbackUrl | URL to receive the callback with results | Mandatory | String |
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 |
statusCode | HTTP status code | Integer |
status | Status of the request, e.g., 'SUCCESS' | String |
message | Descriptive message about the request status | String |
output | Object containing detailed RFC information | Object |
output.rfc | RFC number as originally requested | String |
output.curp | CURP associated with the RFC (if available) | String |
output.name | Name associated with the RFC | String |
output.companyName | Company name if 'PM' account type | String |
output.email | Contact email associated with the RFC | 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!