Generate RFC PF

Intro

This API is meant to generate an RFC with homoclave for Personas Físicas. Kiban cloud use the algorithm provided by the SAT to generate the exact RFC.
In the answer the complete RFC with the homoclave will be included.

Important Points

Mandatory Fields

All the fields in the body are mandatory and kiban cloud performs validations on the information sent to detect special characters or incorrect formats.

fieldtyperequiredlengthDescription
nombresAlphabeticYesN/APerson's names.
apellidoPaternoAlphabeticYesN/APerson's last name.
apellidoMaternoAlphabeticYesN/APerson's second last name.
fechaNacimientoDateYes10Birthdate with format yyyy-mm-dd

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
1664230608659f0c02fcd3f0cRespuesta exitosaIndicates one successful response

📘

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

Successful response

Inside the response object you will only get the next field.

subfieldDescription
rfcWill contain the generated RFC.
{
    "id": "656004202bacd50889a5840d",
    "createdAt": "2023-11-24T02:02:08.170943657Z",
    "finishedAt": "2023-11-24T02:02:08.171039692Z",
    "duration": 0,
    "status": "SUCCESS",
    "request": {
        "apellidoMaterno": "romero",
        "apellidoPaterno": "lopez",
        "fechaNacimiento": "1989-11-27",
        "nombres": "edgar"
    },
    "response": {
        "rfc": "GOGR911205JG7"
    }
}

Listing the possible not success responses

Required fields

You will get a 400 bad request error when any of the required fields are not provided.

{
    "apellidoMaterno": "EMPTY_ERROR; can't be empty; must have at least lastName or maidenName",
    "apellidoPaterno": "EMPTY_ERROR; can't be empty; must have at least lastName or maidenName",
    "fechaNacimiento": "FORMAT_ERROR;  expected format: yyyy-mm-dd",
    "nombres": "EMPTY_ERROR; can't be empty"
}

Invalid Format

Some of the fields contain illegal characters or formatting, the service will return the a 400 bad request

{
    "apellidoMaterno": "CONTAINS SPECIAL CHARS",
    "apellidoPaterno": "CONTAINS SPECIAL CHARS",
    "fechaNacimiento": "FORMAT_ERROR;  expected format: yyyy-mm-dd",
    "nombres": "CONTAINS SPECIAL CHARS"
}

Unauthorized

It means that the provided API is incorrect and that you are not authorized to access it. You will not receive a body, only a 401 HTTP code.

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