RFC validation service

RFC service

RFC service allows to validate a proof of fiscal situation.

Web service description

Validate RFC

This method performs the validation of an image of a RFC and get some information about the company to validate.

~/api/rfc

Parameters

Tag Type Required Description
rfcFile file yes Proof of RFC (Registro Federal de Contribuyentes) file type .jpg or .png.

Headers

Tag Type Required Description
apiKey string yes Customer key.
Answers document
Name Type Description
Correct:
valid boolean "Success"
data:
personType string Person type could be 1 - physical person, 2 - juridical person.
rfc string Registro Federal de Contribuyentes.
businessName string Legal name of the company.
name string Name.
lastName string Lastname.
secondLastName string Second lastname.
registerStatus string Status. Example: "ACTIVO".
emailContact string E-mail that was registered for contact.
startDate string Start date.
capitalRegime string Capital regime.
fiscalRegime string Fiscal regime.
fiscalRegimeDate string Fiscal regime Date
warnings:
code string Error code.
message string Error message.

Response service

{
  "valid": boolean,
  "data": {
    "personType": "string",
    "rfc": "string",
    "rfcDic":"string",
    "rfcBarcode":"string",
    "businessName": "string",
    "name": "string",
    "lastName": "string",
    "secondLastName": "string",
    "registerStatus": "string",
    "emailContact": "string",
    "startDate": "string",
    "capitalRegime": "string",
    "fiscalRegime": "string",
    "fiscalRegimeDate": "string",
    "legalAddress": {
      "street": "string",
      "externalNumber": "string",
      "internalNumber": "string",
      "road": "string",
      "zipCode": "string",
      "suburb": "string",
      "municipality": "string",
      "state": "string"
    }
  },
  "warnings": [
    {
      "code": "string",
      "message": "string"
    }
  ]
}

RFC by RFC

RFC service allows to validate a RFC.

Web service description

Validate RFC by RFC

This method performs the validation of a RFC and get some information about the company to validate.

~/api/rfc/validate

Parameters

Tag Type Required Description
rfc string yes RFC in string format. 12 characters for juridical person or 13 characters for physical persons.

Headers

Tag Type Required Description
apiKey string yes Customer key.
Answers document
Name Type Description
Correct:
valid boolean "Success"
data:
personType string Person type could be 1 - physical person, 2 - juridical person.
rfc string Registro Federal de Contribuyentes.
businessName string Legal name of the company.
name string Name of physical person.
registerStatus string Status. Example: "ACTIVO".
emailContact string E-mail that was registered for contact.
effectiveDate string Date since the RFC is valid.
warnings:
code string Error code.
message string Error message.

Response service

{
  "valid": boolean,
  "data": {
    "personType": "string",
    "rfc": "string",
    "businessName": "string",
    "name": "string",
    "registerStatus": "string",
    "emailContact": "string",
    "effectiveDate": "string"
  },
  "warnings": [
    {
      "code": "string",
      "message": "string"
    }
  ]
}

Service messages

Code Message Description
RFCS001 Failed to get data. When does not was possible to get data.
RFCS002 The file format is not correct. Contents an incorrect document, when the service receives file type .png, .jpg or .pdf or when the document does not is a proof of fiscal situation RFC.
RFCS003 Incorrect information. The information received is invalid or false.
RFCS004 The $0$ field is required. The request was received with the required fields empty or with blank spaces.
RFCS005 OCR failed. When OCR scanning failed.
RFCS006 File size is larger than expected. The size of the document is larger than 5MB.
RFCS007 Inconsistent data found. The OCR scanning get incorrect information of the document.
RFCS008 The document cannot be read. Was not possible to make the OCR scanning.
RFCS009 Unable to validate document with source. The service has issues to validate the contract number in CFE database.
RFCS010 The apiKey is not valid. The apikey is incorrect.
RFCS011 Response time has exceeded. The server takes a long time to deliver a response and cannot be obtained.
RFCS012 Server response failed. There is an error getting the response from the server.
RFCS013 RFC or BussinessName does not match with source. The RFC does not correspond to the company being consulted.
RFCS014 There are no certificates for the RFC. The RFC does not have any certificate to validate.
RFCS015 The structure is not correct. The RFC does not have a valid format.
RFCS016 SAT service unavailable. The service SAT is temporarily unavailable.
RFCS017 No matches found in SAT. The RFC is not present in SAT.
RFCS018 The legal address is incomplete. The legal address was readed incomplete.
RFCS019 The information associated to the RFC was not found. This corresponds to the scenario when the RFC doesn’t have certificates and do not is possible to get more information in the SAT.
RFCS020 The fiscalRegime and fiscalRegimeDate fields cannot be verified. The fiscalRegime and fiscalRegimeDate fields cannot be verified in the SAT.
RFCS021 RFC in the OCR process do not match RFC, RFCBarcode and RFCDic (Datos de Identificación del Contribuyente) fields in the OCR process do not match