Intro
With this API, you can update a Buró de Crédito password.
Important points
Request
To validate the password is necessary to provide the next fields
field | type | required | length | Description |
---|---|---|---|---|
clave | Alphanumeric | Yes | 10 | User code provided by the credit bureau for a physical person. |
contrasena | Alphanumeric | Yes | 8 | Provide the currently active password. |
nuevaContrasena | Alphanumeric | Yes | 8 | Provide the new password to assign. |
Successful response
To know the fields of a successful response you should see our example called Success in the response section.
![](https://files.readme.io/6bc08bb-Captura_de_pantalla_2023-12-29_a_las_6.55.14_p.m..png)
Inside the response object you will get the next field.
field Name | Description |
---|---|
nuevaContrasena | It will indicate the date new password that you assigned. |
{
"id": "65b445accff194bca956edfb",
"createdAt": "2024-01-26T17:52:12.717035-06:00",
"finishedAt": "2024-01-26T17:52:12.969958-06:00",
"duration": 252,
"status": "SUCCESS",
"request": {
"clave": "ABCDE4321",
"contrasena": "12345678",
"nuevaContrasena": "87654321"
},
"apiData": [
{
"url": "128.9.55.100:25400",
"duration": 132,
"request": {
"date": "2024-01-26T17:52:12.837139-06:00",
"body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bc-request-envelope version=\"1.0\">\n <bc-request>\n <credentials member=\"ABCDE4321\" password=\"12345678\"/>\n <service name=\"changePassword\">\n <param name=\"old-password\" value=\"12345678\"/>\n <param name=\"new-password\" value=\"87654321\"/>\n </service>\n </bc-request>\n</bc-request-envelope>\u0013"
},
"response": {
"date": "2024-01-26T17:52:12.969954-06:00",
"body": {
"nuevaContrasena": "1hg8nwJG"
},
"httpCode": 200
}
}
],
"response": {
"nuevaContrasena": "1hg8nwJG"
}
}
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 | 663567a9713cf2110a110676 | Cambio de contraseña credenciales inválidas | Indicates that the password could not be changed |
2 | 663567a9713cf2110a110675 | Cambio de contraseña exitoso | Indicates that the password was updated successfully |
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
Listing the possible NOT SUCCESS responses
Empty Error
You will get a 400 bad request error when you nor provide any of the parameters.
[
{
"code": "EMPTY_ERROR",
"message": "can't be empty",
"field": "clave"
},
{
"code": "EMPTY_ERROR",
"message": "can't be empty",
"field": "contrasena"
},
{
"code": "EMPTY_ERROR",
"message": "can't be empty",
"field": "nuevaContrasena"
}
]
Test case not found
If a test case parameter is not sent or a value other than those mentioned above is sent, the service will return the following error 400 bad request
[
{
"code": "EMPTY_ERROR",
"message": "test case not found",
"field": "testCase"
},
{
"code": "EMPTY_ERROR",
"message": "test case not found with given id",
"field": "testCaseId"
}
]
It is because you did not send the identifier of a testCase that you created in the test cases section within the kiban link tool, required in sandbox if you don't send testCaseId parameter.
Error Credentials
You will receive a 401 bad request error if the data provided in any of the parameters does not match with the correct value registered in BC.
{
"id": "65b445c7cff194bca956edff",
"createdAt": "2024-01-26T17:52:39.642658-06:00",
"finishedAt": "2024-01-26T17:52:39.89988-06:00",
"duration": 257,
"status": "SERVICE_ERROR",
"errorMessage": "Error credentials clave y/o contraseña incorrecta para BC",
"request": {
"clave": "ABCDE4321",
"contrasena": "12345678",
"nuevaContrasena": "87654321"
},
"apiData": [
{
"url": "128.9.55.100:25400",
"duration": 114,
"request": {
"date": "2024-01-26T17:52:39.785395-06:00",
"body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bc-request-envelope version=\"1.0\">\n <bc-request>\n <credentials member=\"ABCDE4321\" password=\"12345678\"/>\n <service name=\"changePassword\">\n <param name=\"old-password\" value=\"12345678\"/>\n <param name=\"new-password\" value=\"87654321\"/>\n </service>\n </bc-request>\n</bc-request-envelope>\u0013"
},
"response": {
"date": "2024-01-26T17:52:39.899468-06:00",
"body": null,
"httpCode": 200
}
}
],
"response": null
}