API to generate a Persona Moral RFC
Intro
This API is meant to generate an RFC with homoclave for Personas Morales. 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.
field | type | required | length | Description |
---|---|---|---|---|
razonSocial | Alphabetic | Yes | N/A | Name of the company. |
fechaConstitucion | Date | Yes | 10 | Company registration date 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:
Num | Id | Name | Description |
---|---|---|---|
1 | 66423072bb869119db3517b4 | Respuesta exitosa | Indicates 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.
subfield | Description |
---|---|
rfc | Will contain the generated RFC. |
{
"id": "656007582bacd50889a58412",
"createdAt": "2023-11-24T02:15:52.03976724Z",
"finishedAt": "2023-11-24T02:15:52.039850907Z",
"duration": 0,
"status": "SUCCESS",
"request": {
"fechaConstitucion": "2013-11-06",
"razonSocial": "INDUSTRIAS KIBAN"
},
"response": {
"rfc": "NKO080220554"
}
}
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.
{
"fechaConstitucion": "FORMAT_ERROR; expected format: yyyy-mm-dd",
"razonSocial": "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
{
"fechaConstitucion": "FORMAT_ERROR; expected format: yyyy-mm-dd"
}
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.