Obtaining Opinión de cumplimiento

Intro

This API allows you to obtain your clients' compliance opinion, it connects to the SAT to obtain the most current data.

Important points

Request parameters

Service input parameters int he body

FieldTyperequiredlengthDescription
rfcStringtrue12- 13Provide a valid RFC.
It can be an RFC of a PM with a length of 12 characters or an RFC of a PF with a length of 13 characters
passwordStringtrue8Indicate the CIEC password.

Callback

🚧

This service is asynchronous

This service is asynchronous, so you will not receive the data immediately, only a response indicating that we received your request successfully.

If you want to receive the final response you should pool the get by id endpoint or define a callback

In order to receive callback data in your API you must define the following in the request headers::

header nameDescription
urlCallbackHeader to indicate the URL to which we will send the notifications with the response
xApiKeyCallbackHeader to assign an API key if you need to add security to your service

Successful response

This service is asynchronous, so you will not receive the data immediately, only a response indicating that we received your request successfully.

The response you will receive will be like this:

{
    "id": "67c213e50e3d5ed478259813",
    "createdAt": "2025-02-28T19:52:05.509619314Z",
    "finishedAt": "0001-01-01T00:00:00Z",
    "duration": 127,
    "status": "PENDING",
    "request": {
        "rfc": "ABC080220554",
        "password": "P4ssw0rd"
    }
}

As we indicated in the Callbacks section, in order to successfully retrieve the response, you must pool the get by id API or have defined callbacks.
In either case, you will receive the recovered data. To see these response examples, we suggest you review the http 200 examples in the examples section.

Response fields

Below we describe the fields you may receive in your response.


FieldsubfieldTypeDescription
folioStringRequested folio registered in the SAT
rfcStringRequested RFC
nombreStringName of the person or institution requested
respuestaStringIndicates the response of the compliance opinion
resultadoStringIndicates the result of the compliance opinion, the possible values are:

- positivo
- negativo
obligacionesArrayArray of obligations registered in the SAT
obligacionStringIndicates the name of the reported obligation
periodosStringIndicates the reporting period for the obligation, which can come in two forms.

- By year, "Anual / year" is reported, where "Anual" indicates that this obligation covers the entire year and "year" indicates the year reported, e.g. "Anual / 2022"
- By month, "month / year" is reported, where "month" indicates that this obligation covers the month provided and "year" indicates the year reported, e.g. "Enero / 2022"
creditosFiscalesArrayArray containing a list of strings with the tax credits found

Test the service (test cases)

We have included a query parameter in Sandbox to enable you to query the test cases that we created for running tests. To get a response, fill the testCaseId parameter with any of the following cases:

NumIdNameDescription
167aba5e0e7b5712f0fd80a3dCredenciales inválidasExample for incorrect credentials
267a39444cc2dd1fc611a440dNegativoIndicates a negative compliance opinion
367a523d0a655591273f00ba1PositivoIndicates a positive compliance opinion
467a523d92860d91fe5bedb47Sin obligaciones fiscalesIndicates an opinion of compliance without tax obligations

📘

Test your own test case

In case you want to test your own test case created in link, you can send in the testCaseId parameter the identifier of the test case you want to use.

For more information visit our knowledge center to know more about test cases

Language
Credentials
Header
Click Try It! to start a request and see the response here!